error while loading shared libraries的解方法
./tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
那就表示系不知道xxx.so 放在哪目下。
候就要在/etc/ld.so.conf中加入xxx.so所在的目。
一般而言,有很多so在/usr/local/lib目下,所以在/etc/ld.so.conf中加入/usr/local/lib一行,可以解此。
/etc/ld.so.conf存後,要行「/sbin/ldconfig v」更新一下才生效。