On 08/02/06, Jean Blignaut <[EMAIL PROTECTED]> wrote:
>
>
>
> What would be the best way to compile php with mysql support without
> actually installing mysql?
The short answer is "you can't". This is the nature of the best with a
source-based distribution. A reasonable compromise might be to make
use of the "minimal" USE flag in the case of mysql:
echo "dev-db/mysql minimal" >> /etc/portage/package.use
Then proceed to build dev-lang/php as per usual. That will provide the
critical libmysqlclient library and the client-side tools only I
believe.
If that isn't acceptable then I suppose you could touch the
libmysqlclient.so file (thus rendering it immune from removal by
portage) then remove mysql after the fact. That's most probably the
only element that's required. For example:
# ldd /usr/lib64/apache2/modules/libphp5.so | grep mysql
libmysqlclient.so.14 => /usr/lib/libmysqlclient.so.14
(0x00002f0dd1be9000)
# touch /usr/lib/libmysqlclient.so.14 && emerge -C mysql
Regards,
--Kerin
--
[email protected] mailing list