Well, I managed to get things sorted with the following 
./configure command

contents of config.nice

#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs2=/usr/local/apache-2.2.0/bin/apxs' \
'--prefix=/usr/local/php-5.1.2' \
'--with-mysql=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686' \
'--with-mysqli=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686/bin/mysql_config'
 \
'--with-mysql-sock=/var/lib/mysql/mysql.sock' \
'--with-mhash' \
'--enable-shared=yes' \
'--enable-all=shared' \
'--with-curl=no' \
'--with-fbsql=no' \
'--with-fdftk=no' \
'--with-hwapi=no' \
'--with-imap=no' \
'--with-informix=no' \
'--with-interbase=no' \
'--with-ldap=no' \
'--with-ming=no' \
'--with-msession=no' \
'--with-mssql=no' \
'--with-oci8=no' \
'--disable-pdo' \
'--with-pgsql=no' \
'--with-libedit=no' \
'--with-readline=no' \
'--disable-reflection' \
'--with-snmp=no' \
'--disable-spl' \
'--with-sybase=no' \
'--with-sybase-ct=no' \
'--with-tidy=no' \
'--with-recode=no' \
'--with-msql=no' \
"$@"

However, this tried to load the reflection module and spl 
module as shared. This made configure give up with an error, 
so I had to disable those two modules, as they cannot be 
loaded dynamically.

What I really want to do is tell configure 'Please compile 
all the default static modules into php, and compile all the 
others that can be loaded as dynamic *.so's

Or another way of looking at it - is there any way to enable 
all the available .so modules for dynamic loading, and still 
get all the static modules compiled into the php core?

I would have thought something like --enable-shared=yes 
--enable-static=yes would have done it - not tested this yet 
though!

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Thu, 2 Mar 2006 [EMAIL PROTECTED] wrote:

> To: php-install@lists.php.net
> From: [EMAIL PROTECTED]
> Subject: [PHP-INSTALL] Enabling all modules as shared
> 
> 
> Hi all.
> 
> Is there a ./configure option that will allow me to enable 
> all php 5.1.2 modules as shared? (apart from those that 
> cannot be loaded as shared mods)
> 
> I would like to enable all the modules that can be used as 
> shared in one go, like in apache. Is this possible please?
> 
> I have tried this, but all I get is mysql.so and mysqli.so 
> as shared modules.
> 
> karsites:/downloads/php-src/php-5.1.2 # ./configure 
> --with-apxs2=/usr/local/apache-2.2.0/bin/apxs 
> --prefix=/usr/local/php-5.1.2 
> --with-mysql=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686 
> --with-mysqli=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686/bin/mysql_config
>  
> --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mhash 
> --with-all=shared
> 
> Or do I have to explicitly state each module I want compiled 
> as shared?
> 
> TIA
> 
> Keith
> 
> In theory, theory and practice are the same;
> In practice they are not. 
> 

Reply via email to