Ubuntu安装Nox后编译make报错怎么办?

来源:互联网 发布:python科学计算张若愚 编辑:程序博客网 时间:2024/04/29 17:28

Ubuntu安装Nox后编译make报错怎么办?

兄弟连IT教育官方要跟大家分享Ubuntu安装Nox后编译make报错怎么办?,简单的过程中其实暗藏玄机,还是要细心学习,喜欢还请记得收藏哦!

Ubuntu系统操作中,安装Nox后编译make出错,那么遇到这个问题该怎么办呢?下面就给大家介绍下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经过查资料,在参考文献发现是因为nox只能在boost1.50以上的版本才能编译成功,而Ubuntu12.10版本的boost版本为1.42。所以要更新boost,采取的方法是到boost官网下载源码并且编译。

 

下面列出简要的安装过程

 

安装虚拟机: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官网下载源码并且编译。我下载的是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

 

上面就是Ubuntu安装Nox后编译make不通过的方法介绍了,如果你不会安装Nox,又或者安装好后无法通过make,那么可尝试使用本文介绍的方法进行解决。

0 0
原创粉丝点击