search
LoginSignup
3
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

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

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)

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
What you can do with signing up
3
Help us understand the problem. What are the problem?