ns 3 - Errors while building ns-3 on Ubuntu 16.10 -
i trying install ns-3 on ubuntu 16.10 when try build following command
python bake.py build
and have 3 errors:
building nsc-0.5.3 - problem problem: optional dependency, module "nsc-0.5.3" failed may reduce functionality of final build. however, bake continue since "nsc-0.5.3" not essential dependency. more information call bake -v or -vvv, full verbose mode.
building pybindgen-0.16.0.825 - problem unavailable building tool module pybindgen-0.16.0.825, install waf problem: optional dependency, module "pybindgen-0.16.0.825" failed may reduce functionality of final build. however, bake continue since "pybindgen-0.16.0.825" not essential dependency. more information call bake -v or -vvv, full verbose mode.
building ns-3.17 - problem error: critical dependency, module "ns-3.17" failed more information call bake --debug and/or -v, -vvv, full verbose mode (bake --help)
what should fix them?
i had similar problem , figured out nsc doesn't work gcc/g++-6. had change default version of gcc , g++ (from 6.3.0 to, example, 5.4.1)
1) find installed compilers:
dpkg --list | grep compiler
2) change default gcc, g++, cc , c++ (via https://askubuntu.com/questions/26498/choose-gcc-and-g-version):
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 10 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 10 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20 sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 sudo update-alternatives --set cc /usr/bin/gcc sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 sudo update-alternatives --set c++ /usr/bin/g++
also, check if changes saved:
gcc -v
it should say: "gcc version 5.4.1" @ end (or lower 6 installed , used in instructions above).
after that, managed install nsc (that main problem).
hope helps!
Comments
Post a Comment