[SOLVED] Patched KeLiu's GPSR to ns-2.34 in Ubuntu 14.04.02 LTS
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: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
Patched KeLiu's GPSR to ns-2.34 in Ubuntu 14.04.02 LTS
Installing ns-allinone-2.34 with KeLiu GPSR in Ubuntu 14.04.02 LTS ----------------------------------------------------------------------------------------------------------
1. Install gcc-4.4 g++-4.4 compilers
*NS-2 have some compatibility problem with gcc-4.6 version, in 12.04.
*It can be also installed from the Synaptic Package Manager
Errors under "Build OTcl-1.13"
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -I............
........
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
9. For successful "make" necessary changes in files of ns-2.34:
v) Also need to change the line 36-37 in ns-2.34/Makefile
N.B: the Makefile is a only available if once an ./install command is issued previously. If not skip this step.
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
? Are you just trying to do things as complicated as possible ? Or ? ?
And : You are not supposed to do "$ sudo ./install".
No ns2 commands as root, or with sudo, please.
(Except 'make install' and 'cp ns-gpsr-keliu /usr/local/bin/'.)
The ns2 build prerequisites are :
$ sudo apt-get install g++ (g++-4.4) automake libtool make patch libxmu-dev
After a "fail build", tried gcc-4.4 with the previous Keliu patch, that I had, found-- it works well.
That I posted, for reference, as I searched that[KeLiu_GPSR+2.34 in 14.04] too.
Quote:
And : You are not supposed to do "$ sudo ./install".
perhaps yo mean to say "sudo" accesses the kernel space and installs ns there, whereas it should be installed in the "user" space, in context of protection. Is it so...?
Made the correction.
Your valuable suggestions made this post more better and clearer for anyone who refers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.