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】

  • 1
  • 2
  • 下一页

相关内容

    暂无相关文章