Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't use Ubuntu or Debian, but what I would do is confirm that /usr/bin/gcc-4.6.3 actually exists. Bash is rarely wrong; just because gcc --version returns 4.6.3, it doesn't mean that the file is necessarily located at /usr/bin/gcc-4.6.3
Look in /usr/bin and find out what the gcc (and g++) symlinks are actually called.
If you want gcc-4.6.3 fully installed please do
sudo apt-get install g++ ( Will install gcc-4.6, g++-4.6 )
* Actually gcc-4.6 / g++-4.6 (4.6.3) is already the default system compiler for Ubuntu 12.04 !
hello knudfl
i already have fully installed gcc and g++.
actually i want to run leach patch on ns2.35. i installed it using steps posted on following link
after this when i check version of gcc using command : gcc --version
it again shows 4.6.3
any content if u have regarding this issue then it will be very helpful!!
Last edited by rc49; 04-12-2017 at 08:18 AM.
Reason: information missing
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
Re #4.
Quote:
str2addr:Address 2147483647 outside range of address field length 1073741824
That's because you are using a 32bits OS.
Leach for ns-2.35 works with a 64bits OS only.
There is no reason to do anything to the OS in order to use a different compiler.
1) Old version (2011) of ns-allinone-2.35 :
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
That's because you are using a 32bits OS.
Leach for ns-2.35 works with a 64bits OS only.
There is no reason to do anything to the OS in order to use a different compiler.
1) Old version (2011) of ns-allinone-2.35 :
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
hello knudfl
i followed all the steps n installed 2014 update of ns2.35 and for leach patch i followed post #11.
after completing all the steps.. at last when i run command :
Code:
./leach_test
i receive same error in leach.err
Code:
INITIALIZE THE LIST xListHead
Error!!
str2addr:Address 2147483647 outside range of address field length 1073741824
update-alternatives are for things that link to something in /etc/alternatives/, which gcc doesn't do.
$ ls -l /usr/bin/gcc*
$ ls -l /usr/bin/g??
At a low level you can change the /usr/bin/gcc link to the version that you want. And g++, gdb, ..., ..., ... Which update-alternatives might handle, but probably not how you're supposed to do it IMO. For some things you can set the CC and CXX type environment variables and that would work. Depending on if gcc is hard coded into the build scripts. It should NOT be, but it often IS hard coded.
For 64 bit on a 32 bit system, you should avoid that. Where 32 bit on a 64 bit system is more possible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.