Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-16-2004, 11:38 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 7

Rep: Reputation: 0
Environment variables for ns-allinone under FC2, please help.

First up thanks for your help!

I am relatively new to linux and i have found these forums invaluable.

My problem is i dont know enough about linux to set up the environment variables for ns. i downloaded ns-allinone-2.27 for one of my uni subjects, and although i have been searching these forums i have yet to find a clear answer to my problem.

i downloaded the package, unzipped it - all this is done as root, and in roots home directory. i installed with the good old ./install. It states clearly in the documentation that the environment variables must be set of this program will not work. Here is exactly what it wants.

(1) You MUST put /root/ns-allinone-2.27/otcl-1.8, /root/ns-allinone-2.27/lib,
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 /root/ns-allinone-2.27/tcl8.4.5/library into your TCL_LIBRARY 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 /root/ns-allinone-2.27/{bin,include,lib}

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

For trouble shooting, please first read ns problems page Also search the ns mailing list archive
for related posts.

Although i am new to linux, i am not an idiot (not a complete one anyway ),
i have been toying with the export path command but i feel i am making a mess of it.

So to recap, i downloaded it to the /root directory, i installed it there, how *exactly* should i set the above enviroment variables under FC2??

and yes i know i should not do everything as root, however as a side question, my feeling is installing this program in the /root directory is a bad idea, if i am right, WHY is it a bad idea?

Incidently i have also been to the official site and look at help FAQ's etc, these seem to geared for people who find enviroment varaible setting a trivial affair - well maybe i will after i get some help from here

Many thanks for your help people ! - and if this is in the wrong forum i apologize.


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
environment variables slinky2004 Linux - General 4 11-26-2005 10:59 AM
environment variables in c++ s3b0 Programming 6 08-27-2004 10:19 AM
when to use environment variables? mark_2811 Programming 2 02-23-2004 07:09 PM
environment variables kakridge Linux - Newbie 1 07-14-2003 07:25 PM
environment variables. jISV Linux - General 0 04-05-2002 07:01 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:02 PM.

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
Open Source Consulting | Domain Registration