Re: Compiling
| From: | Rasmus Lerdorf | Date: | Fri, 23 Jun 2000 16:57:45 +0000 |
| Subject: | Re: Compiling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2820@lists.php.net to get a copy of this message | ||
> I often see people get to a situation where they are missing a module and
> have to recompile PHP.
Well, doing something like:
./configure --with-mysql=shared
make
does actually work. It creates modules/mysql.so (along with a standalone
PHP binary, but you can ignore that)
This mysql.so can be loaded into PHP using dl() or via the extension
directive in the php.ini file, so you don't actually have to recompile PHP
to add a module. This is true for both the static and the DSO version of
PHP.
> Is there a reason not to compile it all always? I mean, simply compile all
> of the options like
> LDAP, PDF,FTP, GD, ODBC etc... and the rest of the things most of us use or
> maybe will use
> sometime.
The reason being that most of these things require third-party library
support and trying to compile it all will be difficult since we would have
to go hunting all over the file system looking for the needed stuff and
most of it won't be available.
-Rasmus