天天看点

解决找不到动态库libpthread.so的问题

在新SUSE开发机上编译时出现下面的错误

/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: note: '[email protected]@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line

/lib64/libpthread.so.0: could not read symbols: Invalid operation

解决办法

vi /etc/ld.so.conf

加入一行即可

/lib64