Hello every one.
I'm trying to install ns2.27 but I'm finding this error : keepwalking@ubuntu:~$ wget http://www.tekno.chalmers.se/~yushen...7-gcc410.patch --2011-03-22 13:39:20-- http://www.tekno.chalmers.se/~yushen...7-gcc410.patch Resolving squid.uzulu.ac.za... 10.61.3.9 Connecting to squid.uzulu.ac.za|10.61.3.9|:3128... connected. Proxy request sent, awaiting response... 503 Service Unavailable 2011-03-22 13:39:22 ERROR 503: Service Unavailable. Can anyone help me to solve this problem. |
# 31 @ keepwalking :
You'd forgot to read the answer to you in post # 30 ? ? .. |
hi LQ,
I want to install ns2.27 under ubuntu 9.10 on Virtual Box. I've followed the instruction on post #3, but get error when installing packages: Code:
shidayat@shidayat-vbox:~$ sudo dpkg -i \ |
#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. .. |
hi knudfl,
i've added the hardy lines on sources.list but when i sudo apt-get install g++-3.3 it still wont work so i downloaded those packages and dpkg -i ... Code:
shidayat@shidayat-vbox:~/ns2$ ls 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 ... |
# 35
The install command is : sudo apt-get install g++-3.3 Meaning : The command will install all the packages ! All ! No need to install any downloaded packages, when apt can do the job. Quote:
.. |
dear all
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 |
help me install ns2.27 on ubunto 10.04
Hi everybody
i want to install ns2.27 on ubuntu (i want to use SIP), i read your post, but when you say: the required g++-3.3 : sudo apt-get install g++-3.3 For that, hardy must be added to /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 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 |
#38 @ fahimeh_ak.
sudo gedit /etc/apt/sources.list ... Then you can add the four lines. Quote:
1) cd Download/ ( or wherever you have the packages ( Desktop ? )) 2) sudo dpkg -i <all-packages> |
ns-2.29 + ns-2.29-nist-mob-022707.tgz
Hi knudfl,
I'm following this post a long time. 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! Thank You! |
@abutre post #40 : Welcome to LQ.
Read the LQ Rules http://www.linuxquestions.org/linux/rules.html Double posting is not allowed. And avoid off topic questions : This thread is not about ns-2.29. http://www.linuxquestions.org/linux/...Ask_a_Question http://linuxsilo.net/docs/smart-questions_en.html |
hi knudfl,
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 ... i searching on other thread n found that before build ns2 sudo apt-get remove tcl* must be done is it right? |
problem with installing ns2.27!!!
1 Attachment(s)
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::Dump()’: 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! |
# 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" : ========================================================= @fahimeh_ak , post # 43 : Quote:
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. .. |
# 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. .. |
All times are GMT -5. The time now is 10:16 AM. |