Solved

MySQL 5.1 on Debian Lenny

Posted on 2009-05-15
3
7,173 Views
Last Modified: 2013-12-16
Dear Experts,

I am running a stable version of Debian (Lenny) which has MySQL 5.0 in it's repositories.  I need to install MySQL 5.1 because of some of it's new functionality but I cannot figure out how to install it.

I found an article explaining how to create a .deb file the "debian way", but it does not seem to work for me.

Here is the article

------------ article start --------------

Building a DEB is very easy to do and it's a shame that the members of this forum do not advocate it. If you've never built a DEB before, then try building Backintime. It only takes a minute or two, so it's a great exercise.

In general, building a DEB from Debian-ized source is a simple four-step process.

1. First, you add a "source line" to your /etc/apt/sources.list file and install the build dependencies.
2. Then you download the source (as normal user).
3. Then you run dpkg-buildpackage to build the DEB.
4. Finally, you install the DEB(s) with dpkg -i

To be more specific, add the following line to your /etc/apt/sources.list file:

deb-src http://ftp.us.debian.org/debian/ sid main

Then run install the build dependencies:

apt-get update
apt-get install fakeroot
apt-get build-dep <packagename>

Those are the last commands you should run as root before installing the DEB. All of the build commands should be run as normal user.

Next, create a directory for the build in your normal user's home directory, download the source into that directory and build the DEB:

mkdir /home/XXXX/my_build/
cd /home/XXXX/my_build/
apt-get source <packagename>
cd <packagename>-<version>/
dpkg-buildpackage -rfakeroot -us -uc

That last command may take a minute or an hour or three hours. It all depends on the size of the package and your own hardware.

Once the dpkg-buildpackage command finishes, you'll find the DEB(s) in your /home/XXXX/my_build/ directory and you can install them (as root) with:

cd /home/XXXX/my_build/
dpkg -i <packagename>_<version>_<architecture>.deb

It doesn't get much simpler than that.

Perhaps more importantly, a Debian Developer would follow a very similar procedure to create a backport from a package that's already in Testing or Unstable.

------------ article end ---------------

I know MySQL 5.1 is not available in the stable repository, but it is available in the experimental repository:

http://packages.debian.org/search?suite=experimental&arch=any&searchon=names&keywords=mysql%205.1

How can I modify the article above to create a .deb file from the experimental repository/

Please help
0
Comment
Question by:narmi2
3 Comments
 
LVL 14

Expert Comment

by:cjl7
ID: 24395523
Or you just download it from the mysql website and unpack it...

//jonas
0
 
LVL 1

Author Comment

by:narmi2
ID: 24396429
I do not want to do that because the debian package manager "apt" will not keep a record of it.  I would like to create a .deb file which will be recognised by "apt".
0
 
LVL 16

Accepted Solution

by:
ai_ja_nai earned 500 total points
ID: 24403244
What about downloading a precompiled deb package directly from Debian website?
http://packages.debian.org/pl/experimental/mysql-server-5.1
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 43
PHP Apache application gives "Forbidden" message 5 43
How to install software on a provisioned vagrant image 3 62
nagios remote hosts 9 42
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now