编译libs3的时候遇到:
build/bin/s3: Building executable
/usr/bin/ld: warning: libssl.so.1.0.0, needed by /home/zoltar/anaconda/lib/libcurl.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcrypto.so.1.0.0, needed by /home/zoltar/anaconda/lib/libcurl.so, not found (try using -rpath or -rpath-link)
/home/zoltar/anaconda/lib/libcurl.so: undefined reference to `SSL_connect'
/home/zoltar/anaconda/lib/libcurl.so: undefined reference to `X509_check_issued'
解决办法:
step1:查看libcurl.so都连到哪些库:ldd /home/zoltar/anaconda/lib/libcurl.so
[root@fdg73111 libs3]# ldd /home/zoltar/anaconda/lib/libcurl.so
linux-vdso.so.1 => (0x00007ffff07ff000)
libssl.so.1.0.0 => /home/zoltar/anaconda/lib/./libssl.so.1.0.0 (0x00007f3c5bb8d000)
libcrypto.so.1.0.0 => /home/zoltar/anaconda/lib/.