View Full Version : error installing iconv on apache 2.2
jackc
04-23-2007, 04:38 AM
Keep getting
usr/sbin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory.
Any idea what's wrong?
Didn't have problem with it on apache 1.3
Thanks
smtalk
04-23-2007, 04:40 AM
Please post an output of:
ls /usr/local/lib | grep libiconv
jackc
04-23-2007, 12:27 PM
[root@ns1 custombuild]# ls /usr/local/lib | grep libiconv
libiconv.la
libiconv.so
libiconv.so.2
libiconv.so.2.4.0
preloadable_libiconv.so
[root@ns1 custombuild]#
the libiconv.so.2 is there.
smtalk, I was using your custombuild, I tried to install freetype and iconv, freetype works fine, but iconv keep getting that error.
default_php=5
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
dovecot=no
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.11.tar.gz
tar zxvf libiconv-1.11.tar.gz;cd libiconv*
./configure --prefix=/usr/local
make
make install
and I added
--with-iconv=/usr/local/lib \
to ap2/configure.php4 and suphp/configure.php5
smtalk
04-23-2007, 12:32 PM
Try this:
ln -s /usr/lib/libiconv.so.2 /usr/local/lib/libiconv.so.2
jackc
04-23-2007, 02:33 PM
[root@ns1 custombuild]# ln -s /usr/lib/libiconv.so.2 /usr/local/lib/libiconv.so.2
ln: `/usr/local/lib/libiconv.so.2': File exists
jackc
04-23-2007, 05:43 PM
got it working by doing
ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2
smtalk, thanks!
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.