LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 11-06-2009, 12:26 PM   #16
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277

[Log in to get rid of this advertisement]
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..
linuxpclinuxos knudfl is offline  
Tag This Post
Reply With Quote
Old 11-06-2009, 02:36 PM   #17
joelits
LQ Newbie
 
Registered: Nov 2009
Posts: 4
Thanked: 0
solved.. i introduce wrong versions xD
windows_xp_2003 joelits is offline     Reply With Quote
Old 11-06-2009, 05:15 PM   #18
yasirimteyaz
LQ Newbie
 
Registered: Nov 2009
Posts: 3
Thanked: 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.
linux yasirimteyaz is offline     Reply With Quote
Thanked by:
Old 11-07-2009, 05:47 AM   #19
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
@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..
linuxubuntu knudfl is offline  
Tag This Post
Reply With Quote
Old 11-09-2009, 05:04 AM   #20
foottuns
LQ Newbie
 
Registered: Nov 2009
Posts: 13
Thanked: 0

Original Poster
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.
linuxubuntu foottuns is offline     Reply With Quote
Old 11-09-2009, 05:11 AM   #21
foottuns
LQ Newbie
 
Registered: Nov 2009
Posts: 13
Thanked: 0

Original Poster
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...............
linuxubuntu foottuns is offline     Reply With Quote
Old 11-10-2009, 07:08 AM   #22
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
# 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..
linuxpclinuxos knudfl is offline     Reply With Quote
Old 11-12-2009, 03:21 AM   #23
mzarei
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 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..
linuxubuntu mzarei is offline     Reply With Quote
Old 11-12-2009, 02:11 PM   #24
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
@ 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..
linuxpclinuxos knudfl is offline     Reply With Quote
Thanked by:
Old 11-13-2009, 12:59 AM   #25
mzarei
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 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?
windows_xp_2003 mzarei is offline     Reply With Quote
Old 11-13-2009, 03:24 AM   #26
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
# 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.
.....
windows_xp_2003 knudfl is offline  
Tag This Post
Reply With Quote

Reply

Bookmarks


Thread Tools

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 02:15 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration