Solution and brief installation process for Nox compilation make failure in Ubuntu

Source: Internet
Author: User

The following error occurs when nox is installed in Ubuntu:

>>>> 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. After checking the information, [1] found that nox can only be compiled in boost1.50 or later versions, the boost version of Ubuntu12.10 is 1.42. So to update boost, I used to download the source code and compile it on the official boost website www.boost.org.

The following describes the brief installation process.

Virtual Machine installation: OpenFlow1.3 _ BiangHoo
IP: 10.10.134.124
OS: ubuntu 12.10LTS

Nox installation:
Install related dependency packages:

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

Also install libboost-all-dev and libttb-dev
Apt-get install libboost-all-dev libttb-dev
Go to the boost official website www.boost.org to download the source code and compile it. I downloaded version 1.55 and installed boost in the/usr/local/directory.
That is
./Bootstrap. sh -- prefix =/usr/local/boost
Then
./B2 install
Run ldconfig to make the relevant database take effect.

Then download the nox source code.
Git clone git: // github.com/noxrepo/nox
Cd nox
./Boot. sh
Mkdir build
Cd build
.././Configure -- with-boost =/usr/local/boost # boost installation location
Make
Make install
The installation is successful.
Start nox
Cd PATH_TO_NOX/nox/build/src
./Nox_core-I ptcp: 6633

References [1]

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.