SuSE에서 수동으로 패스 설정하는 것에 대해서.
프로그램 설치를 하였더니 아래와 같은 메세지가 나왔습니다.
Please put /home/map01ip/NS2/ns-allinone-2.27/bin:/home/map01ip/NS2/ns-allinone-2.27/
tcl8.4.5/unix:/home/map01ip/NS2/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 /home/map01ip/NS2/ns-allinone-2.27/otcl-1.8, /home/map01ip/NS2/
ns-allinone-2.27/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/map01ip/NS2/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 /home/map01ip/NS2/ns-allinone-2.27/
{bin,include,lib}
After these steps, you can now run the ns validation suite with
cd ns-2.27; ./validate
제가 한 방법은 /etc/vi profile 를 이용하여 편집을 하였는데 다른 사이트에서 글을 읽어보니 /
root/.bash_profile 를 수정하라는 곳도 있습니다.
리눅스에서 메뉴얼로 path설정방법에 대해서 아시는 부 있으면 대답해 주세요.
감사합니다.
When bash is invoked as an interactive
When bash is invoked as an interactive login shell, or as a non-inter-
active shell with the --login option, it first reads and executes com-
mands from the file /etc/profile, if that file exists. After reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands from the first one that
exists and is readable. The --noprofile option may be used when the
shell is started to inhibit this behavior.
/etc/profile은 시스템 모든 사용자(bash, sh를 쉘로 사용하는)에게 적용되는 전역 설정파일이고 ~/.bash_profile은 login shell의 경우 읽어들이고 ~/.bashrc는 non-login shell에 의해 읽혀집니다.
좀 더 자세한 내용은 info bash -> Bash Features -> Bash Startup Files 참조 하시면 됩니다.
환경변수를 /etc/profile에 쓰시면 다른 계정들에게도 적용되고 ~/.bash_profile에 써주시면 현재 계정에만 적용됩니다.
--
마잇
댓글 달기