sheepy.org - sheepy goings on...

  • blog
  • about
  • other
Home › Blogs › cornet's blog

MySQL 5.1 on Debian Etch

cornet — Wed, 2008-06-04 20:28

Here is a quick guide to getting MySQL installed on Debian Etch without pulling
in anything from testing or unstable.

Now there are a number of different ways you could do this but I wanted a debian
package (as I have banned installing anything from source on new servers at work).

After some google action I found that Norbert Tretkowski had submitted packages to experimental
However after checking these out they wanted to pull things in from testing and/or unstable and I didn't want
that (especially considering it wanted to upgrade libc6)

That said it turned out that this package would build fine on Etch by doing the following:

Add the following to /etc/apt/sources.list:

deb http://ftp.uk.debian.org/debian/ experimental main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ experimental main contrib non-free

Then create /etc/apt/preferences with the following in:

Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 900
Package: *
Pin: release o=Debian
Pin-Priority: -1

which basically says "only install stuff from stable".

Next we get the dev tools and the build dependencies:

aptitude install dpkg-dev devscripts
apt-get build-dep mysql-server-5.1
apt-get source mysql-server-5.1

Then build the .debs:

cd mysql-dfsg-5.1-5.1.24rc
debuild

Once that has finished get the run time deps:

aptitude install libdbd-mysql-perl libdbi-perl

And finally install the .debs we created earlier:

cd ..
dpkg -i *.deb

...and there you go, MySQL 5.1 on Debian Etch :)

  • debian
  • linux
  • mysql
  • cornet's blog
  • Add new comment

missing line

koollman (not verified) — Mon, 2009-02-02 17:01

I think you also need "apt-get source mysql-server-5.1" before 'cd xxx' (I just did it, and I had to do it).
But, great tip. server is compiling now.

  • reply

Upgrade problem

Anonymous (not verified) — Sat, 2009-02-14 13:55

How exactly you are proceeding from the stage apt-get build-dep mysql-server-5.1..

Where are the mysql-dfsg-5.1-5.1.24rc folder should be ? Any source to download it from?

I tried you manual and has no clue how to proceed after the dev and script package install and building the deps....what when? it doesn't aware of the mysql rc folder......I assume you are missing something here....
Please update the manual with the workin proceedure....

  • reply

Small correction

Mirion (not verified) — Sat, 2009-04-25 12:02

Hi,
Very useful article, hawever you missed:

apt-get source mysql-server-5.1

between:
apt-get build-dep mysql-server-5.1

and:
cd mysql-dfsg-5.1-5.1.24rc
debuild

Greetings, Mirion

  • reply

Syndicate

Syndicate content

Twitter Updates

    Follow me on Twitter

    Bookmarks

    Bytemark Hosting
    Ubuntu Logo Debian Powered

    • blog
    • about
    • other