Andrés Gattinoni
2009-04-18 23:00:05 UTC
Hi,
I'm having problems installing PHP 5.2.9 (the latest version, downloaded an
hour ago from php.net) with IMAP enabled.
Here is my basic conf:
$ uname -a
Linux localhost 2.6.9-023stab040.1-entnosplit #1 SMP Mon Jan 15 23:19:03 MSK
2007 i686 athlon i386 GNU/Linux
OS: CentOS release 5.2 (Final)
It's running on a Virtuozzo VPS.
I installed libc-client-devel using yum:
yum install libc-client-devel
Then I run my configure adding --with-imap. It threw an error with a message
like "utf8_mime2text() has new signature, but U8T_CANONICAL is missing.". I
googled a little and found that I had to compile using --with-imap-ssl. So
I compiled with that flag (but withoug --with-imap). What I got was that it
compiled OK, but when I called imap_open from any script, it would say that
the function didn't exist. Then googling some more I *guessed* that I should
add the "--with-imap" as well, so I run the following configure:
./configure --with-apxs2 --with-curl=/usr/lib --with-gd
--enable-gd-native-ttf --with-ttf --with-gettext
--with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-k
erberos --with-openssl --with-mcrypt --with-mhash
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-pdo-mysql=/usr/local/mysql --with-pear --with-png-d
ir=/usr/local/lib --with-zlib --with-zlib-dir=/usr/local/lib --enable-zip
--with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-ftp
--enable-magic-quotes --enable-sockets --
enable-mbstring --with-imap --with-imap-ssl
The configure finished up ok, but when I started compiling I got an error
saying:
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
I don't know if this is a bug or if I'm doing anything wrong (my guess is
that if the configure passed ok, then at least it should be a bug in the
configure). I tried running ldconfig, and starting from the scratch, but I
got the same answer.
Lastly I run make clean && the configure line above && make && make install
and send the output to a file which I'm attaching (gzipped).
I would appreciate any help you can provide.
Thanks in advance.
Regards,
Andrés
I'm having problems installing PHP 5.2.9 (the latest version, downloaded an
hour ago from php.net) with IMAP enabled.
Here is my basic conf:
$ uname -a
Linux localhost 2.6.9-023stab040.1-entnosplit #1 SMP Mon Jan 15 23:19:03 MSK
2007 i686 athlon i386 GNU/Linux
OS: CentOS release 5.2 (Final)
It's running on a Virtuozzo VPS.
I installed libc-client-devel using yum:
yum install libc-client-devel
Then I run my configure adding --with-imap. It threw an error with a message
like "utf8_mime2text() has new signature, but U8T_CANONICAL is missing.". I
googled a little and found that I had to compile using --with-imap-ssl. So
I compiled with that flag (but withoug --with-imap). What I got was that it
compiled OK, but when I called imap_open from any script, it would say that
the function didn't exist. Then googling some more I *guessed* that I should
add the "--with-imap" as well, so I run the following configure:
./configure --with-apxs2 --with-curl=/usr/lib --with-gd
--enable-gd-native-ttf --with-ttf --with-gettext
--with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-k
erberos --with-openssl --with-mcrypt --with-mhash
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-pdo-mysql=/usr/local/mysql --with-pear --with-png-d
ir=/usr/local/lib --with-zlib --with-zlib-dir=/usr/local/lib --enable-zip
--with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-ftp
--enable-magic-quotes --enable-sockets --
enable-mbstring --with-imap --with-imap-ssl
The configure finished up ok, but when I started compiling I got an error
saying:
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
I don't know if this is a bug or if I'm doing anything wrong (my guess is
that if the configure passed ok, then at least it should be a bug in the
configure). I tried running ldconfig, and starting from the scratch, but I
got the same answer.
Lastly I run make clean && the configure line above && make && make install
and send the output to a file which I'm attaching (gzipped).
I would appreciate any help you can provide.
Thanks in advance.
Regards,
Andrés