LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
Search this Thread
Old 11-06-2009, 12:26 PM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660

To @ yasirimteyaz and @ joelits :
I never did it that way, but installed
otcl, tclcl, ns, nam to /usr/local/ , just
by doing # 'make install' after 'cd' into
each of those. ( Please see post # 6.)
Installs 18 ( small ) files in /usr/local/.
cd /usr/local/bin/
# strip *
( or sudo strip * , if Ubuntu.)
.. makes ns , nam smaller.

Some times it is possible to use the system tcl / tk .
And as not all Linux's needs " system tcl / tk ",
the tcl-8.4.18 / tk-8.4.18 from ns-allinone can be
installed too.

Then : No setting PATH at all, when all the binaries
are in a system path.
.....
.....
Examples : LQ 'Main Menu' > Search > 'Tagname' = ns2
http://www.linuxquestions.org/questi...ora-11-750634/
post # 13
http://www.linuxquestions.org/questi...sion.c-663612/
post # 13
.....

Last edited by knudfl; 11-06-2009 at 12:39 PM.
 
Old 11-06-2009, 02:36 PM   #17
joelits
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
solved.. i introduce wrong versions xD
 
Old 11-06-2009, 05:15 PM   #18
yasirimteyaz
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 1
Check out my latest blog on installing ns2 on Ubuntu 9.10 http://bit.ly/1DiXzB
It works perfectly with this method. No need to set path or environment.
 
Old 11-07-2009, 05:47 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
@yasirimteyaz # 18, thank you for the repo reference.
Installing ns, nam, otcl, tclcl, goes this way :

1) sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B3F3334F
2) sudo gedit /etc/apt/sources.list
.. and add this line to the file :

deb http://ppa.launchpad.net/wouterh/ppa/ubuntu karmic main

3) Start or restart 'synaptic', and ns (-2.33), nam (-1.13) are there.
.. "mitotcl", tclcl, tcl8.4, tk8.4 will be installed automatically as dependency.
.. And you have ns, nam in a system path per the recommandations in
this thread ... and thus : no setting no extra path's.

Notice this : ns provides /usr/bin/ns only, no other ns files,
so there is no reason to delete your already unpacked files.
( If the versions will fit.)
.....
.....

A comment to your blog, concerning gcc-4.4 :
'otcl-1.13' compiles with no errors, gcc-4.4.0 ( Fedora 11 ) ,
gcc-4.4.1 ( pclos 2009.2 ), and gcc-4.4.1 in Mandriva 2010 ,
... but not with the gcc-4.4.1 supplied with Ubuntu 9.10 .
.....

Last edited by knudfl; 11-08-2009 at 05:56 AM.
 
Old 11-09-2009, 05:04 AM   #20
foottuns
Member
 
Registered: Nov 2009
Location: London
Distribution: Fedora 16
Posts: 92

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by foottuns View Post
hello mate, is working thanks for your help, i didn't had to modify nothing, i did what you have told me and now is working perfectly as i was want it, thanks a lot i need it so much for my school project, cool.



i have a question to ask, i have to build a cluster with 100 pc what i am interested is in hardware, can you give me some advices regarding to this. thanks again and good luck...


Well mate I try to install it on my other computer and now I get this error, I did the building essential and install the gcc but the error is still here.


