Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
11-13-2012, 07:03 AM
|
#1
|
Member
Registered: Nov 2010
Posts: 35
Rep:
|
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:
Makefile:1601: attention : écrasement des commandes pour la cible « /home/mouna/Network »
Makefile:1514: attention : anciennes commandes ignorées pour la cible « /home/mouna/Network »
Makefile:1603: attention : écrasement des commandes pour la cible « /home/mouna/Network »
Makefile:1601: attention : anciennes commandes ignorées pour la cible « /home/mouna/Network »
Makefile:1605: attention : écrasement des commandes pour la cible « /home/mouna/Network »
Makefile:1603: attention : anciennes commandes ignorées pour la cible « /home/mouna/Network »
make: Dépendance circulaire /home/mouna/Network <- /home/mouna/Network abandonnée.
make: Dépendance circulaire Simulators/ns-allinone-2.35/tcl8.5.10/unix/../macosx/configure <- /home/mouna/Network abandonnée.
make: *** Pas de règle pour fabriquer la cible « Simulators/ns-allinone-2.35/tcl8.5.10/unix/../macosx/configure.ac », nécessaire pour « Simulators/ns-allinone-2.35/tcl8.5.10/unix/../macosx/configure ». Arrêt.
tcl8.5.10 make failed! Exiting ...
I hope you can help me .
Thanks in advance .
|
|
|
11-13-2012, 12:46 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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
.
|
|
|
11-13-2012, 12:53 PM
|
#3
|
Member
Registered: Nov 2010
Posts: 35
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
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
.
|
I already did that , but still having the same problem !!
|
|
|
11-14-2012, 06:38 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 1
Quote:
make: *** Pas de règle pour fabriquer la cible «
Simulators/ns-allinone-2.35/tcl8.5.10/unix/../macosx/configure.ac
|
No "macosx" should be used, when you are using Ubuntu.
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
.
Last edited by knudfl; 11-14-2012 at 06:44 AM.
|
|
|
11-14-2012, 10:07 AM
|
#5
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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.
.
|
|
|
11-18-2012, 04:36 AM
|
#6
|
Member
Registered: Nov 2010
Posts: 35
Original Poster
Rep:
|
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 ~/.bashrc add these lines in the end of the file
Code:
#LD_LIBRARY_PATH
OTCL_LIB=/home/mouna/ns-allinone-2.35/otcl-1.14
NS2_LIB=/home/mouna/ns-allinone-2.35/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/home/mouna/ns-allinone-2.35/tcl8.5.10/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/mouna/ns-allinone-2.35/bin:/home/mouna/ns-allinone-2.35/tcl8.5.10/unix:/home/mouna/ns-allinone-2.35/tk8.5.10/unix
# Note: the above two lines starting from XGRAPH should come in the same line
NS=/home/mouna/ns-allinone-2.35/ns-2.35/
NAM=/home/mouna/ns-allinone-2.34/nam-1.15/
PATH=$PATH:$XGRAPH:$NS:$NAM
save the modification source ~/.bashrc that's all , now type ns to see % and type nam to show the nam startup window , this shows the installation has been successful
you should replace /home/mouna with the path to your home folder.
|
|
2 members found this post helpful.
|
11-25-2012, 05:17 AM
|
#7
|
LQ Newbie
Registered: Nov 2012
Posts: 5
Rep:
|
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: air<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
Last edited by amani1; 11-25-2012 at 05:57 AM.
|
|
|
11-26-2012, 04:24 AM
|
#8
|
Member
Registered: Nov 2010
Posts: 35
Original Poster
Rep:
|
Quote:
Originally Posted by amani1
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: air<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
|
have you tried this :
Code:
export CC=gcc-4.4 CXX=g++-4.4 && ./install
??
|
|
1 members found this post helpful.
|
11-26-2012, 11:20 PM
|
#9
|
LQ Newbie
Registered: Nov 2012
Posts: 5
Rep:
|
done
thanks for your response but actually i have finished 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
|
|
1 members found this post helpful.
|
11-27-2012, 05:12 AM
|
#10
|
Member
Registered: Nov 2010
Posts: 35
Original Poster
Rep:
|
Quote:
Originally Posted by amani1
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
|
good luck
|
|
|
12-21-2012, 03:20 AM
|
#11
|
LQ Newbie
Registered: Dec 2012
Posts: 13
Rep:
|
to run C++ in NS 2, is it suitable to install allinone or getting piece?
Quote:
Originally Posted by amani1
thanks for your response but actually i have finished 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
|
Hello,
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.
|
|
|
12-21-2012, 03:53 AM
|
#12
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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
.
Last edited by knudfl; 12-21-2012 at 05:09 AM.
|
|
1 members found this post helpful.
|
12-21-2012, 09:04 PM
|
#13
|
LQ Newbie
Registered: Dec 2012
Posts: 13
Rep:
|
Thx to knudfl
Thx for your suggestion. I will try it and if i have a problem, hope you for further suggestion.
|
|
|
12-21-2012, 11:37 PM
|
#14
|
LQ Newbie
Registered: Dec 2012
Posts: 13
Rep:
|
Hello Mouna,
Quote:
Originally Posted by MounaRM
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 ~/.bashrc add these lines in the end of the file
Code:
#LD_LIBRARY_PATH
OTCL_LIB=/home/mouna/ns-allinone-2.35/otcl-1.14
NS2_LIB=/home/mouna/ns-allinone-2.35/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/home/mouna/ns-allinone-2.35/tcl8.5.10/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/mouna/ns-allinone-2.35/bin:/home/mouna/ns-allinone-2.35/tcl8.5.10/unix:/home/mouna/ns-allinone-2.35/tk8.5.10/unix
# Note: the above two lines starting from XGRAPH should come in the same line
NS=/home/mouna/ns-allinone-2.35/ns-2.35/
NAM=/home/mouna/ns-allinone-2.34/nam-1.15/
PATH=$PATH:$XGRAPH:$NS:$NAM
save the modification source ~/.bashrc that's all , now type ns to see % and type nam to show the nam startup window , this shows the installation has been successful
you should replace /home/mouna with the path to your home folder.
|
Thx for your post, It's very helpful. I finish installation successfully, But, wehn I type ns, this message appears "The program 'ns' is currently not installed. You can install it by typing:
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.
|
|
|
12-22-2012, 02:22 AM
|
#15
|
LQ Newbie
Registered: Dec 2012
Posts: 13
Rep:
|
Now, it works well.Thx to all.
|
|
|
All times are GMT -5. The time now is 03:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|