It's about editing 'etc/profile'
Hi, I just installed SuSE 9.3 Pro. on Win XP to my Dell Inspiron 1200 using VmWare. After I installed NS2, which is a network simulation program, I typed ' ./install ' at ' /root/ns2/ns-allinone-2.28 ' and the installation was fine. Then I had to edit ' /root/etc/profile' to set up the path for the NS2 program. Below is the edited part.
---------------------------------- # # Make path more comfortable # if test -z "$PROFILEREAD" ; then PATH=/user/local/bin:/user/X11R6/bin:/bin:/root/ns2/ns-allinone-2.28/bin:/root/ns2/ns-allinone-2.28/bin ----------------------------------- However, when I type ' ns ' after the editing, I got this error message : ' bash: ns: command not found ' But, the command got no problem because....If I copy ' ns ', the exacutive file, from :/root/ns2/ns-allinone-2.28/bin to ' /root/bin ' and type ' ns' It works~~! If I erase the ' ns ' from /root/bin , it is not working anymore. Q1. I think there was some mistake during editing the profile but I don;t know what it is. please please help me. |
After changes to profile you must close and restart your shell.
|
ive never seen "/user/"...its always "/usr/" ...and most likely you should be editig /etc/profile and not /root/etc/profile..
|
^_^
many thanks to ganja_guru and jojob~
1. I restareted my shell after I change the profile, but still nothing happens. 2. Yes, ganja_guru..u're right its /etc/profile not /root/etc/profile.. but still nothing happens after I change the /etc/profile |
Normally, using SuSE, you edit /etc/profile.local instead of /etc/profile.
Also, the script is run when logging in. So either you need to start a shell like /bin/bash -l or log-out and log-in. |
I do hope that you are not running as root, this is a really bad idea.
Is ns2 installed in /root. If it is, it will only be accessible to the root user, not regular users. Try installing it to /usr/local. Once you have installed ns2 to /usr/local, try making a symbolic link to the ns2 executable in /usr/bin. Code:
ln -s /usr/local/ns2/ns-allinone-2.28/bin/ns /usr/bin By making symbolic links, you remove the need to edit your $PATH. You might need to make a link in a similar fashion to nam (I think) I hope this helps --Ian |
All times are GMT -5. The time now is 09:52 AM. |