How to force NS2 to use the version 4.4 of gcc instead of 4.6.3
hi all
am having some problem with my ns2 , it was working fine up until it doesnt anymore and i am suspecting the updates to be incompatible with the version of my unix system [Ubuntu 12.04 LTS]. in fact when i ran a tcl script it runs in half and exits while it was running perfectely before. i dont know what must be the error because there is no error printd in the screen, apart of the fact that when i check the trace file i can see that the packets were not sent. i would like to downgrade the gcc to the 4.4 version. How can i do this? Code:
boris@boris-Veriton-M680G:~/ns-allinone-2.35$ gcc -v |
First : You can have as many versions of gcc/g++ as you want,
installed at the same time. Using gcc/g++ version 4.4 : $ cd ns-allinone-2.35/ && export CC=gcc-4.4 CXX=g++-4.4 && ./install *** This is not "forcing", but a quite ordinary command ! Reconfiguring in ns-2.35 : $ cd ns-allinone-2.35/ns-2.35/ && export CC=gcc-4.4 CXX=g++-4.4 && ./configure All versions, ns-2.26 ... ns-2.34 : Use gcc/g++ version 4.1.2 : Post #18 http://www.linuxquestions.org/questi...022/page2.html - |
you can export the version ( as above , VERY good option for ns2)
set the version in "Alternatives" ( this is what it is meant for ) or use a shell script to set the links in /usr/bin to the version you want to use -- the last way is what i use ( very old habit from before alternatives ) |
Quote:
indeed i did that command before posting, while i was installing the 2.35 version (was using ns-allinone2.34) and i thought it will appear when i typed gcc -v, but it shows the 4.6 version of gcc. so i thought it failed. Thank you anyway for the assistance, i think of downgrading my version of ubuntu as well to see if ns2 will work again. thanks |
There is NO NEED to reinstall a old version of Ubuntu
Just install a older copy of Gcc i currently have Gcc 3.4, 4.3 and 4.6 installed and checking Gcc 4.8 for problems with the programs i MUST HAVE |
Quote:
if anyone is using ns2, can i forward to him the module to test-on |
NO
you install gcc 4.4 along side 4.6 you then export the version to use or set the version id alternatives or you set the version using a shell script BUT you HAVE to install an older version of GCC i normally have 3 or 4 different versions installed The software IS DESIGNED so that more than one version can be installed just like Python is designed i have 3 versions on Python installed and 4 versions of gcc |
Quote:
in half. Guess the problem is elsewhere but for this thread I could do what i asked for. And installed an old version of gcc thank you for your assistance, i will mark it as solve. |
All times are GMT -5. The time now is 02:39 AM. |