php4.1.1, apache1.3.19, with mysql and imap support
| From: | Ben Cross | Date: | Thu, 31 Jan 2002 14:16:06 +0000 |
| Subject: | php4.1.1, apache1.3.19, with mysql and imap support | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-5861@lists.php.net to get a copy of this message | ||
Here's how I installed php4.1.1 with mysql and imap support for apache
1.3.19. I hope it help you.
I used:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql
--with-imap --with-kerberos --with-imap-ssl
and it worked fine but i got this error during make:
/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/root/tars/php-4.1.1'
make: *** [all-recursive] Error 1
When exporting env vars (export LDFLAGS="-L/usr/kerberos/lib -lkrb5
-lgssapi_krb5 -lpam") i get: checking whether the C compiler (gcc
-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
Obviously, this didn't work, I simply installed krb5-devel and
reinstalled without exporting the env var.
This allowed me to compile successfully, but when I started apache I got
Cannot load /usr/local/apache/libexec/libphp4.so into server: undefined
symbol:pam_end
I checked to make sure the libraries were linked properly:
The cause for this was not having libpam_devel installed. Make sure that
if you clear config.cache and run make clean after configure.
Install krb5-devel
Install libpam -devel
ldconfig
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql
--with-imap --with-kerberos --with-imap-ssl
make clean
make
make install
if you come into any other errors, try installing the devel packages and
recompiling don't forget to remove config.cache before each compile
attempt.