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
ghettodev
n00b
n00b


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.

http://gentoo-wiki.com/HOWTO_MySQL_4.1.x_ebuild

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.

Type:

Code:
up2date -uDav world


Grab a copy of Apache2

Code:
emerge -av apache2


Add this to your make.conf:

Code:
PORTDIR_OVERLAY=/usr/local/portage


Make this directory:

Code:
mkdir /usr/local/portage/


Go to the directory:

Code:
cd /usr/local/portage/


Download an ebuild from bugs.gentoo.org (#83011):

Code:
wget http://bugs.gentoo.org/attachment.cgi?id=55920&action=view


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

Code:
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:

Code:
nano /etc/portage/package.unmask


Add this:
Code:

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


Add this to package.keywords

Code:
nano /etc/portage/package.keywords


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

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


Grab your non-crap version of mysql:

Code:
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.
Code:

mkdir /usr/local/portage/net-libs/libwww
wget -O libwww-5.4.0-r3.ebuild http://bugs.gentoo.org/attachment.cgi?id=34921&action=view


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

Code:
cd libwww
wget -O libwww-5.4.0-mysql4.1.diff http://bugs.gentoo.org/attachment.cgi?id=34913&action=view
cp /usr/portage/net-libs/libwww/files/libwww-* ./


Compile libwww

Code:
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