4
3

More than 5 years have passed since last update.

iconv: error while loading shared libraries: libiconv.so.2 とかいわれる

Last updated at Posted at 2014-10-06

iconv氏をCentOSに入れる必要があったのでインストール

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

バージョンを確認しようとしたら

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

wow

さがしてたらここの手順で解決しそうだったのでやってみる

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

でました

iconv --version
iconv (GNU libiconv 1.14)
4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3