从openwrt生成的交叉工具链报错,error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz tar zxvf libiconv-1.14.tar.gz cd libiconv-1.14
./configure
make
make install
查看/etc/ld.so.conf
是否包含如下
include ld.so.conf.d/*.conf
/usr/local/lib
如果没有,添加进去。
无论有没有修改/etc/ld.so.conf都执行,ldconfig