是我写错了,但还不行:
[m@localhost bin]$ export PATH=/soft/scrot/binPATH
[m@localhost bin]$ LD_DEBUG=libs ./scrot
3260: find library=libX11.so.6 [0]; searching
3260: search cache=/etc/ld.so.cache
3260: trying file=/usr/lib/libX11.so.6
3260:
3260: find library=libgiblib.so.1 [0]; searching
3260: search cache=/etc/ld.so.cache
3260: search path=/lib/tls/i686/sse2:/lib/tls/i686:/lib/tls/sse2:/lib/tls:/lib/i686/sse2:/lib/i686:/lib/sse2:/lib:/usr/lib/tls/i686/sse2:/usr/lib/tls/i686:/usr/lib/tls/sse2:/usr/lib/tls:/usr/lib/i686/sse2:/usr/lib/i686:/usr/lib/sse2:/usr/lib (system search path)
3260: trying file=/lib/tls/i686/sse2/libgiblib.so.1
3260: trying file=/lib/tls/i686/libgiblib.so.1
3260: trying file=/lib/tls/sse2/libgiblib.so.1
3260: trying file=/lib/tls/libgiblib.so.1
3260: trying file=/lib/i686/sse2/libgiblib.so.1
3260: trying file=/lib/i686/libgiblib.so.1
3260: trying file=/lib/sse2/libgiblib.so.1
3260: trying file=/lib/libgiblib.so.1
3260: trying file=/usr/lib/tls/i686/sse2/libgiblib.so.1
3260: trying file=/usr/lib/tls/i686/libgiblib.so.1
3260: trying file=/usr/lib/tls/sse2/libgiblib.so.1
3260: trying file=/usr/lib/tls/libgiblib.so.1
3260: trying file=/usr/lib/i686/sse2/libgiblib.so.1
3260: trying file=/usr/lib/i686/libgiblib.so.1
3260: trying file=/usr/lib/sse2/libgiblib.so.1
3260: trying file=/usr/lib/libgiblib.so.1
3260:
./scrot: error while loading shared libraries: libgiblib.so.1: cannot open shared object file: No such file or directory
[m@localhost bin]$ echo $PATH
/soft/scrot/bin:/soft/server/jdk1.6.0_12/bin:/soft/server/jdk1.6.0_12/jre/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/soft/server/jdk1.6.0_12/bin:/soft/server/jdk1.6.0_12/jre/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/m/bin
[m@localhost bin]$