[SOLVED] problem with ns-2.34 installation on ubuntu 10.10
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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've been trying to install ns-2.34 on ubuntu 10.10 so many times , each time I got an error in the installation, now I got this error :
trace/cmu-trace.o: In function `hdr_ant_pkt::access(Packet const*)':
cmu-trace.cc:(.text._ZN11hdr_ant_pkt6accessEPK6Packet[hdr_ant_pkt::access(Packet const*)]+0x7): undefined reference to `hdr_ant_pkt::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Erreur 1
Ns make failed!
could anybody help me please !!
thanks for the help.
Click here to see the post LQ members have rated as the most helpful post in this thread.
trace/cmu-trace.o: In function `hdr_ant_pkt::access(Packet const*)':
cmu-trace.cc:(.text._ZN11hdr_ant_pkt6accessEPK6Packet[hdr_ant_pkt::access(Packet const*)]+0x7): undefined reference to `hdr_ant_pkt::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Erreur 1
Ns make failed!
I checked the synaptic installed packages , I find out that the tck and tk installed version are 8.4.16
can this cause this problem ? and how to solve it ?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Haven't noticed any problems with an installed tcl/tk lately,
when building ns2, but may be none was installed. ..
I used to give the advise : Remove all tcl / tk before building ns-allinone-2.xx :
'sudo apt-get remove tcl8.4'
Ubuntu 10.10 Maverick has tcl8.4 / tk8.4 version 8.4.19 !
" 8.4.16 " is the old 'Ubuntu 8.04 Hardy' version.
You can still use that after the ns-allinone has been built,
if it is required for other applications. Else: use the default 8.4.19.
Version 8.4.16 will usually also work OK with ns2, I think.
..
I think a better solution for beginners is to install ns2 using PPA. It will automatically solve all the dependecy problems. Hope the following link help you:
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
@ jestinjoy, post # 7. Thank you.
The referred HOWTO is for Ubuntu 10.04 and 10.10 ? http://opensourcetips.org/linux/ubun...n-6-easy-steps
Comments to the link : The package "ns" is not available any more.
'sudo apt-get install ns2' will provide /usr/bin/ns from ns-2.35~RC6.
I successfully installed ns in both Debian Lenny and Ubuntu 10.04 from this PPA. It didint showed any dependency issues. In my Debian it reads version as "2.33-0ubuntu1" . Are you telling that any problem doing this.
No ppa repo is required for Ubuntu 10.10 !
It's all included in the universe repo http://packages.ubuntu.com/en/maverick/ns2 | i386 | amd64.
Hence 'sudo apt-get install ns2'.
#7 QUOTE : .. will automatically solve all the dependecy problems
#9 QUOTE : .. It didn't show any dependency issues
Comment : I don't think there are any known dependency issues with ns2 :
NS2 is very well documented here at LQ.
..
hi
i've been trying to add a new potocol in ns2-35
when i typing make in ns an error accur
trace/cmu-trace.o : In function `hdr_mcv::access(Packet const*)':
cmu-trace.cc : (.text._ZN7hdr_mcv6accessEPK6Packet[hdr_mcv::access(Packet const*)]+0x7):
undefined reference to `hdr_mcv:: offset_
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Post #13, @narges62.
Looks like you are using the wrong compiler (g++).
`ns-allinone-2.35' requires gcc/g++ version 4.4*.
Old protocols will often require g++ version 4.1.2 or 3.4.6 .
Which protocol is it about ? A link to some information, please.
Which OS are you using ? Please show the output from :
a) $ uname -m <Enter>
b) $ cat /etc/*release* <Enter>
hi knudfl
thanks
i am using ubuntu 12.4 32 bit
i write a new portocol for vanet and i want to add to ns2.35
i changed necessary changes in cmu-trace and....
but when i use make command this error showing
trace/cmu-trace.o: In function `hdr_mcv::access(Packet const*)':
cmu-trace.cc: (.text._ZN7hdr_mcv6accessEPK6Packet[hdr_mcv::access(Packet const*)]+0x7): undefined reference to `hdr_mcv:: offset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.