红联Linux门户
Linux帮助

Ubuntu下Nox编译make不通过的解决方法和简要安装过程

发布时间:2014-06-08 16:06:56来源:红联作者:velcbo
在Ubuntu下安装nox,make出错如下:

>>>> collect2: ld returned 1 exit status
>>>> make[3]: *** [nox_core] Error 1
>>>> make[3]: Leaving directory `/usr/nox/build/src'
>>>> make[2]: *** [all-recursive] Error 1
>>>> make[2]: Leaving directory `/usr/nox/build/src'
>>>> make[1]: *** [all-recursive] Error 1
>>>> make[1]: Leaving directory `/usr/nox/nox13oflib/build'
>>>> make: *** [all] Error 2经过查资料,在参考文献【1】发现是因为nox只能在boost1.50以上的版本才能编译成功,而Ubuntu12.10版本的boost版本为1.42。所以要更新boost,我采取的方法是到boost官网www.boost.org下载源码并且编译。

下面列出简要的安装过程

安装虚拟机:OpenFlow1.3_BiangHoo
IP:10.10.134.124
OS: ubuntu 12.10LTS

nox安装:
安装相关依赖包:

sudo apt-get install autoconf automake g++ libtool swig make git-core libboost-dev libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev python-twisted python-simplejson python-dev

还要安装libboost-all-dev 和libttb-dev
apt-get install libboost-all-dev libttb-dev
然后到到boost官网www.boost.org下载源码并且编译。我下载的是1.55版本.然后将boost安装到/usr/local/目录下

./bootstrap.sh --prefix=/usr/local/boost
然后
./b2 install
接着运行ldconfig使相关的库生效

然后下载nox源码
git clone git://github.com/noxrepo/nox
cd nox
./boot.sh
mkdir build
cd build
.././configure --with-boost=/usr/local/boost #boost的安装位置
make
make install
即可安装成功
启动nox
cd PATH_TO_NOX/nox/build/src
./nox_core -i ptcp:6633

From akram.hakiri at gmail.com Sun May 12 03:46:33 2013
From: akram.hakiri at gmail.com (Akram Hakiri)
Date: Sun, 12 May 2013 12:46:33 +0200
Subject: [nox-dev] building nox and nox1.3
Message-ID: <518F7309.1050706@gmail.com>

Hi folks,

I want to build nox and nox1.3 on Ubuntu 12.04 but all the time I found
the below errors. Someone can help me to fix this.

thanks,

Hakiri

./builtin/.libs/libbuiltin.so: undefined reference to
`boost::filesystem::directory_entry::m_get_status(boost::system::error_code*)
const'
./builtin/.libs/libbuiltin.so: undefined reference to
`boost::filesystem::path::codecvt()'
collect2: ld returned 1 exit status
make[3]: *** [nox_core] Error 1
make[3]: Leaving directory `/home/hakiri/nox13oflib/build/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hakiri/nox13oflib/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hakiri/nox13oflib/build'
make: *** [all] Error 2

From zoltan.lajos.kis at ericsson.com Sun May 12 05:34:52 2013
From: zoltan.lajos.kis at ericsson.com (=?iso-8859-1?Q?Zolt=E1n_Lajos_Kis?=)
Date: Sun, 12 May 2013 12:34:52 +0000
Subject: [nox-dev] building nox and nox1.3
In-Reply-To: <518F7309.1050706@gmail.com>
References: <518F7309.1050706@gmail.com>
Message-ID: <31933B4DC7AA83429608C10A9B1310751A2177D6@ESESSMB105.ericsson.se>

Hi,

Do you have the Boost libraries installed? You probably need at least libboost-dev and libboost-filesystem-dev.

Check out https://github.com/CPqD/ofsoftswitch13/wiki/OpenFlow-1.3-Tutorial for some info on building this NOX.

Regards,
Zoltan.

>-----Original Message-----
>From: nox-dev-bounces at lists.noxrepo.org [mailto:nox-dev-
>bounces at lists.noxrepo.org] On Behalf Of Akram Hakiri
>Sent: Sunday, May 12, 2013 12:47 PM
>To: nox-dev at lists.noxrepo.org
>Subject: [nox-dev] building nox and nox1.3
>
>Hi folks,
>
>I want to build nox and nox1.3 on ubuntu 12.04 but all the time I found the
>below errors. Someone can help me to fix this.
>
>thanks,
>
>Hakiri
>
>./builtin/.libs/libbuiltin.so: undefined reference to
>`boost::filesystem::directory_entry::m_get_status(boost::system::error_code
>*)
>const'
>./builtin/.libs/libbuiltin.so: undefined reference to
>`boost::filesystem::path::codecvt()'
>collect2: ld returned 1 exit status
>make[3]: *** [nox_core] Error 1
>make[3]: Leaving directory `/home/hakiri/nox13oflib/build/src'
>make[2]: *** [all-recursive] Error 1
>make[2]: Leaving directory `/home/hakiri/nox13oflib/build/src'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/home/hakiri/nox13oflib/build'
>make: *** [all] Error 2
>
>

From akram.hakiri at gmail.com Sun May 12 08:03:38 2013
From: akram.hakiri at gmail.com (Akram Hakiri)
Date: Sun, 12 May 2013 17:03:38 +0200
Subject: [nox-dev] building nox and nox1.3
In-Reply-To: <31933B4DC7AA83429608C10A9B1310751A2177D6@ESESSMB105.ericsson.se>
References: <518F7309.1050706@gmail.com>
文章评论

共有 0 条评论