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.
After that I install the gcc41 and g++41 , I reset the Ubuntu. Then I went to ns-allinone2.34 folder and type this commands: $ "export CC=gcc41 CXX=g++41 && ./install", but again the result was :
"http://www.linuxquestions.org/questi...1&d=1398921451".
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 17 .
Please attach your "build-errors.txt" ( No black image, please.)
The previous error output, in post #15,
clearly shows that you are not using gcc41 : gcc-4.4 .
Every time your build fails, it is recommended that you start from scratch with :
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ tar xvf gpsr-KeLiu-patched-ns234.tar.gz
And then do one of the two build commands .
1) $ export CC=gcc-4.4 CXX=g++-4.4 && ./install
2) $ export CC=gcc41 CXX=g++41 && ./install
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 19 .
A text copy of the terminal text :
Mark the terminal text with your mouse,
and copy/paste the text to a text file.
Your errors,
".. C compiler works .. no" / "C compiler cannot create executables".
? Did you install all this →
g++ g++-4.4 autoconf automake libtool make patch libxmu-dev xgraph nam
I.e. if the default gcc/g++ isn't installed OK :
None of the other compilers will work.
? What is the reply from the command $ which gcc41
I installed the "g++ g++-4.4 autoconf automake libtool make patch libxmu-dev xgraph nam" by this command: "sudo apt-get install g++ g++-4.4 autoconf automake libtool make patch libxmu-dev xgraph nam".
and after that I try to install ns again ,
By this command "$ export CC=gcc-4.4 CXX=g++-4.4 && ./install": the errors was the same as #15
and by this command "$ export CC=gcc41 CXX=g++41 && ./install": the errors was the same as #13.
about the reply of command $which gcc41 : there is no answer (there is no gcc41)
but for $which gcc-4.4: /usr/bin/gcc-4.4
and for $which gcc: /usr/bin/gcc
and for #which g++-4.4: /usr/bin/g++-4.4
and for #which g++: /usr/bin/g++
and for #which g++41: there is no answer (there is no g++41)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 23 .
All your "which commands" are for other gcc.
Please do $ which gcc41
And be aware that you cannot use any root commands when building ns2.
* gcc41 and g++41 cannot be used when the command prompt is # .
* gcc41 and g++41 are not in root´s path.
Must be : $ export CC=gcc41 CXX=g++41
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.