当前位置: 首页 新闻资讯 游戏新闻

make编译完成之后怎么执行|Ubuntu安装Nox后编译make报错怎么办?

  • 08-13
  • 5222

  在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经过查资料,在参考文献【1】发现是因为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,那么可尝试使用本文介绍的方法进行解决。

返回顶部