LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-23-2011, 08:01 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

Well, very small differences can make things go wrong.
Example : Ubuntu 10.10 32bits : Only gcc/g++-4.2 works for ns-2.34.
No problems on a 64bits Ubuntu 10.10 : Several g++ versions will do.
So may be the hardware can be an issue too.

Did you install Scientific SL6 ? May be use that for the next try ?

I will make another test on Fedora 14 with "compat gcc41-c++-4.1.2".
That may work too. ( It's Suse packages : Work on all Fedora, etc.)

..
 
1 members found this post helpful.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-23-2011, 08:47 AM   #17
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
Hello again.

1) cd ns-allinone-2.30/ns-2.30 && mv Makefile Makefile-eurane
cd .. && export CC=gcc-4.1 CXX=g++-4.1 && ./install
... No errors

2) cd ns-allinone-2.30/ns-2.30/ && make clean && cd ..
&& export CC=gcc-4.1 CXX=g++-4.1 && ./install : OK.

3) cd ns-allinone-2.30/ns-2.30/ : The Makefile-eurane
was edited to : CC = gcc-4.1 , CXX = g++-4.1
Next : make clean && make -f Makefile-eurane : OK too.

Not exactly the way, you can follow, when it wasn't previously
compiled succesfully : You will find out.

The packages "gcc/g++-4.1.2" ( For 32bits F14 only )
cpp41-4.1.2_20070115-16.1.i586.rpm
gcc41-4.1.2_20070115-16.1.i586.rpm
gcc41-c++-4.1.2_20070115-16.1.i586.rpm
libmudflap41-4.1.2_20070115-16.1.i586.rpm
libstdc++41-devel-4.1.2_20070115-16.1.i586.rpm
http://opensuse.mirror.aussiehq.net....oss/suse/i586/
( Suggest : wget <url>/<package> )
The install : # rpm -Uvh <package> <package> <package> <package> <package>

Regards
 
1 members found this post helpful.
Old 03-23-2011, 08:53 AM   #18
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Thank you very much for all your help. I really appreciate it.

Stella

PS. Sorry, I hadn't read post #17. I'm in a rush for University. Later I'll try gcc41, I hope it works.

And yes, I know there's only one version of Fedora 14. I must have explained myself bad. I mean, I'm dowloading the SL6 -I've understood is equivalent to Fedora 12- and I'll install it in my desk-pc. But my laptop has Fedora 14, and if everything is ok in SL6, I'll change the laptop version too. My teacher has fedora 12 and she can't help me with fedora 14. Anyway, I'm going to try gcc41 before.
Thank you

Last edited by unodior; 03-23-2011 at 10:23 AM.
 
Old 03-23-2011, 09:01 AM   #19
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
There is only one version of Fedora 14.
And after the install a "yum update" (or # yum install <package>)
will install later package versions.


The "compat gcc41-c++-4.1.2" works on SL 6 too, if required.


P.S. : Did you read post # 17 ?

..

Last edited by knudfl; 03-23-2011 at 09:18 AM.
 
1 members found this post helpful.
Old 03-24-2011, 10:38 AM   #20
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
I've changed to SC6. It has: gcc versión 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC)
Do I make the export and use gcc34? Do I use 4.1.2?(They didn't work in fedora 14)
Thanks

Regards

Last edited by unodior; 03-24-2011 at 10:40 AM.
 
Old 03-24-2011, 12:03 PM   #21
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
SL 6 : Package names like Fedora 14. I.e. all prerequisites are equal :

# yum install \
gcc-34-c++ compat-gcc-34-c++ libX11-devel libXext-devel libXau-devel \
libXmu-devel xorg-x11-proto-devel gcc-c++ make automake autoconf libtool

Quote:
.. and use gcc34 ? Do I use 4.1.2 ? ( They didn't work in fedora 14 )
If you have the space, just try with either in different directories.
Did you install all the Suse packages on Fedora 14 ?
You will have to start from scratch, when using a different compiler.
Or 'make clean' in : tcl*/unix/, tk*/unix/ otcl*/ tclcl*/ ns-2.30/,
to be sure it's compiled different.

..
 
1 members found this post helpful.
Old 03-24-2011, 02:51 PM   #22
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
umts files work Little things sometimes are very important.

This time I've used gcc34, and although in fedora 14 it didn't work, in SC6 it does. And nam 1.12 seems to be ok too. I've run several examples

... BUT I can't install xgraph 12.1. But as it is another packet, I hope I can find a solution. Anyway, I have to use gnuplot.

To install xgraph 12.1 I have made:
cd /home/Stll/ns-allinone-2.30/xgraph1.12 && make

It gives me this error:

gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c dialog.c
dialog.c: En la función ‘make_msg_box’:
dialog.c:780: aviso: se pasa el argumento 2 de ‘getline’ desde un tipo de puntero incompatible
/usr/include/stdio.h:673: nota: se esperaba ‘size_t * __restrict__’ pero el argumento es de tipo ‘char *’
dialog.c:780: error: faltan argumentos para la función ‘getline’
dialog.c: En la función ‘getline’:
dialog.c:899: error: el argumento ‘lptr’ no coincide con el prototipo
/usr/include/stdio.h:673: error: declaración vacía
dialog.c:899: error: el número de argumentos no coinciden con el prototipo
/usr/include/stdio.h:673: error: declaración vacía
make: *** [dialog.o] Error 1


knudfl, AGAIN, thank you very much for all your help.
 
Old 03-24-2011, 03:22 PM   #23
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
The comments from the ./install when xgraph fails : (will always will)
"Can not create xgraph; But xgraph is an optional package, continuing..."


Building xgraph, post # 2 here
http://www.linuxquestions.org/questi...2-34-a-862233/
 
1 members found this post helpful.
Old 03-27-2011, 05:37 AM   #24
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
I've followed the same steps and now it works. Obviously, I made a mistake yesterday while installing it in my desk-pc. It didn't make sense, because in my laptop it worked. Sometimes I try to go fast and I forgot patience is a virtue that takes you to the correct place

I don't know if I can ask about another thing in this reply, but ..have you used matlab in linux? I've seen I should use matlab 7.11.1. I would like to know if it has problems of installation, such as not correct compiler, etc...
And gnuplot? I've installed the last version. But I'm not sure if it's going to give problems later.

If I should have started another thread, please tell me and I'll do it.

Thank you very much for all.

Last edited by unodior; 03-27-2011 at 06:08 AM.
 
1 members found this post helpful.
Old 03-28-2011, 09:52 PM   #25
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
Matlab is a topic for a new thread.
But may not cause any troubles in SL 6 ? ( I never used it.)

Some says gcc 4.2 for matlab. You will find out, when you use matlab.
An extra compiler is easy to build or find. Just ask.


Gnuplot : # yum install gnuplot

..
 
1 members found this post helpful.
Old 03-29-2011, 08:13 AM   #26
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Thank you.

For now, I'm still working with awk and have to start with gnuplot (big new tutorial, I'm starting to get used to it everytime I install a new program in linux...) )
 
Old 03-29-2011, 09:38 AM   #27
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
Hello Stella.

It will be very much appreciated, if you can tell about using awk
and gnuplot for ns2.
Some time in the future when you are finished with the hard work.

Both are things not very well described.
( Or some LQ members just can't find the information.)

Regards.
 
1 members found this post helpful.
Old 03-29-2011, 09:54 AM   #28
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Hello,

Of course I would like to help, but I'm just starting to learn
I'm following this introduction of awk:
http://www.chemie.fu-berlin.de/chemn...toc.html#TOC10.
I don't know if for people who know more it is useful, but for a starter like me it's a good beginning. If I find something better later I'll tell.
For gnuplot I've downloaded the gnu plot 4.4 documentation:
"gnuplot 4.4. An Interactive Plotting Program.Thomas Williams & Colin Kelley". I think I found it in the same page I downloaded gnuplot from.

Kind regards.

Last edited by unodior; 03-29-2011 at 10:02 AM.
 
Old 09-21-2011, 01:57 PM   #29
Hassaan Rafi
LQ Newbie
 
Registered: Sep 2011
Location: Lahore, Pakistan
Posts: 9

Rep: Reputation: Disabled
hi Stella,

Thanks a lot for your help. i would surely try it now and would keep in touch with you.
Actually i'm new to this Eurane project and im learning from experiments. well, according to me it might be possible that u need to have another patch for trace files to run properly. for help, visit www.eurane.com

Regards

Hassaan
 
Old 09-25-2011, 12:06 PM   #30
Hassaan Rafi
LQ Newbie
 
Registered: Sep 2011
Location: Lahore, Pakistan
Posts: 9

Rep: Reputation: Disabled
problem installing ns v2.26

hi all,
im encountering following error while installing ns2 on fedora 11. kindly guide me what to do now, as soon as possible.


In file included from ./trace/cmu-trace.h:44,
from src_rtg/sragent.cc:54:
./mobile/god.h: At global scope:
./mobile/god.h:88: error: extra qualification ‘vector::’ on member ‘operator=’
./mobile/god.h:93: error: extra qualification ‘vector::’ on member ‘operator+=’
./mobile/god.h:98: error: extra qualification ‘vector::’ on member ‘operator==’
./mobile/god.h:101: error: extra qualification ‘vector::’ on member ‘operator!=’
make: *** [src_rtg/sragent.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


thanks
REGARDS
 
  


Reply

Tags
eurane, ns2, ns2-eurane, ns2-umts



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
Help with NS2 MounaRM Linux - Networking 4 05-17-2021 12:42 PM
help in ns2 tootz Linux - Software 1 02-17-2011 03:04 AM
[SOLVED] NS2 sayaleen Linux - Newbie 2 12-08-2010 10:21 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 03:39 AM

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

All times are GMT -5. The time now is 08:22 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