大家好,又见面了,我是你们的朋友全栈君。
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
tar zxvf libiconv-1.13.1.tar.gz && cd libiconv-1.13.1
sudo ./configure --prefix=/usr/local
或者
sudo ./configure --prefix=/usr/local/libiconv
make
sudo make install
sudo ln -s /usr/local/lib/libiconv.so /usr/lib
或者
sudo ln -s /usr/local/libiconv/lib/libiconv.so /usr/lib
报错:
/bin/sh ../build-aux/mkinstalldirs /usr/local/lib ; \
/bin/bash ../libtool --mode=install /usr/bin/install -c -m 644 libcharset.la /usr/local/lib/libcharset.la
libtool: install: /usr/bin/install -c -m 644 .libs/libcharset.so.1.0.0 /usr/local/lib/libcharset.so.1.0.0
/usr/bin/install: cannot create regular file '/usr/local/lib/libcharset.so.1.0.0': Permission denied
Makefile:98: recipe for target 'install' failed
make[2]: *** [install] Error 1
make[2]: Leaving directory '/home/pjw/linux/MTK/libiconv/libiconv-1.13.1/libcharset/lib'
Makefile:49: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/pjw/linux/MTK/libiconv/libiconv-1.13.1/libcharset'
Makefile:52: recipe for target 'install' failed
make: *** [install] Error 2
解决:安装的时候加 sudo
sudo make install
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/203623.html原文链接:https://javaforall.cn