Code:
Build tcl8.4.18
============================================================
configure: WARNING: unrecognized options: --enable-gcc
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc-4.3
checking for C compiler default output file name... 
configure: error: in `/home/mountain/ns/ns-allinone-2.34/tcl8.4.18/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details.
tcl8.4.18 configuration failed! Exiting ...
Tcl is not part of the ns project.  Please see www.Scriptics.com
to see if they have a fix for your platform.
 
Old 11-09-2009, 05:11 AM   #21
foottuns
Member
 
Registered: Nov 2009
Location: London
Distribution: Fedora 16
Posts: 92

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by yasirimteyaz View Post
Check out my latest blog on installing ns2 on Ubuntu 9.10 http://bit.ly/1DiXzB
It works perfectly with this method. No need to set path or environment.
that's a good tutorial, thanks for your help, it was very easy to install it...............
 
Old 11-10-2009, 07:08 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
# 20
Quote:
configure: error: C compiler cannot create executables
Generally about compilers : install g++ to get the packages,
that also makes gcc have full functionality.

sudo apt-get install \
g++ g++-4.3 build-essential libc6-dev linux-libc-dev

to be sure it all works.
.....

Last edited by knudfl; 11-10-2009 at 07:15 AM.
 
Old 11-12-2009, 03:21 AM   #23
mzarei
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by knudfl View Post
Sorry, my mistake. The correct order seems to be
' CC=gcc-4.3 CXX=g++-4.3 ./install '

And, by the way, there are no c++ code in otcl,
so the 'CC=gcc-4.3 ./install' alone will probably do.

But as only ' otcl ' dislikes gcc-4.4.1, I will choose
this solution : Edit ' otcl-1.13/Makefile.in ', line 7
Code:
From :
CC=       @CC@

to :
CC=       gcc-4.3
... And ns-allinone-2.34 compiles on Ubuntu 9.10 with no errors.
I will attach the result of ' ./validate ' here when it has
finished.
.....
hi
after i do that i see this error :

Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking system version (for dynamic loading)... Linux-2.6.31-14-generic
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.so otcl.o so_locations
gcc-4.3 -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/mehdi/home/programmer/ns-allinone-2.34/include -I/home/mehdi/home/programmer/ns-allinone-2.34/include -I/home/mehdi/home/programmer/ns-allinone-2.34/include -I/include  otcl.c
make: gcc-4.3: Command not found
make: *** [libotcl.so] Error 127
otcl-1.13 make failed! Exiting ...
please help me

Last edited by mzarei; 11-12-2009 at 03:22 AM.
 
Old 11-12-2009, 02:11 PM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
@ mzarei , # 23 : Welcome to LQ.
Quote:
make: gcc-4.3: Command not found
Which Linux are you using ? ? Like Ubuntu 9.10 .. Fedora 11 .. etc.
Ubuntu 9.10 : install the package gcc-4.3 with the Package Manager
to get the command. Only Ubuntu 9.10 needs this modification. AFAIK.
'gcc-4.1' or 'gcc-3.x' are OK too, if available.

http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....

Last edited by knudfl; 11-12-2009 at 05:30 PM.
 
Old 11-13-2009, 12:59 AM   #25
mzarei
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by knudfl View Post

Which Linux are you using ? ? Like Ubuntu 9.10 .. Fedora 11 .. etc.
Ubuntu 9.10 : install the package gcc-4.3 with the Package Manager

.
Hi
I using ubuntu 9.10
Tanks knudfl

Quote:
Ubuntu 9.10 : install the package gcc-4.3 with the Package Manager
it's working
I also validate it and "validate overall report: all tests passed"
But in validation process I saw this "warning: Route to base_stn not known: dropping pkt"

Is it important?
 
Old 11-13-2009, 03:24 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
# 25
A warning is mostly an information.

If it had any importance, the result would have been
different from " All tests passed ".
.....

" Not all tests passed " is when you will have to
repeat some tests manually.
.....
 
Old 04-14-2010, 08:56 PM   #27
marioma
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
@yasirimteyaz # 18, thank you for the repo reference.
Installing ns, nam, otcl, tclcl, goes this way :

1) sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B3F3334F
....
.....
Dears, when I use this command, I get this error!

Quote:
mariam@ubuntu:~$ sudo apt-get install \g++ g++-4.3 build-essential libc6-dev linux-libc-dev
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

 
Old 04-15-2010, 03:54 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
@ marioma, post # 27 : Welcome to LQ. .. ..

sudo apt-get install g++ g++-4.3 libc6-dev linux-libc-dev
( build-essential is mostly for building debian / ubuntu packages.)
And if you could run ./install in ns-allinone-2.xx,
you already have g++, etc. See post # 2 for other requirements.
And please see post # 6 for installing the binaries + libraries.

""E: Could not get lock /var/lib/dpkg/lock - open
(11: Resource temporarily unavailable)"" :
Either an automatic update is running, and / or you are using
the package manager ( 'synaptic' ).
Suggest : shut down Synaptic, if it's open, and for some
updates : wait, until the process stops.
.....

Last edited by knudfl; 04-16-2010 at 01:52 PM.
 
1 members found this post helpful.
Old 04-15-2010, 01:53 PM   #29
yasirimteyaz
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 1
Quote:
Originally Posted by marioma View Post
Dears, when I use this command, I get this error!
looks like synaptic manager is open when u r trying to run this command.

firstly close all synaptic windows and then run the command.
 
1 members found this post helpful.
Old 04-16-2010, 11:19 AM   #30
marioma
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
Dear Knudfl & Yasir
Thanks a lot for your kind help
First I'd like to inform you with my environment, I am trying to install ns-allinone-2.34 on Ubuntu 9.10.
Knudfl, you are right my automatic update is running and still needs about 3 hours to finish after that I will try to follow your steps and hope that is work with me.
Yasir, I went to your blog "http://ns2onubuntu.blogspot.com/2009/11/easiest-way-to-install-ns2-on-ubuntu.html" but you said that "u can't make changes to C++ source files to recompile it...Make it clear that you installed it through ppa not by ns-allinone package, so ns-allinone files is of no use except for using examples and protocols already implemented"
so now I am asking, this means that if I need to create a new protocol which is not included in NS2 packages or to update in an existing one, I couldn't use your blog steps to install NS2, therefor I should go to ns2-allinone package...

being as a new memeber at Linux world, really need your help
Thanks in advance
Mariam
 
  


Reply

Tags
ns2, ns234


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware installation wont install. xlordt Slackware 9 02-21-2008 10:48 AM
Installation wont work with 6800 GS scripts Linux - Hardware 1 06-16-2006 11:15 AM
New installation cd's wont boot BACTRATE Suse/Novell 7 12-05-2005 10:15 AM
RH9 wont boot after installation FrancoisRabe Linux - Software 1 01-24-2005 02:40 AM
Linux wont boot after installation Sporndog Linux - Newbie 2 03-24-2004 03:08 AM


All times are GMT -5. The time now is 03:18 PM.

Main Menu
Advertisement
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