Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grotty MYSQL 4.1/PHP/Libwww HOWTO in wiki
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message

Joined: 23 Jan 2005
Posts: 11

PostPosted: Wed Apr 13, 2005 4:29 am    Post subject: Grotty MYSQL 4.1/PHP/Libwww HOWTO in wiki Reply with quote

I've taken a stab at a HOWTO to get MYSQL 4.1/PHP/Libwww working in Gentoo. Feel free to edit or post some feedback and I'll fix whats broken.

Here is a copy and paste for the lazy:

I'm no linux genius but the embarrassment at running the only major distro out there without MySQL 4.1.x support was getting to be too much. Here's a limited and hopefully soon to be useless guide to how I got Gentoo Mysql 4.1.11, PHP 4.3.10, and Libwww working together.

Started from a clean install of 2005.0.


up2date -uDav world

Grab a copy of Apache2

emerge -av apache2

Add this to your make.conf:


Make this directory:

mkdir /usr/local/portage/

Go to the directory:

cd /usr/local/portage/

Download an ebuild from (#83011):


Unzip the ebuild file, change into the directory and run ebuild on it. Type:

tar zxvf mysql-4.1.11-overlay.tar.gz
cd dev-db/mysql/
ebuild mysql-4.1.11.ebuild digest

Unmask MySQL and DBD-Perl:

nano /etc/portage/package.unmask

Add this:


Add this to package.keywords

nano /etc/portage/package.keywords

Replacing ~amd64 with whatever your arch is (probably ~x86):

=dev-db/mysql-4.1.11 ~amd64
>=dev-perl/DBD-mysql-2.9004 ~amd64

Grab your non-crap version of mysql:

emerge -av mysql

Mysql should emerge nicely. Unfortunately trying to emerge PHP afterwards will choke on libwww which apparently relies on the old mysql auth functions. We need to re-emerge a nicely patched ebuild of libwww-5.4.0-r3.

mkdir /usr/local/portage/net-libs/libwww
wget -O libwww-5.4.0-r3.ebuild

This will put the ebuild in the right directory, now we need the patchs:

cd libwww
wget -O libwww-5.4.0-mysql4.1.diff
cp /usr/portage/net-libs/libwww/files/libwww-* ./

Compile libwww

emerge -av libwww

With any luck libwww should compile now and you are good to grab mod_php. Feel free to edit as necc. Thanks to Simon Detheridge and Francesco Riosa who have taken up the considerable slack on trying to get a working MySQL 4.1 running on Gentoo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum