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 |
All times are GMT -5. The time now is 06:03 PM. |