script file에서 무슨 내용을 가리키는지 모르겠습니다.
글쓴이: parkys1 / 작성시간: 화, 2006/12/12 - 12:00오후
#!/bin/sh
#
# Wow, using $* causes great pain with embedded spaces in arguments.
# The "$@" won't break that into 2 arguments.
#
LD_LIBRARY_PATH=proc exec ./top "$@"
스크립트 파일은 위와 같은 내용입니다. 제가 top utility를 따로 다운 받아서 실행해 보았는데요.. 따로 make하면 위와 같이 top파일은 생깁니다. .헌데 생성된 디렉토리에서 ./top 을 해보니 아래와 같은 에러가 나더라구요...
./top: error while loading shared libraries: libproc-3.2.7.so: cannot open shared object file: No such file or directory
위와 같은 에러가 나는겁니다. 근데 위 스크립트로 실행해보니 실행이 되더라구요..
LD_LIBRARY_PATH=proc exec ./top "$@"
이 부분이 환경변수를 바꾸어주고 실행 해 주는 부분같은데 이해가 잘 되지 않습니다.
고수분들 부탁드립니다..^^
Forums:
/lib/ld-linux.so.2 를
/lib/ld-linux.so.2
를 실행시켜보세요.
LD_LIBRARY_PATH 와 "error while loading shared libraries" 의 상관관계랄까 인과관계랄까에 대한 이해를 돕습니다.
댓글 달기