View Full Version : Build PHP on CentOS4.4 x64 problems
Sc0uT
02-02-2007, 10:01 AM
Hi,
I'm trying to build PHP 4.4.4 on CentOS 4.4 x64 machine, and it always breaks at MySQL part of the PHP cunfigure.
checking base type of last arg to accept... socklen_t
checking return type of qsort... void
configure: error: Cannot find libmysqlclient library under /usr
My configure.php is:
#!/bin/sh
./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit
I used MySQL rpms from http://files.directadmin.com/services/4.1_64/ (tried both MySQL 5.0.19 and 5.0.22, but both fail).
I tried entering --with-mysql=/usr/lib64 \ instead of --with-mysql=/usr \ in configure.php but then I'm getting an error that mysql header files can't be found.
Any ideas how to get PHP compiled with MySQL support on this machine?
jackc
02-02-2007, 12:40 PM
I think I seen this before, do this can fix it
ln -s /usr/lib64/libmysqlclient.so /usr/lib/libmysqlclient.so
Sc0uT
02-03-2007, 02:57 AM
Thanky you very much!
It finaly went well after linking libmysqlclient..
neorder
02-12-2007, 10:28 AM
help each other :)
cpisuisse
03-23-2007, 04:53 AM
I am trying to add php imap.
Added with imap= to the configure.php
When running ./build php n the kerberos libraries cannot be found in the default location, so without a path (CentOS 4.1 64-bit).
I have /usr/kerberos which contains: bin man sbin share.
Assume i must set a path to a different location ?
#!/bin/sh
./configure \
--with-imap=/usr/local/imap-2000e \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit
cpisuisse
03-26-2007, 04:49 AM
Did a locate kerberos, anyone can tell me where to point the path to ?
/var/cache/yum/base/packages/gnome-kerberos-0.3.3-1.x86_64.rpm
/var/cache/yum/base/headers/gnome-kerberos-0.3.3-1.x86_64.hdr
/usr/include/kerberosIV
/usr/include/kerberosIV/krb_err.h
/usr/include/kerberosIV/krb.h
/usr/include/kerberosIV/mit-copyright.h
/usr/include/kerberosIV/des.h
/usr/include/kerberosIV/kadm_err.h
/usr/kerberos
/usr/kerberos/bin
/usr/kerberos/bin/rlogin
/usr/kerberos/bin/krb5-config
/usr/kerberos/bin/klist
/usr/kerberos/bin/sclient
/usr/kerberos/bin/telnet
/usr/kerberos/bin/rcp
/usr/kerberos/bin/krlogin
/usr/kerberos/bin/uuclient
/usr/kerberos/bin/kvno
/usr/kerberos/bin/gss-client
/usr/kerberos/bin/kdestroy
/usr/kerberos/bin/v5passwd
/usr/kerberos/bin/sim_client
/usr/kerberos/bin/kinit
/usr/kerberos/bin/ftp
/usr/kerberos/bin/v4rcp
/usr/kerberos/bin/krsh
/usr/kerberos/bin/rsh
/usr/kerberos/bin/krb524init
/usr/kerberos/bin/kpasswd
/usr/kerberos/bin/ksu
/usr/kerberos/share
/usr/kerberos/share/gnats
/usr/kerberos/share/gnats/mit
/usr/kerberos/man
/usr/kerberos/man/man8
/usr/kerberos/man/man8/klogind.8.gz
/usr/kerberos/man/man8/ktutil.8.gz
/usr/kerberos/man/man8/k5srvutil.8.gz
/usr/kerberos/man/man8/login.krb5.8.gz
/usr/kerberos/man/man8/telnetd.8.gz
/usr/kerberos/man/man8/kadmin.8.gz
/usr/kerberos/man/man8/kshd.8.gz
/usr/kerberos/man/man8/ftpd.8.gz
/usr/kerberos/man/man8/sserver.8.gz
/usr/kerberos/man/man5
/usr/kerberos/man/man5/krb5.conf.5.gz
/usr/kerberos/man/man5/.k5login.5.gz
/usr/kerberos/man/man1
/usr/kerberos/man/man1/rlogin.1.gz
/usr/kerberos/man/man1/sclient.1.gz
/usr/kerberos/man/man1/kdestroy.1.gz
/usr/kerberos/man/man1/rcp.1.gz
/usr/kerberos/man/man1/kvno.1.gz
/usr/kerberos/man/man1/kinit.1.gz
/usr/kerberos/man/man1/klist.1.gz
/usr/kerberos/man/man1/ftp.1.gz
/usr/kerberos/man/man1/kerberos.1.gz
/usr/kerberos/man/man1/telnet.1.gz
/usr/kerberos/man/man1/tmac.doc.gz
/usr/kerberos/man/man1/kpasswd.1.gz
/usr/kerberos/man/man1/rsh.1.gz
/usr/kerberos/man/man1/krb5-send-pr.1.gz
/usr/kerberos/man/man1/v5passwd.1.gz
/usr/kerberos/man/man1/ksu.1.gz
/usr/kerberos/man/man1/v4rcp.1.gz
/usr/kerberos/sbin
/usr/kerberos/sbin/sserver
/usr/kerberos/sbin/kadmin
/usr/kerberos/sbin/uuserver
/usr/kerberos/sbin/k5srvutil
/usr/kerberos/sbin/kshd
/usr/kerberos/sbin/krb5-send-pr
/usr/kerberos/sbin/ktutil
/usr/kerberos/sbin/telnetd
/usr/kerberos/sbin/ftpd
/usr/kerberos/sbin/gss-server
/usr/kerberos/sbin/login.krb5
/usr/kerberos/sbin/klogind
Thanks, Cees.
FransVanNispen
04-16-2007, 02:25 PM
You need to remove the --with-kerberos line, and add:
--enable-pic \
--with-libdir=lib64
cpisuisse
04-17-2007, 01:20 PM
You need to remove the --with-kerberos line, and add:
--enable-pic \
--with-libdir=lib64
Thanks Frans, did the trick !
Cees.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.