PDA

View Full Version : [ubuntu] Where is .bashrc file on Ubuntu 9.10



joyboyhardik@yahoo.com
February 17th, 2010, 09:16 PM
I am very new to Linux. I am using Ubuntu 9.10. I was installing network simulator 2. After installation I get the following message.

Please put /home/administrator/Downloads/ns-allinone-2.34/bin:/home/administrator/Downloads/ns-allinone-2.34/tcl8.4.18/unix:/home/administrator/Downloads/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 /home/administrator/Downloads/ns-allinone-2.34/otcl-1.13, /home/administrator/Downloads/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 /home/administrator/Downloads/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.

My friend suggested that it is something to do with .bashrc file. I fund files like .bash.bashrc. can you anyone pleaes guide me

joyboyhardik@yahoo.com
February 18th, 2010, 01:29 AM
bouce

Satoru-san
February 18th, 2010, 02:37 AM
nano ~/.bashrcas user.


export PATH=$PATH:/home/administrator/Downloads/ns-allinone-2.34/bin:/home/administrator/Downloads/ns-allinone-2.34/tcl8.4.18/unix:/home/administrator/Downloads/ns-allinone-2.34/tk8.4.18/unixadd that to that file. copy and paste with ctl + shift + v

it will look similar to this
[view it by doing echo $PATH]


/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.4:/usr/games/bin:/home/administrator/Downloads/ns-allinone-2.34/bin:/home/administrator/Downloads/ns-allinone-2.34/tcl8.4.18/unix:/home/administrator/Downloads/ns-allinone-2.34/tk8.4.18/unix

If you have any questions about what the commands do, ask someone!

if something breaks, or you mess up your path... its an easy fix


source /etc/profile

Please mark this as solved.

:D Welcome to the forums! Enjoy it here! :D
DONT BLINDLY RUN COMMANDS THAT PEOPLE ON THE FORUMS TELL YOU
some times people will post malicious command that will destroy your
install

joyboyhardik@yahoo.com
February 20th, 2010, 12:18 AM
I tried to run a simple NS code i get this

administrator@ubuntu:~/Downloads/ns-allinone-2.34/ns-2.34$ ns ns-simple.tcl
CBR packet size = 1000
CBR interval = 0.0080000000000000002
ns: finish: couldn't execute "nam": permission denied
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"
help

nxw0016
April 2nd, 2010, 10:06 PM
I have the same problem (permission denied). Anybody can help?
When I try to execute the nam command from ../ns-allinone-2.34/nam-1.14 folder, it seems OK. But ns2 can not launch nam.

Thanks a lot!!


I tried to run a simple NS code i get this

administrator@ubuntu:~/Downloads/ns-allinone-2.34/ns-2.34$ ns ns-simple.tcl
CBR packet size = 1000
CBR interval = 0.0080000000000000002
ns: finish: couldn't execute "nam": permission denied
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"
help

ran1063
March 14th, 2012, 09:10 AM
i am trying to install but i am not getting installed what can i do for this


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.

oldos2er
March 14th, 2012, 08:06 PM
ran1063, please start a new thread in Absolute Beginners, and add as many details about your problem as possible.