UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
I am facing certain issues regarding installation of ns2 (2.29.3 version) on ubuntu 10.10
Could anyone please tell me on which version of gcc does ns2.29 works well?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
Welcome to LQ.
'ns-allinone-2.29.3' will work with Ubuntu. Other versions : No.
Add 'hardy' to /etc/apt/sources.list ( sudo gedit /etc/apt/sources.list )
Code:
deb http://76.73.4.58/ubuntu/ hardy-updates main
deb http://76.73.4.58/ubuntu/ hardy universe
deb http://security.ubuntu.com/ubuntu hardy-security main
deb http://security.ubuntu.com/ubuntu hardy-security universe
And : sudo apt-get update && sudo apt-get install g++-3.4
I guess, you already have the other prerequisites ?
They are : sudo apt-get install g++ make autoconf automake libtool \
libx11-dev libxmu-dev libxmu-headers libxt-dev xgraph
cd ns-allinone-2.29/tk8.4.11/ &&
patch -p0 < tk-8.4-lastevent.patch && cd ../ &&
export CC=gcc-3.4 CXX=g++-3.4 && ./install
Quote:
I am facing certain issues
Tell, what the issues are.
More info : LQ Search → Tag = ns229
And : LQ Search → Keyword = ns-allinone
Hi,
Thanks for the above guidelines.
It certainly reduced a large number of errors, but still at the end i get the following error message:
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
...
ypeEi' of bluetooth/sco-agent.o
`.gnu.linkonce.t._ZN8hdr_bnep7hdr_lenEv' referenced in section `.rodata' of bluetooth/scat-form.o: defined in discarded section `.gnu.linkonce.t._ZN8hdr_bnep7hdr_lenEv' of bluetooth/scat-form.o
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
I think that some library is missing. Did you solve this compilation problem?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
OK, Ubuntu 10.10 is tricky with several versions of ns2.
This is a solution for the 64bits Ubuntu 10.10 : ( not tested in 32bits.)
Edit ns-allinone-2.29/ns-2.29/Makefile , line 37 to : CPP = g++-4.1
cd ns-allinone-2.29/ns-2.29/ && make clean && make.
g++-4.1 is required : sudo apt-get install g++-4.1 : EDIT .. see post #9.
@abutre, post #4 : The fix is for the error, you show.
I've change the gcc compile to 4.1 in Makefile file.
The error now is another one:
./mac/mac.h:293: error: ‘link_parameter_type_s’ has not been declared
./mac/mac.h:294: error: ‘transmit_status_t’ has not been declared
./sctp/sctp.h:705: error: extra qualification ‘SctpAgent::’ on member ‘DumpSendBuffer’
make: *** [trace/trace.o] Error 1
My system is 32bits. Do you think if i install an ubuntu 64bits and try again it will be ok?
I've already try use gcc 3.3 4.1 4.3 without success
I've change the gcc compile to 4.1 in Makefile file.
You mean g++-4.1 ? Not gcc-4.1 ?
The unpatched ns-2.29 may work OK.
'ns-2.29-nist-mob-022707' : No obvious solution for Ubuntu 10.10, 32 bits.
'ns-2.29-nist-mob-022707' will compile OK on CentOS 5.5, 32bits.
I will check with the 64bits Ubuntu later.
( All ns2 was originally built and tested on CentOS (RHEL). AFAIK.)
Thank you for the suggestion.
When i tried to install g++ 4.1, i got following errors:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
g++-4.1 : Depends: gcc-4.1 (= 4.1.2-21ubuntu1) but it is not going to be installed
Depends: gcc-4.1-base (= 4.1.2-21ubuntu1) but it is not going to be installed
Depends: libstdc++6-4.1-dev (= 4.1.2-21ubuntu1) but it is not going to be installed
E: Broken packages
Is it because gcc version is 3.4??
And i am trying to install ns-allinone-2.29 with ns-2.29-nist-mob-022707, for i need to work with pmip6 patch. Please help regarding the issue.
And tell what "bittorrent (p2p)" is, where you got information about the
subject, etc. Info about any added files, patches, etc.
( I never heard about "bittorrent (p2p)" for ns-2.34 before.)
You are still missing out to clarify, why you think, the patch is usable for ns234.
And please confirm, that autosim.o was added to the Makefile,
and compiled into the binary 'ns'. ( 'make clean && make' ? )
Having 2...5 different ns-allinone-2.xx installed at the same time is no problem.
Just don't set any PATH or LD_LIBRARY_PATH to any of those : Not required at all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.