I have got the mpc library (and others, but this is the example) installed in a custom directory:
user@host /my/software/prefix $ l usr/lib | grep mpc
lrwxrwxrwx 1 user group 15 Mar 5 21:08 libmpc.so -> libmpc.so.3.0.0
lrwxrwxrwx 1 user group 15 Mar 5 21:08 libmpc.so.3 -> libmpc.so.3.0.0
-rwxr-xr-x 1 user group 96K Mar 5 21:08 libmpc.so.3.0.0
According to this question, I can get the location of a library by the compiler flag doing something like:
ld -lmpc --verbose
LD_LIBRARY_PATH=/my/software/prefix/usr/lib ld -lmpc --verbose
However, this tus up empty:
attempt to open /my/software/prefix/usr/x86_64-pc-linux-gnu/lib64/libmpc.so failed
attempt to open /my/software/prefix/usr/x86_64-pc-linux-gnu/lib64/libmpc.a failed
attempt to open /my/software/prefix/usr/lib/binutils/x86_64-pc-linux-gnu/2.2464/libmpc.so failed
attempt to open /my/software/prefix/usr/lib/binutils/x86_64-pc-linux-gnu/2.2464/libmpc.a failed
attempt to open /usr/local/lib64/libmpc.so failed
attempt to open /usr/local/lib64/libmpc.a failed
attempt to open /lib64/libmpc.so failed
attempt to open /lib64/libmpc.a failed
attempt to open /usr/lib64/libmpc.so failed
attempt to open /usr/lib64/libmpc.a failed
And it doesn't even search the path supplied by LD_LIBRARY_PATH.
What is going wrong here?
- - , .
برچسب:
نویسنده: استخدام کار