error installing iconv on apache 2.2

jackc

Verified User
Joined
Jan 19, 2007
Messages
346
Keep getting
Code:
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
 
Please post an output of:
Code:
ls /usr/local/lib | grep libiconv
 
Code:
[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.

Code:
default_php=5
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
dovecot=no

Code:
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
Code:
--with-iconv=/usr/local/lib \
to ap2/configure.php4 and suphp/configure.php5
 
Try this:
Code:
ln -s /usr/lib/libiconv.so.2 /usr/local/lib/libiconv.so.2
 
Code:
[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
 
got it working by doing
Code:
ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2

smtalk, thanks!
 
Back
Top