Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
05-02-2014, 10:56 AM
|
#16
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 15 .
The build command is $ export CC=gcc41 CXX=g++41 && ./install
-
|
|
1 members found this post helpful.
|
05-02-2014, 12:47 PM
|
#17
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep:
|
excuse me ...
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".
What should do I?
Is this error because of gpsr code?
I am so confused...
Last edited by aidin8790; 05-02-2014 at 12:48 PM.
|
|
|
05-02-2014, 01:05 PM
|
#18
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 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
-
|
|
1 members found this post helpful.
|
05-03-2014, 04:38 AM
|
#19
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep:
|
Sorry,I don't know that how can I get build-errors.txt ..
may you help me?
but about errors, now it's the same as #13.
|
|
|
05-03-2014, 05:41 AM
|
#20
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 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
-
|
|
1 members found this post helpful.
|
05-03-2014, 07:20 AM
|
#21
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep:
|
g++-4.4 or 4.1??
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)
Last edited by aidin8790; 05-03-2014 at 07:25 AM.
|
|
|
05-03-2014, 08:11 AM
|
#22
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 21 .
*** Read post #14.
Install the two compiler packages gcc41-compat, g++41-compat :
1. gcc41-compat-4.1.2-ubuntu1210_i386.deb
2. g++41-compat-4.1.2_i386.deb
|
|
1 members found this post helpful.
|
05-03-2014, 12:18 PM
|
#23
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep:
|
#22
I done..
And here is it's results..
But again it seems that there is no gcc4.1 and g++4.1
Is my files correct??
I think that there is for ubuntu12.10 , and it isn't appropriate for my ubuntu13.10 version.
|
|
|
05-03-2014, 02:57 PM
|
#24
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 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
-
|
|
1 members found this post helpful.
|
05-03-2014, 11:38 PM
|
#25
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep:
|
#24
It seems that there is no gcc41 and g++41
It's the result of my "which commands"
|
|
|
05-04-2014, 02:08 AM
|
#26
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 25 .
See post # 14 : Reboot.
Are you sure that you have done a real restart of the computer.
Not 'Suspend'. Not 'Hibernate'. A ``Restart´´.
|
|
1 members found this post helpful.
|
05-04-2014, 02:22 AM
|
#27
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep:
|
yes, I'm sure.
Even I done it for several times.
|
|
|
05-04-2014, 02:30 AM
|
#28
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Well, to be sure that gcc41/g++41 is in the PATH for everybody, you can do :
Code:
$ cd /usr/bin/
$ sudo ln -s ../gcc41/bin/gcc41
$ sudo ln -s ../gcc41/bin/g++41
|
|
1 members found this post helpful.
|
05-04-2014, 03:20 AM
|
#29
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep:
|
Thank You .. It's Finally installed.
but about this command: "sudo cp ns-gpsr-keliu", It's need a destination file. Where is it's destination?
Last edited by aidin8790; 05-04-2014 at 03:29 AM.
|
|
|
05-04-2014, 03:36 AM
|
#30
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 29 .
$ sudo cp ns-gpsr-keliu /usr/local/bin/
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 06:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|