Ubuntu下Nox編譯make不通過的解決方案和簡要安裝過程

來源:互聯網
上載者:User

在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
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.