52ll.org
52ll.org

编译安装 iconv

安装教程

wget https://52ll.org/wp-content/uploads/2020/08/libiconv-1.16.tar.gz
tar -zxvf libiconv-1.16.tar.gz
cd libiconv-1.16
./configure --prefix=/usr/local
make
make install

如果使用时报如下错误

iconv: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

可以这样解决

echo '/usr/local/lib' >> /etc/ld.so.conf
ldconfig

如果编译时报如下错误

-bash: make: command not found

可以这样解决(仅限 debian / ubuntu)

apt -y install gcc automake autoconf libtool make

参考来源

http://www.gnu.org/software/libiconv/#TOCdownloading
https://blog.csdn.net/FX677588/article/details/76100538
https://qiita.com/mist_dev/items/be3e0a1b9fc26ca4ce70

发表回复

textsms
account_circle
email

52ll.org

编译安装 iconv
安装教程 wget https://52ll.org/wp-content/uploads/2020/08/libiconv-1.16.tar.gz tar -zxvf libiconv-1.16.tar.gz cd libiconv-1.16 ./configure --prefix=/usr/local make make…
扫描二维码继续阅读
2020-08-09