Re: Help regarding installation of NS-2.27 on Ubuntu 9.10
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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,517
Rep:
#33 @shidayat, welcome to LQ.
Please open a terminal window and do : sudo gedit /etc/apt/sources.list
and add the 'hardy' lines : see the edited post # 3 : http://www.linuxquestions.org/questi...10-a-782356/#3
Next : install g++-3.3 : sudo apt-get install g++-3.3
When you can't use 'apt-get' ( If you have no internet connection ) :
Using "dpkg -i" : The first command is always 'pwd', to decide your location.
Then you can do : cd Downloads/ ( or wherever the files are. ( Desktop ? )).
And then your "next command" will work.
it means g++-3.3 wasn't installed right?
could u tell me where went wrong?
======================================================
i download libstdc++5_3.3.6-15ubuntu4_i386.deb and add it on dpkg -i ...
Code:
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
I have been trying to download g++33 using the following command: sudo apt-get install g++-33
[sudo] password for keepwalking:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package g++-33
but get the above errors can any one help me to solve this problems
The g++-3.3 packages can also be found here http://packages.ubuntu.com/hardy/g++-3.3
to do : sudo dpkg -i \
cpp-3.3_3.3.6-15ubuntu4_i386.deb g++-3.3_3.3.6-15ubuntu4_i386.deb \
gcc-3.3_3.3.6-15ubuntu4_i386.deb gcc-3.3-base_3.3.6-15ubuntu4_i386.deb \
libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb
i become confused. I'm new to linux and i can't edit source.list. in addition, i download g++.3.3 but i don't know where i must copy downloaded file to linux can install it?!
please help me. it's very urgent for me!
Thanks
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
#38 @ fahimeh_ak.
sudo gedit /etc/apt/sources.list
... Then you can add the four lines.
Quote:
I download g++.3.3
Can be done if you have no internet connection : Five packages are required.
1) cd Download/ ( or wherever you have the packages ( Desktop ? ))
2) sudo dpkg -i <all-packages>
I've installed ns-2.29 successfully in ubuntu 10.04. My problem is when i try install mobility package from nist. I copy the ns-2.29 to ns-allinone-2.29 and try to compile.
I got this error, Any idea?
`.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!
finally, g++-3.3 installed. as you told me, after changing the sources.list, I must sudo apt-get update.
at your patching step, i found copying tk-8.4-lastevent.patch to tk8.4.14 is it should be tk8.4.18 ? because there is no tk8.4.14 at my ns directory
i assume this should be tk8.4.18, and i patching there then ./install
my error is the same as post #4
Code:
otcl-1.8 make failed! Exiting ...
is there something i miss?
i searching on other thread n found that before build ns2 sudo apt-get remove tcl* must be done is it right?
Hi
first of all, sorry for my bad english
I am trying to install ns2.27 on my ubuntu 10.04
I used your post #3 and i done all of it's step according to attached file.
but when I run ./install i got this error:
In file included from /usr/include/math.h:40,
from setdest.cc:43:
/usr/include/bits/inf.h:27:1: warning: this is the location of the previous definition
In file included from ../../../config.h:54,
from setdest.h:5,
from setdest.cc:57:
../../../autoconf.h:85: error: ‘CPP_NAMESPACE’ is not a namespace-name
../../../autoconf.h:85: error: expected namespace-name before ‘;’ token
In file included from setdest.cc:57:
setdest.h:26: error: extra qualification ‘vector::’ on member ‘operator=’
setdest.h:31: error: extra qualification ‘vector::’ on member ‘operator+=’
setdest.h:36: error: extra qualification ‘vector::’ on member ‘operator==’
setdest.h:39: error: extra qualification ‘vector::’ on member ‘operator!=’
setdest.cc: In member function ‘void Node:ump()’:
setdest.cc:876: error: cast from ‘Neighbor*’ to ‘int’ loses precision
make[1]: *** [setdest.o] Error 1
make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec'
g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/fahimeh/ns/ns-allinone-2.27/tclcl-1.15 -I/home/fahimeh/ns/ns-allinone-2.27/otcl-1.8 -I/home/fahimeh/ns/ns-allinone-2.27/include -I/home/fahimeh/ns/ns-allinone-2.27/include -I/usr/include/pcap -o proxytrace.o proxytrace.cc
In file included from proxytrace.cc:3:
../../../autoconf.h:85: error: ‘CPP_NAMESPACE’ is not a namespace-name
../../../autoconf.h:85: error: expected namespace-name before ‘;’ token
make[1]: *** [proxytrace.o] Error 1
make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa'
g++ -c -I. -I/home/fahimeh/ns/ns-allinone-2.27/tclcl-1.15 -I/home/fahimeh/ns/ns-allinone-2.27/otcl-1.8 -I/home/fahimeh/ns/ns-allinone-2.27/include -I/home/fahimeh/ns/ns-allinone-2.27/include -I/usr/include/pcap -o tr-stat.o tr-stat.cc
tr-stat.cc: In function ‘double lf_analyze(Entry&)’:
tr-stat.cc:154: error: cast from ‘void*’ to ‘int’ loses precision
make[1]: *** [tr-stat.o] Error 1
make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr'
g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/fahimeh/ns/ns-allinone-2.27/tclcl-1.15 -I/home/fahimeh/ns/ns-allinone-2.27/otcl-1.8 -I/home/fahimeh/ns/ns-allinone-2.27/include -I/home/fahimeh/ns/ns-allinone-2.27/include -I/usr/include/pcap -o tr-stat.o tr-stat.cc
In file included from ../../../config.h:54,
from logparse.h:7,
from tr-stat.cc:24:
../../../autoconf.h:85: error: ‘CPP_NAMESPACE’ is not a namespace-name
../../../autoconf.h:85: error: expected namespace-name before ‘;’ token
tr-stat.cc: In function ‘double lf_analyze(lf_entry&)’:
tr-stat.cc:141: error: cast from ‘void*’ to ‘int’ loses precision
tr-stat.cc:152: error: cast from ‘void*’ to ‘int’ loses precision
make[1]: *** [tr-stat.o] Error 1
make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb'
g++ -c -I. -I/home/fahimeh/ns/ns-allinone-2.27/tclcl-1.15 -I/home/fahimeh/ns/ns-allinone-2.27/otcl-1.8 -I/home/fahimeh/ns/ns-allinone-2.27/include -I/home/fahimeh/ns/ns-allinone-2.27/include -I/usr/include/pcap -o tr-stat.o tr-stat.cc
tr-stat.cc: In function ‘double lf_analyze(lf_entry&)’:
tr-stat.cc:174: error: cast from ‘void*’ to ‘int’ loses precision
tr-stat.cc:187: error: cast from ‘void*’ to ‘int’ loses precision
make[1]: *** [tr-stat.o] Error 1
make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb'
make: *** [all-recursive] Error 2
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
actually i don't know what I must do know! please help me!
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 42 @shidayat : We'll look at that later, when you have edited post # 42,
i.e. shortened "long words", that spoil formatting.
Please delete this "word" : =========================================================
All "indep-utils/" come with a Makefile. Edit the Makefile "CC = gcc" to e.g. gcc-3.3.
Not very important : The binary 'ns' has been created at this stage.
"indep-utils/" are just the last "extra files".
They usually fail that way in a 64bits Ubuntu 10.xx.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 42 , @ shidayat
cd tk8.4x/ ( That be tk8.4, any version. 8.4.14 is just a typo somewhere.)
patch -p0 < <path-to-where-you-have-the-patch> tk-8.4-lastevent.patch
I.e. copying the patch to tk8.4.18/ is not really required.
cd ns-allinone-2.27/ && export CC=gcc-3.3 CXX=g++-3.3 && ./install
... This will insure that all applications use g++-3.3
Be aware that the "export ..." command is temporary, will reset to g++(4.4)
when you exit the terminal.
P.S. : If you still have issues with otcl : Edit the otcl Makefile line 7 to :
CC = gcc-3.3
I.e. not all Makefiles are recreated, when you run ./install.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.