感谢支持
我们一直在努力

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

在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

参考文献【1】 http://www.linuxidc.com/Linux/2014-02/97216p2.htm

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

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>
	<31933B4DC7AA83429608C10A9B1310751A2177D6@ESESSMB105.ericsson.se>
Message-ID: <518FAF4A.4080408@gmail.com>

I have all the dependencies installed, but I still have the same problem 
and the same output errors
when trying $make for noxcore and nox13.

How can I do, is there any other solution to solve this !

Thanks




Le 12/05/2013 14:34, Zolt?n Lajos Kis a ?crit :
> 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 zoltan.lajos.kis at ericsson.com  Sun May 12 08:18:00 2013
From: zoltan.lajos.kis at ericsson.com (=?iso-8859-1?Q?Zolt=E1n_Lajos_Kis?=)
Date: Sun, 12 May 2013 15:18:00 +0000
Subject: [nox-dev] building nox and nox1.3
In-Reply-To: <518FAF4A.4080408@gmail.com>
References: <518F7309.1050706@gmail.com>
	<31933B4DC7AA83429608C10A9B1310751A2177D6@ESESSMB105.ericsson.se>
	<518FAF4A.4080408@gmail.com>
Message-ID: <31933B4DC7AA83429608C10A9B1310751A2179E4@ESESSMB105.ericsson.se>

There is definitely a solution; and it is more likely to be found in the boost community... I guess you are using a newer boost version than the one used for NOX. You could try downgrading to 1.42. Are the boost_system and boost_filesystem libraries linked by the build system when you get this error?


Zoltan

>-----Original Message-----
>From: Akram Hakiri [mailto:akram.hakiri at gmail.com]
>Sent: Sunday, May 12, 2013 5:04 PM
>To: Zolt?n Lajos Kis
>Cc: nox-dev at lists.noxrepo.org
>Subject: Re: [nox-dev] building nox and nox1.3
>
>I have all the dependencies installed, but I still have the same problem and
>the same output errors when trying $make for noxcore and nox13.
>
>How can I do, is there any other solution to solve this !
>
>Thanks
>
>
>
>
>Le 12/05/2013 14:34, Zolt?n Lajos Kis a ?crit :
>> 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::erro
>>> r_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 09:21:10 2013
From: akram.hakiri at gmail.com (Akram Hakiri)
Date: Sun, 12 May 2013 18:21:10 +0200
Subject: [nox-dev] building nox and nox1.3
In-Reply-To: <31933B4DC7AA83429608C10A9B1310751A2179E4@ESESSMB105.ericsson.se>
References: <518F7309.1050706@gmail.com>
	<31933B4DC7AA83429608C10A9B1310751A2177D6@ESESSMB105.ericsson.se>
	<518FAF4A.4080408@gmail.com>
	<31933B4DC7AA83429608C10A9B1310751A2179E4@ESESSMB105.ericsson.se>
Message-ID: <518FC176.8080403@gmail.com>

Yes, boost are linked by the system. Boost 1.46 is installed as default 
packages from ubuntu repo.
This is seems because I am using Ubuntu 12.04 and 12.10 which provides 
boost 1.46 and 1.48.

Thanks.


Le 12/05/2013 17:18, Zolt?n Lajos Kis a ?crit :
> There is definitely a solution; and it is more likely to be found in the boost community... I guess you are using a newer boost version than the one used for NOX. You could try downgrading to 1.42. Are the boost_system and boost_filesystem libraries linked by the build system when you get this error?
>
>
> Zoltan
>
>> -----Original Message-----
>> From: Akram Hakiri [mailto:akram.hakiri at gmail.com]
>> Sent: Sunday, May 12, 2013 5:04 PM
>> To: Zolt?n Lajos Kis
>> Cc: nox-dev at lists.noxrepo.org
>> Subject: Re: [nox-dev] building nox and nox1.3
>>
>> I have all the dependencies installed, but I still have the same problem and
>> the same output errors when trying $make for noxcore and nox13.
>>
>> How can I do, is there any other solution to solve this !
>>
>> Thanks
>>
>>
>>
>>
>> Le 12/05/2013 14:34, Zolt?n Lajos Kis a ?crit :
>>> 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::erro
>>>> r_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 lrbbs at cin.ufpe.br  Mon May 13 06:59:57 2013
From: lrbbs at cin.ufpe.br (Lucas Brasilino)
Date: Mon, 13 May 2013 10:59:57 -0300
Subject: [nox-dev] building nox and nox1.3
In-Reply-To: <518FC176.8080403@gmail.com>
References: <518F7309.1050706@gmail.com>
	<31933B4DC7AA83429608C10A9B1310751A2177D6@ESESSMB105.ericsson.se>
	<518FAF4A.4080408@gmail.com>
	<31933B4DC7AA83429608C10A9B1310751A2179E4@ESESSMB105.ericsson.se>
	<518FC176.8080403@gmail.com>
Message-ID: <CAGE5s_AbLrHatPqMLmh_3h=jyRsYKTDo7VWMTP4qc3f+OXfONQ@mail.gmail.com>

Hi

> Yes, boost are linked by the system. Boost 1.46 is installed as default
> packages from ubuntu repo.
> This is seems because I am using Ubuntu 12.04 and 12.10 which provides boost
> 1.46 and 1.48.

I was able to compile NOX (from git verity branch) against Boost 1.53.
Before that I tried to
compile  against Boost 1.42 with no success.

First I compiled boost and installed it at '/usr/local/boost'
directory, then I compiled NOX using '--with-boost=/usr/local/boost'
configure option.

Well, I was not using Ubuntu, but you will probably be successful doing so.

regar
赞(0) 打赏
转载请注明出处:服务器评测 » Ubuntu下Nox编译make不通过的解决方法和简要安装过程
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