LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-04-2004, 04:35 PM   #1
Azfer
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
Exclamation Sinking in the mess that is NS2


Hi,
I am new to both the world of linux and NS2 (due to my uni project).
Im having problems installing the program NS2. After ive installed it , it asks to do the following :-

Please put
/usr/src/ns-allinone-2.27/bin:/usr/src/ns-allinone-2.27/tcl8.4.5/unix
:/usr/src/ns-allinone-2.27/tk8.4.5/unix
into your PATH environment; so that you'll be able to
run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /usr/src/ns-allinone-2.27/otcl-1.8,
/usr/src/ns-allinone-2.27/l
ib,
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
/usr/src/ns-allinone-2.27/tcl8.4.5/library into your
TCL_LIBRAR
Y environmental
variable. Otherwise ns/nam will complain during
startup.

(3) [OPTIONAL] To save disk space, you can now delete
directories tcl8.4.5
and tk8.4.5. They are now installed under
/usr/src/ns-allinone-2.27/{bin,inc
lude,lib}

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



Can anyone tell me exactly how to?

For those who know NS2,
Where do i save the script for the program? whats ths path of it?

Also i need a QoS patch for my NS2. Anyone know from where?

Fingers crossed someone will read this !!!!!

Azfer
 
Old 04-05-2004, 05:09 AM   #2
Azfer
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Should be simple, but im a newbie

Hi,
im using linux for the first time in order to do some coding in NS2(Network Simulator). At the end of the instal it asks me to move some files which i dont know how. These are the instructions below, could anyone possibly help?


Please put
/usr/src/ns-allinone-2.27/bin:/usr/src/ns-allinone-2.27/tcl8.4.5/unix
:/usr/src/ns-allinone-2.27/tk8.4.5/unix
into your PATH environment; so that you'll be able to
run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /usr/src/ns-allinone-2.27/otcl-1.8,
/usr/src/ns-allinone-2.27/l
ib,
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
/usr/src/ns-allinone-2.27/tcl8.4.5/library into your
TCL_LIBRAR
Y environmental
variable. Otherwise ns/nam will complain during
startup.

(3) [OPTIONAL] To save disk space, you can now delete
directories tcl8.4.5
and tk8.4.5. They are now installed under
/usr/src/ns-allinone-2.27/{bin,inc
lude,lib}



Also does anyone recommend a good book to learn linux for a newbie?

Thank you
 
Old 04-05-2004, 06:05 AM   #3
ijsman77
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Rep: Reputation: 0
You don't have to move any files, just edit your $PATH variable.
Do a search on that, you'll find the answer.
 
Old 04-05-2004, 06:08 AM   #4
Azfer
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
When i mentioned i was a newbie, i meant im really a NEW bie. How do i edit the path variables? And where do i search?
 
Old 04-05-2004, 08:36 AM   #5
Azfer
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
ways of the path, could someone please answer

Im installing a Network Simulator (NS2) on linux and its asked me to move some files around. Could someoene please make sense of this and tell me what to do, this is for my final year project and i need to start programming.

Please put
/usr/src/ns-allinone-2.27/bin:/usr/src/ns-allinone-2.27/tcl8.4.5/unix
:/usr/src/ns-allinone-2.27/tk8.4.5/unix
into your PATH environment; so that you'll be able to
run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /usr/src/ns-allinone-2.27/otcl-1.8,
/usr/src/ns-allinone-2.27/l
ib,
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
/usr/src/ns-allinone-2.27/tcl8.4.5/library into your
TCL_LIBRAR
Y environmental
variable. Otherwise ns/nam will complain during
startup.

(3) [OPTIONAL] To save disk space, you can now delete
directories tcl8.4.5
and tk8.4.5. They are now installed under
/usr/src/ns-allinone-2.27/{bin,inc
lude,lib}

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



If you know what to do then please tell me as im at my wits end.
Thank you.
 
Old 04-05-2004, 08:50 AM   #6
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Quote:
Please put
/usr/src/ns-allinone-2.27/bin:/usr/src/ns-allinone-2.27/tcl8.4.5/unix
:/usr/src/ns-allinone-2.27/tk8.4.5/unix
into your PATH environment; so that you'll be able to
run itm/tclsh/wish/xgraph.
Code:
export PATH=/usr/src/ns-allinone-2.27/bin:/usr/src/ns-allinone-2.27/tcl8.4.5/unix:/usr/src/ns-allinone-2.27/tk8.4.5/unix
For 1 & 2:
Code:
export LD_LIBRARY_PATH=/usr/src/ns-allinone-2.27/otcl-1.8:/usr/src/ns-allinone-2.27/lib
export TCL_LIBRARY=/usr/src/ns-allinone-2.27/tcl8.4.5/library
 
Old 04-05-2004, 11:03 AM   #7
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
Please do not post the same thread in more than one forum, <or three times in the same forum for that matter>. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php


<merging this mess into one thread>

Last edited by rshaw; 04-05-2004 at 11:06 AM.
 
Old 04-16-2004, 05:06 AM   #8
kalhim
LQ Newbie
 
Registered: Apr 2004
Distribution: red hat 9
Posts: 1

Rep: Reputation: 0
Unhappy if I change the path overwrites the ones from linux :s

Hi fellows;
I'm having exactly the same problem, but when I do export PATH=.....

1. I can see with "set" that effectively they are added, but then I can't edit the code on my programs using "vim" so.. not much good, isn't it?

2. both before and after modifying the paths if I type ./ns prog1.tcl reports the following error:

wrong #args Should be "_o3 self class proc file"
(simulator namtrace-all line 1)
invoked from within "$ns namtrace-all $ nf"

Did you had this same problem,?
 
  


Reply



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
piping both ways? quinton Linux - Newbie 3 09-20-2004 07:10 PM
what are the ways of installation paschim Linux - Newbie 2 06-27-2004 11:45 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM
Cant Install Off CD! Other Ways? Rv5 Red Hat 5 09-04-2003 02:20 PM
Ways to Partition? cclavey Linux - Newbie 2 03-12-2003 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:48 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
Open Source Consulting | Domain Registration