Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-29-2004, 04:57 PM   #1
LQ Newbie
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
Changing PATHS


Im having problems installing the program NS2. After ive installed it , it asks to do the following :-

Please put
into your PATH environment; so that you'll be able to
run itm/tclsh/wish/xgraph.


(1) You MUST put /usr/src/ns-allinone-2.27/otcl-1.8,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to
your X libraries
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
Y environmental
variable. Otherwise ns/nam will complain during

(3) [OPTIONAL] To save disk space, you can now delete
directories tcl8.4.5
and tk8.4.5. They are now installed under

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

Ive run the followigng command : 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 but it doesnt seem to have worked. Could anyone tell me the correct procedures as in the right coding so i can copy it in terminal (im sorry at the laziness but ive been trying this for the past month and am still getting wrong).
Also for future refrence is there a book or website which explains these types of things?

Please help.
Old 04-29-2004, 05:04 PM   #2
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
There are plenty tutorials on shell scripting and syntax.

but, if you want to extend your users path, add this to your /home/user .bashrc file.

export PATH
Old 04-29-2004, 05:11 PM   #3
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,632

Rep: Reputation: 208Reputation: 208Reputation: 208
export PATH=$PATH:/usr/src/ns-allinone-2.27/bin:/usr/src/ns-allinone-2.27/tcl8.4.5/unix

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/src/ns-allinone-2.27/otcl-1.8,
Old 04-29-2004, 05:38 PM   #4
LQ Newbie
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Autopsy,
What i dont understand (coming from a windows background) what changing paths entail. Is it pointing to a particular area? Is it moving some directories into the scope of the computer? what does it do?
Sorry if its really basic.
Old 04-30-2004, 03:28 PM   #5
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,632

Rep: Reputation: 208Reputation: 208Reputation: 208
When you type a program name you'd like to run without the full path, all directories in PATH are searched to find an executable file with the name you provided. If it's found - it's started.
Old 09-08-2004, 01:59 AM   #6
LQ Newbie
Registered: Sep 2004
Location: Washington DC
Posts: 1

Rep: Reputation: 0
That was really great

You are really doing a good job by writing tips for us. It is really useful when i installed ns2 nd when i was searching to find some help.
Thank you so much.
Kind regards


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
help with apache2 and paths blas Linux - General 3 10-19-2005 12:01 PM
Changing PATHS Murdock1979 Slackware 2 07-27-2005 08:02 PM
different paths iomari Linux - General 1 11-10-2004 06:57 AM
Where are my paths? colly Linux - General 1 06-17-2004 07:15 AM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 10:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:11 AM.

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