LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2012, 12:31 PM   #1
sange
LQ Newbie
 
Registered: Jan 2012
Location: India
Distribution: Fedora 9
Posts: 3

Rep: Reputation: 0
Question I was successful in ns2 installation in fedora 9, but I can't run the example script


i have installed ns2 in fedora 9 as root user but after this there is some notices how can i rectify it??
i cant run an example script....
I got the following message after installation
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.18: /root/ns-allinone-2.34/{bin,include,lib}
tk8.4.18: /root/ns-allinone-2.34/{bin,include,lib}
otcl: /root/ns-allinone-2.34/otcl-1.13
tclcl: /root/ns-allinone-2.34/tclcl-1.19
ns: /root/ns-allinone-2.34/ns-2.34/ns
nam: /root/ns-allinone-2.34/nam-1.14/nam
xgraph: /root/ns-allinone-2.34/xgraph-12.1
gt-itm: /root/ns-allinone-2.34/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
-----------------------------------------------------------------
Please put /root/ns-allinone-2.34/bin:/root/ns-allinone-2.34/tcl8.4.18/unix:/root/ns-allinone-2.34/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /root/ns-allinone-2.34/otcl-1.13, /root/ns-allinone-2.34/lib,into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put /root/ns-allinone-2.34/tcl8.4.18/library into your TCL_LIBRARY environmental variable. Otherwise ns/nam will complain during startup.

After these steps, you can now run the ns validation suite with
cd ns-2.34; ./validate

For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.

[root@localhost ns-allinone-2.34]# echo $PATH

/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin:/h:/root/bin:/root/bin:/home/root/ns-allinone-2.34/bin:/root/ns-allinone-2.34/tcl8.4.18/unix:/home/root/ns-allinone-2.34/tk8.4.1:/root/bin:/home/student/ns-allinone-2.34/bin:/home/student/ns-allinone-2.34/tcl8.4.18/unix:/home/student/ns-allinone-2.34/tk8.4.18/unix

[root@localhost ns-allinone-2.34]# ns
bash: ns: command not found
 
Old 01-23-2012, 02:15 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Please put /root/ns-allinone-2.34/bin:/root/ns-allinone-2.34/tcl8.4.18/unix:/root/ns-allinone-2.34/tk8.4.18/unix into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
Did you do that too? The way to do this is:

Quote:
PATH=/folder/to/thing:$PATH
where /folder/to/thing is the whole path to ns...this way (opposed to yours, if I see correctly) is called PRE-pathing, in that you softawre will be found first...

Then, set the exec permissions so the required user can run it.

Good luck.

By the way, Fedora 9 is somewhat dated. To get a proper experience, I suggest the use of a newer Fedora...if the lessons permit, of course.

Thor

Last edited by ButterflyMelissa; 01-23-2012 at 02:16 PM.
 
1 members found this post helpful.
Old 01-23-2012, 04:29 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,107

Rep: Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478
fedora chances very fast
fedora 9 went End Of Life in July 2009 and has not been supported sense then
fedora 16 is current you are 7 versions OUT OF DATE
no new software will run on fedora 9
on fedora 9 you will NOT be able to use frefox above 3.0 beta ( default install)
firefox-3.0.11-1.fc9.i386.rpm is in the historical archives under the "newkey"
the current firefox is 9

also YOU must manually edit the old ( and dead repo) to point to the "new key" archive and install DIFFERENT hash keys that was on the install cd .

then run the one and ONLY one update you will ever get ( to bring the install os from the 5 cd's up to the date of END OF LIFE updates.
that will be about 2+ gig of updates - a whole new os installed ( replacing almost ALL of the 5 install cd's )


as to the script
did you ever make 100% sure that you installed ns2 correctly
you never posted on the other thread what you did to fix it ?
http://www.linuxquestions.org/questi...ra-9-a-925095/
ns-allinone IS in the old historical archive for fedora 9 BUT there was a key change so you need to point yum to the manually edited "new-key" repo

from the error about the $PATH not being set i take it you did not do as "DavidMcCann" suggested and make sure that ns2 was in the system path .

Last edited by John VV; 01-24-2012 at 01:12 AM.
 
Old 01-24-2012, 04:45 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Quote:
Please put .....
into your PATH environment ..

IMPORTANT NOTICES:

(1) You MUST put /..
.
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put ...
Non of the above is required. Just a 10 year old text :
Today ns is hard coded to find it's libraries, etc.
This will do : cd ns-allinone-2.34/ns-2.34/ && make install
The make install command will copy the binary ns to /usr/local/bin/ .
Then ns is in a system path and will work from any location.
'nam' can be copied to /usr/local/bin/ in the same way.

Using root is a mistake :
Never log in as root, and never run any user applications as root ! !

Default for ns2 is /home/<name>/ns2/ ( or other folder in /home/<name>/ ).
The idea with ns2 is that all commands can be run as unprivileged user.

..

Last edited by knudfl; 01-24-2012 at 04:47 AM.
 
1 members found this post helpful.
Old 01-24-2012, 06:18 AM   #5
sange
LQ Newbie
 
Registered: Jan 2012
Location: India
Distribution: Fedora 9
Posts: 3

Original Poster
Rep: Reputation: 0
Smile

thank you for your solution...Now ns2 is working fine.


Quote:
Originally Posted by knudfl View Post
Non of the above is required. Just a 10 year old text :
Today ns is hard coded to find it's libraries, etc.
This will do : cd ns-allinone-2.34/ns-2.34/ && make install
The make install command will copy the binary ns to /usr/local/bin/ .
Then ns is in a system path and will work from any location.
'nam' can be copied to /usr/local/bin/ in the same way.

Using root is a mistake :
Never log in as root, and never run any user applications as root ! !

Default for ns2 is /home/<name>/ns2/ ( or other folder in /home/<name>/ ).
The idea with ns2 is that all commands can be run as unprivileged user.

..
 
  


Reply


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
problem with ns2.34 installation in fedora 14 kathu Linux - Newbie 12 01-25-2013 12:34 AM
Fedora 15 says Congratulations for successful installation--but F-15 doesn't open. williamhf Linux - Newbie 6 12-23-2011 11:41 AM
ns2.29.3 installation on fedora 15 , nam installation problem Narges Linux - Networking 5 10-31-2011 11:09 AM
CUDA on Jaunty, Installation successful, but cannot run? beaute Ubuntu 0 06-01-2009 04:42 AM
Successful Fedora Installation SabrE7 Fedora - Installation 1 03-12-2004 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:27 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration