[SOLVED] ns2.30: “LMS_SETUP” instead of “UM_Data, AM_Data, etc
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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>
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
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
.. 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.
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.
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.
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...) )
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.)
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.