Re: Help regarding installation of NS-2.27 on Ubuntu 9.10
Can anyone please help me with the steps to install NS 2.27 on Ubuntu 9.10.
Thank you, Scofiled |
Its all here:
http://nsnam.isi.edu/nsnam/index.php/User_Information |
'ns-2.27' .. .. Ubuntu 9.10 Karmic
Welcome to LQ. .. :)
General for all ns2 versions : sudo apt-get install g++ autoconf automake libtool \ libx11-dev libxmu-dev libxmu-headers libxt-dev ..... ..... Assume ns-allinone-2.27 You will need ns-allinone-2.34 too. Edit ns-allinone-2.27/ns-2.27/Makefile.in , line 36-37 to : CC = gcc-3.3 CPP = g++-3.3 .. and ns-allinone-2.27/nam-1.10/Makefile.in , line 44-45 : The same. 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 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 Having ns-allinone-2.27/ and ns-allinone-2.34/ in the same directory e.g. /home/"username"/ns2/ : cd ns-allinone-2.27/ mv otcl-1.8/ back-otcl-1.8 mv tcl8.4.5/ back-tcl8.4.5 mv tclcl-1.15/ back-tclcl-1.15 mv tk8.4.5/ back-tk8.4.5 ln -s ../ns-allinone-2.34/tcl8.4.18/ ln -s ../ns-allinone-2.34/tcl8.4.18/ tcl8.4.5 ln -s ../ns-allinone-2.34/tk8.4.18/ ln -s ../ns-allinone-2.34/tk8.4.18/ tk8.4.5 ln -s ../ns-allinone-2.34/otcl-1.13/ ln -s ../ns-allinone-2.34/otcl-1.13/ otcl-1.8 ln -s ../ns-allinone-2.34/tclcl-1.19/ ln -s ../ns-allinone-2.34/tclcl-1.19/ tclcl-1.15 mkdir -p include cd include/ ln -s ../tcl8.4.18/generic/tclInt.h ln -s ../tcl8.4.18/generic/tclIntDecls.h ( These two links may already be present.) Apply the tk-8.4-lastevent.patch in tk8.4.14. Apply the otcl-113-configure.in.patch in otcl-1.13. Then : ./install , in the ns-allinone-2.27/ top directory. For more info : 'LQ Search' > "Tag Name" = ns2 , 'LQ Search' > "Tag Name" = leach . |
Thank you for your installation guide. I have to work with SIP simulation (which is only supported by ns2 2.27) so I followed your guide above, but there are some problems. What I did are :
I followed your link to install g++3.3 but I can't not do it because : - g++-3.3_3.3.6-15ubuntu4_i386.deb requires libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb - libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb requires g++-3.3_3.3.6-15ubuntu4_i386.deb --> loop So I install g++ via terminal : sudo apt-get install g++ ---> it is g++-4.4 Then I changed makefile.in as follow : CC = gcc-3.3 CPP = g++-4.4 After that I did exactly what you said, and I encoutered this error with ./install command : Quote:
|
Post # 4 , @ vichia : Welcome to LQ. .. .. :) ..
"" --> loop "" .. or explained in another way : Both packages depend on each other. Please use "chain install" : sudo dpkg -i <package> <package> In fact, you could have done that from the very beginning .. sudo dpkg -i <package> <package> <package> <package> <package> Like shown in post # 3. ..... ..... And the only reason for installing this 'g++-3.3' is : The default g++ ( = g++-4.4 ) cannot be used with ns-2.27 ! ..... |
1 Attachment(s)
Message from @ Scofield : .... QUOTE :
Hello Knudfl, I have been working on LEACH protocol and installed it on NS2.27. I have some doubts regarding the files in MIT directory. Under MIT directory, we have a file leach_sims. I am unable to understand the contents of the files in leach_sims such as 1. What are the values represented in leach.alive , leach.data and leach.energy, leach.save1, leach.save2, startup.energy. 2. I have an error returned in leach.err that is ...... See attachment. 3. The leach.out file is empty without any values. Is any value is written in it 4. And also the values given in the file TDMAschedule.0.txt (files 0,20,40,........520).. .......? why is the time taken upto 520 cycles ? 5. the values are calculated for 100 nodes... what should I do to calculate the values for 200, 300 upto 1000 nodes.... thanking you, Scofield ------- end QUOTE --------- EDIT : What is the command that causes the errors ? |
I want to install mannasim in ns-2
But facing the errors like list no suh file or directory. Errors are for headers of standard template libraries. So can anyone please help me Thankin You i Advance Vivek |
Post #7 , @ Vivek pandey : welcome to LQ.
Mannasim is to be used in ns-allinone-2.29.3 The mannasim threads are found here : LQ Search http://www.linuxquestions.org/questions/search.php >>> 'Tag Name' = mannasim This thread is about ns-2.27, when you have more questions, please start a new thread. And info about the used Linux, please... EL5 ? Redhat EL5 or similar : no problems at all with ns-allinone-2.29.3 + mannasim , if I remember right. .. .. .. Good luck .. .. :) |
I try for some time to install ns-allinone 2.27 to use later leach
without success and I blocked it all the time at installation ns-allinone and I have this error message. Code:
Build tcl8.4.5 also i couldn't found the patch ubuntu 9.04 thank you for your help |
@_man_ouer , welcome to LQ. .. . :)
The install instructions are here : http://www.linuxquestions.org/questi...10-a-782356/#3 And please read all the 'LEACH' posts, if any problems. ( There are six "leach" threads.) LQ Search http://www.linuxquestions.org/questions/search.php >>> 'Tag Name' = leach ... Good luck. ... |
I'am sorry but i don't understand my problem
also i don't understand why i have problem with tcl8.3.2 because the package of ns-allinone2.27 contain tcl8.5.4 i tried to change the makefile.in (the CC and CPP variable) but i have the same probleme |
# 11 : The word "tcl8.3.2" is just a typo in the install
script, not a real error. But anyway, tcl8.4.5 is not to be used. You will have to use 8.4.18 like the instructions say. And take your time. It is not uncomplicated. .. |
I followed the instructions that you mentioned
I have now surpassed the installation of tcl but it hangs at tk8 tcl8.4.5 installation succeeded. ============================================================ * Build Tk8.4.5 ============================================================ cd: 386: can't cd to ./tk8.4.5/unix ./install: 393: ./configure: not found tk8.3.2 configuration failed! Exiting ... even though I followed all the instructions |
#13 : Forgot a link ?
ln -s ../ns-allinone-2.34/tk8.4.18/ tk8.4.5 .. |
thank you a lot Mr knudfl
i found it too after posting my message , :redface: but now the make of NS return an error with trace/trace.o:scratch: Code:
ns-allinone-2.27/tclcl-1.15/tclcl-config.h:37:1: attention : ceci est la localisation d'une précédente définition could you help me with this please thank you a lot |
#15 : Please hit the edit button and delete the most
of the text, and place the remains in code tags : [/code] at text end and [code] at the text start. http://www.linuxquestions.org/questi....php?do=bbcode About the error : Looks like you are using a wrong compiler. Did you edit the 'Makefile.in' to CC = gcc-3.3 , CPP = g++-3.3 ? ? . Also : the g++-3.3_3.3.6 , gcc-3.3_3.3.6 etc. packages, must be installed ! .. |
thank you a lot
I completed the installation of ns-allinone2.27 and leach thank you for your help |
hi all,
I am installing ns 2.27 on ubuntu 9.04 and I found some error when patching file Code:
oriza@oriza-laptop:~/Documents/ns-allinone-2.27/tk8.4.18$ patch -p0 < tk-8.4-lastevent.patch Thank you :) |
Post # 18 , @ onee_chan : Welcome to LQ. .. .. :)
".. hunk FAILED" : Not really an error ( An error is when the text says 'error' ) " hunk FAILED " : Is usually because the line(s) already has been edited. The patch is for all ' tk-8.4.x(x) '. ( E.g. 8.4.5 ..... 8.4.18 ) The later versions have some of the fixes included. .. |
Quote:
|
ns-2.27 installation
can anyone tell me how to install ns2.7 in ubuntu 8.10 and patch sip protocol,kindly help,i am in desprate situation
|
@ jagadish chandra sekar, posts 20-21 : Welcome to LQ. .. .. :) ..
Generally installing 'ns-allinone-2.27' , Ubuntu : http://www.linuxquestions.org/questi...10-a-782356/#3 About SIP : Which sip patch is it about ? One of these ? http://www.dcc.fc.up.pt/~rprior/ns/index-en.html Please specify,,, and provide a direct link to the patch, please. http://www.linuxquestions.org/linux/...Ask_a_Question http://www.catb.org/~esr/faqs/smart-questions.html .. |
Can anyone please help me with the steps to install NS 2.26 on Ubuntu 9.04
i need to patch sip-udp,which works only in ns-2.26,pls help
|
# 23 : ns-2.26 cannot be installed on a Debian based OS.
I.e. Ubuntu, Mint, Mepis, Debian, etc. : No. 'ns-allinone-2.26' : Please use an rpm based OS. (Fedora, CentOS). The compiler to be used is gcc / g++ version 3.3.3. Please read the other ns226 threads : LQ Search, Keyword = ns226 .. |
./sctp/sctp.h:214: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:226: warning: ‘typedef’ was ignored in this declaration In file included from trace/trace.cc:43: ./sctp/sctp.h:247: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:253: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:258: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:265: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:267: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:276: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:291: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:372: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:378: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:419: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:430: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:438: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:445: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:451: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:462: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:481: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:486: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:492: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:499: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:505: warning: ‘typedef’ was ignored in this declaration ./sctp/sctp.h:632: error: extra qualification ‘SctpAgent::’ on member ‘DumpSendBuffer’ trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’ trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’ trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’ trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’ trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’ make: *** [trace/trace.o] Error 1 Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems i am in desperate need of solutin thanx in advance |
Hello everyone,
I am trying to install ns-2.27 on my amd64 Ubuntu 10.04and i get the error below when i try to make ns-2.27. I am installing the allinone package, all other parts tcl, otcl, tk and tclcl have been succesfully configured and made. I have been trying for several days and i keep getting stuck here. Please i will appreciate any help as I am running behind in my Dissertation. Thank you in advance. wonuola@ubuntu:~/ns-allinone-2.27/ns-2.27$ make g++-3.3 -c -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_8 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=no -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/wonuola/ns-allinone-2.27/tclcl-1.15 -I/home/wonuola/ns-allinone-2.27/otcl-1.8 -I/home/wonuola/ns-allinone-2.27/include -I/home/wonuola/ns-allinone-2.27/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -o tools/random.o tools/random.cc In file included from config.h:54, from tools/random.cc:40: autoconf.h:85: error: namespace `no' undeclared make: *** [tools/random.o] Error 1 |
1 Attachment(s)
# 26 , @ Wonu. No, I do not see errors like that.
./install continues after the binary 'ns' has been created. ( Then there are errors in the probably insignificant subdirectory ns-2.27/indep-utils/webtrace-conv/ (Has a special Makefile) (No errors webtrace-conv/ on a 32 Bits Ubuntu 10.04, is only on the amd64 version).) Code:
validate overall report: some tests failed: Suggest : cd ns-allinone-2.27/ && sh run_script.txt .... which is a summary of the required commands .... i.e. links to ns-allinone-2.34/ etc. etc. . |
do you know how to install ns2.27 on Ubuntu 9.10 64-bits
Hi knudfl,
Thanks for the valuable guidance instructions for installing ns2.27. I tried to follow your steps to install ns2.27 on my Ubuntu 9.10 64-bits version. I downloaded the gcc-3.3...amd64.deb instead of the one you recommend. When installing the debian files, I get this at the terminal sudo dpkg -i cpp-3.3_3.3.6-15ubuntu4_amd64.deb g++-3.3_3.3.6-15ubuntu4_amd64.deb gcc-3.3_3.3.6-15ubuntu4_amd64.deb gcc-3.3-base_3.3.6-15ubuntu4_amd64.deb libstdc++5-3.3-dev_3.3.6-15ubuntu4_amd64.deb [sudo] password for cielo: (Reading database ... 152340 files and directories currently installed.) Preparing to replace cpp-3.3 1:3.3.6-15ubuntu4 (using cpp-3.3_3.3.6-15ubuntu4_amd64.deb) ... Unpacking replacement cpp-3.3 ... Preparing to replace g++-3.3 1:3.3.6-15ubuntu4 (using g++-3.3_3.3.6-15ubuntu4_amd64.deb) ... Unpacking replacement g++-3.3 ... Preparing to replace gcc-3.3 1:3.3.6-15ubuntu4 (using gcc-3.3_3.3.6-15ubuntu4_amd64.deb) ... Unpacking replacement gcc-3.3 ... Preparing to replace gcc-3.3-base 1:3.3.6-15ubuntu4 (using gcc-3.3-base_3.3.6-15ubuntu4_amd64.deb) ... Unpacking replacement gcc-3.3-base ... Preparing to replace libstdc++5-3.3-dev 1:3.3.6-15ubuntu4 (using libstdc++5-3.3-dev_3.3.6-15ubuntu4_amd64.deb) ... Unpacking replacement libstdc++5-3.3-dev ... Setting up gcc-3.3-base (1:3.3.6-15ubuntu4) ... Setting up cpp-3.3 (1:3.3.6-15ubuntu4) ... Processing triggers for man-db ... Setting up gcc-3.3 (1:3.3.6-15ubuntu4) ... Setting up libstdc++5-3.3-dev (1:3.3.6-15ubuntu4) ... Setting up g++-3.3 (1:3.3.6-15ubuntu4) ... I don't see any errors but the file is not installed (I think) because when I go to synaptic they are not there. And trying to proceed with the ns2 installation results in error since I don't have the gcc3.3 Quote:
|
Hellow All
I m trying to install ns2.27 on ubuntu 9.10 but I getting errors when I using the following comnand: wget http://www.tekno.chalmers.se/~yushen...7-gcc410.patch please help me to solve this error. |
# 29
Installing ns-2.27 on Ubuntu 9.10 : Please read post # 3. The patch http://www.linuxquestions.org/questi...379/page3.html 'ns-2.27-gcc410.patch' is attached to post # 41. ( http://norae.tistory.com/67 ) 'ns-2.27-gcc410.patch' : OK for Ubuntu 7.10, CentOS5, PCLinuxOS. ( Fedora ? ) .. |
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. .. |
Code:
Nam has been installed successfully. ps: after patching tk-8.4 and otcl-113, i made a change on Makefile.in at otcl-1.8 --> CC = gcc-3.3 then after that ./install |
Thanks
Thank you so much
using "export CC=gcc-3.3 CXX=g++-3.3" my ns2.27 installed successfully! but I have another problem now. before installing ns2.27 I had install ns2.34, and now i edit bashrc file as bellow: Code:
# LD_LIBRARY_PATH Code:
** glibc detected *** ns: realloc(): invalid next size: 0x00000000024d28f0 *** what i must do know?? |
Post # 47 @fahimeh_ak
Quote:
Will this work : 'cd ns/ns-allinone-2.27/ns-2.27/ && ./ns' ? The most easy way to have 'ns' in the PATH is : cd ns/ns-allinone-2.27/ns-2.27/ && sudo make install → → 'ns' will be copied to /usr/local/bin/ : And thus be in a system path. LD_LIBRARY_PATH settings : ns is statically compiled, and depends only on files in /usr/lib/ , which already are in the system LD_LIBRARY_PATH. (The suggestion to edit bashrc is an old text, required for older ns2 (=<2.26)). ... |
Post # 47 @fahimeh_ak
And by the way : Colored text is not appreciated : Please use the edit button and change red to black. The yellow can be deleted. Also : code tags must be used : I.e. [/code] at code end, and [code] at code text start. Please edit. .. |
Hello knudfl,
You've helped a lot of people here. I'm trying to install ns-2.27 on Ubuntu 10.04.1. The install goes fine until I get to Tclcl-1.15 and I get this: Code:
============================================================ |
All times are GMT -5. The time now is 02:44 AM. |