LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 11-13-2012, 07:03 AM   #1
MounaRM
Member
 
Registered: Nov 2010
Posts: 35

Rep: Reputation: 14
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 .
 
Old 11-13-2012, 12:46 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,198

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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

.
 
Old 11-13-2012, 12:53 PM   #3
MounaRM
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by knudfl View Post
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 !!
 
Old 11-14-2012, 06:38 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,198

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
# 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.
 
Old 11-14-2012, 10:07 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,198

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.

.
 
Old 11-18-2012, 04:36 AM   #6
MounaRM
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 14
Thumbs up 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.
Old 11-25-2012, 05:17 AM   #7
amani1
LQ Newbie
 
Registered: Nov 2012
Posts: 5

Rep: Reputation: Disabled
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.
 
Old 11-26-2012, 04:24 AM   #8
MounaRM
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by amani1 View Post
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.
Old 11-26-2012, 11:20 PM   #9
amani1
LQ Newbie
 
Registered: Nov 2012
Posts: 5

Rep: Reputation: Disabled
Smile 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.
Old 11-27-2012, 05:12 AM   #10
MounaRM
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by amani1 View Post
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
 
Old 12-21-2012, 03:20 AM   #11
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
to run C++ in NS 2, is it suitable to install allinone or getting piece?

Quote:
Originally Posted by amani1 View Post
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.
 
Old 12-21-2012, 03:53 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,198

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
Old 12-21-2012, 09:04 PM   #13
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
Smile Thx to knudfl

Thx for your suggestion. I will try it and if i have a problem, hope you for further suggestion.
 
Old 12-21-2012, 11:37 PM   #14
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
Hello Mouna,

Quote:
Originally Posted by MounaRM View Post
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.
 
Old 12-22-2012, 02:22 AM   #15
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
Now, it works well.Thx to all.
 
  


Reply

Tags
ns235


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Xen On An Ubuntu 8.04 (Hardy Heron) Server From The Ubuntu Repositor LXer Syndicated Linux News 0 05-08-2008 02:10 PM
LXer: Installing Xen On An Ubuntu 7.10 (Gutsy Gibbon) Server From The Ubuntu Reposito LXer Syndicated Linux News 0 11-06-2007 08:50 PM
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 06:46 AM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM
Installing the nvidia driver off the web site and installing rpm in ubuntu? darkhatter Ubuntu 3 02-19-2006 02:44 PM


All times are GMT -5. The time now is 09:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration