note 18686 deleted from ref.imap by sniper
| From: | sniper@php.net | Date: | Sun, 07 Sep 2003 22:16:49 +0000 |
| Subject: | note 18686 deleted from ref.imap by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55743@lists.php.net to get a copy of this message | ||
Note Submitter: bcross@xcalibr.org
----
Heres 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 didnt 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 dont forget
to remove config.cache before each compile attempt.