LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-02-2014, 10:56 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

# 15 .

The build command is $ export CC=gcc41 CXX=g++41 && ./install


-
 
1 members found this post helpful.
Old 05-02-2014, 12:47 PM   #17
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-02-2014, 01:05 PM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
Old 05-03-2014, 04:38 AM   #19
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-03-2014, 05:41 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
Old 05-03-2014, 07:20 AM   #21
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-03-2014, 08:11 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
Old 05-03-2014, 12:18 PM   #23
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
#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.
Attached Files
File Type: txt Error.txt (796 Bytes, 28 views)
 
Old 05-03-2014, 02:57 PM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
Old 05-03-2014, 11:38 PM   #25
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
#24
It seems that there is no gcc41 and g++41
It's the result of my "which commands"
Attached Files
File Type: txt error2.txt (74 Bytes, 25 views)
 
Old 05-04-2014, 02:08 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
Old 05-04-2014, 02:22 AM   #27
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
yes, I'm sure.

Even I done it for several times.
 
Old 05-04-2014, 02:30 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
Old 05-04-2014, 03:20 AM   #29
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-04-2014, 03:36 AM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 29 .

$ sudo cp ns-gpsr-keliu /usr/local/bin/
 
1 members found this post helpful.
  


Reply

Tags
gpsr, gpsr-keliu, gpsr-keliu#8, ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GPSR on NS2.34 farfattou Linux - Software 17 01-10-2015 08:29 AM
patch GPSR in NS2.34 Mednabil Linux - Wireless Networking 2 12-23-2013 06:24 PM
Code of GPSR for ns2.33 or ns2.35 monikagoyal Linux - Software 31 04-26-2013 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration