Re: PHP 5.2.8 fails to find libiconv

From: Date: Tue, 27 Jan 2009 01:42:49 +0000
Subject: Re: PHP 5.2.8 fails to find libiconv
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-287196@lists.php.net to get a copy of this message
Ro Achterberg wrote:
Hi, I'm attempting to install PHP 5.2.8 on CentOS 5.2 x86_64. The glibc iconv doesn't seem to function very well, leading to a bunch of failed tests when running 'make test' (see below). After a bit of Googling I stumbled upon http://nl2.php.net/manual/en/intro.iconv.php which suggests to install libiconv instead of relying on glibc's iconv, when things go wrong. My configure line reads as follows: ./configure --prefix=/chroot/apache2/php --with-apxs2=/chroot/apache2/bin/apxs --disable-cgi --with-zlib --with-gettext --enable-sockets --with-xmlrpc --with-xsl --with-config-file-path=/php/etc --with-mcrypt --enable-mbregex --with-gd --with-mime-magic=/usr/share/mime/magic --enable-mbstring=all --with-openssl --with-mysql=/chroot/mysql --with-curl=/usr/lib64 --enable-zip --with-freetype-dir=/usr/lib64 --with-png-dir --with-jpeg-dir --with-libdir=lib64 --with-gnu-ld --with-iconv=/usr/local/lib which yields the following result: -------- checking for iconv support... yes configure: error: Please reinstall the iconv library. --------
what's in config.log ?
Configure runs fine when I omit the path in the --with-iconv directive, but that will use glibc's iconv, which results in the following failed tests when running make check:
You might have more luck asking on the installs list (http://www.php.net/mailing-lists.php). -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#287196) next »