installing ns-2.35 on ubuntu 12.10
Hello my friends ,
am trying to install ns-2.35 on ubuntu 12.10 , but I keep having this problem : Code:
Thanks in advance . |
Probably same procedure as for Ubuntu 12.04 :
sudo apt-get install g++-4.4 cd ns-allinone-2.35/ && export CC=gcc-4.4 CXX=g++-4.4 && ./install . |
Quote:
|
# 1
Quote:
I copy / pasted the "make output text" to a file make.txt. And : $ grep macosx make.txt : Nothing. I have no issues on the 32bits (i686) Ubuntu 12.04, like post #2. May be you have a corrupt ns-allinone-2.35 source ? ? Or that your setup / location is wrong ? Please try again in /home/mouna/tmp/ns-allinone-2.35/ , with a new download of ns-allinone-2.35.tar.gz : http://jaist.dl.sourceforge.net/proj...ne-2.35.tar.gz Or http://garr.dl.sourceforge.net/proje...ne-2.35.tar.gz . |
Ubuntu 12.10 .. .. ns-allinone-2.35
1) cd ns-allinone-2.35/
2) export CC=gcc-4.4 CXX=g++-4.4 && ./install : No errors Ubuntu 12.10, i686. "A wrong location" can be a space in a folder name. Then the "./install command" my be confused. . |
Ns-allinone package has been installed successfully.
Hi my friends ,
Finally, I installed ns-2.35 on ubuntu 12.10. here the steps for the installation: [Step 1] install some essential softwares: sudo apt-get install tcl8.5-dev tk8.5-dev sudo apt-get install gcc-4.4 g++-4.4 sudo apt-get install build-essential autoconf automake sudo apt-get install perl xgraph libxt-dev libx11-dev libxmu-dev[Step 2] download ns-2.35 from http://sourceforge.net/projects/nsna...ar.gz/download unpack ns2 to your home directory tar -zxvf ns-allinone-2.35.tar.gz -C /home/mouna[Step 3] modify the OTcl makefile open /home/mouna/ns-allinone-2.35/otcl-1.14/Makefile.in change CC = @CC@ to CC=gcc-4.4 save the file[Step 4]install ns2 cd /home/mouna/ns-allinone-2.35 ./install[Step 5]modify ~/.bashrc Once the installation is successful (without any errors), we need to add the path information to the file ~/.bashrc gedit ~/.bashrcadd these lines in the end of the file Code:
#LD_LIBRARY_PATH source ~/.bashrcthat's all , now type ns to see % and type nam to show the nam startup window , this shows the installation has been successful :D :tisk: you should replace /home/mouna with the path to your home folder. |
linkstat\ls.o
hello all
first special thanks for u muona i followed your steps ,but have the following error: linkstate/ls.cc:396:28: required from here linkstate/ls.h:137:20: error: ‘erase’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] linkstate/ls.h:137:20: note: declarations in dependent base ‘std::map<int, LsIdSeq, std::less<int>, std::allocator<std::pair<const int, LsIdSeq> > >’ are not found by unqualified lookup linkstate/ls.h:137:20: note: use ‘this->erase’ instead make: *** [linkstate/ls.o] Error 1 Ns make failed! i have Ubuntu 12.10 and install ns v 2.35 followed mouna steps search a lot through net but nothing help any suggestions plz thanks |
Quote:
Code:
export CC=gcc-4.4 CXX=g++-4.4 && ./install |
done
thanks for your response but actually i have finished :D the installation while searching i found that it is something related to library and change the code in the linkstate/ls.h according to
#include <vector> template class A: public std::vector { public: void del() { // The right syntax is: // this->erase(std::vector::begin()); erase(std::vector::begin()); } }; then the installation was successful but now i will begin the coding i want to make ideo streaming over ad hoc network & test the video quality while changing the protocol type hope every thing run smoothly :confused: |
Quote:
|
to run C++ in NS 2, is it suitable to install allinone or getting piece?
Quote:
I'm trying to install NS 2 on Ubuntu 12.10 alongside with Window 7. But now I'm confused which one is suitable to write code, I am a research student on ad hoc network. So, which one is better in allinone or getting piece instllation? I hope you can give some suggestion. All of things are new for me, my first experience.So, Hope any suggestion. |
Post #11, @Nwe Nwe : Welcome to LQ.
You can choose any version, ns-allinone 2.26 .. 2.35 . And you can have as many versions of ns-allinone-2.xx as you want, installed at the same time. But do not add any of them to a *PATH. Version 2.35 can be compiled with g++-4.4. See post #2 and #5. All other versions can use gcc41-compat, g++41-compat : gcc41-compat-4.1.2.ubu1204_i386.deb → https://docs.google.com/open?id=0B7S...lNURldUenRyb3c g++41-compat-4.1.2_i386.deb → https://docs.google.com/open?id=0B7S...hjMjljN2M2MGU4 . |
Thx to knudfl
Thx for your suggestion. I will try it and if i have a problem, hope you for further suggestion.
|
Hello Mouna,
Quote:
sudo apt-get install ns2" And also It does not work when I type nam in terminal. So, what steps do I need do more. Please let me know, Hope any help from anyone. |
Now, it works well.Thx to all.
|
All times are GMT -5. The time now is 05:50 PM. |