LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-24-2010, 04:22 PM   #1
Emil M
LQ Newbie
 
Registered: Feb 2010
Posts: 25

Rep: Reputation: 0
Compile MySQL for Debian


I'm missing some features only available from MySQL 5.5.6 and therefore neither Debian's archive or dotdeb supports my needs… Is it difficult (link / guide) to compile MySQL myself from my Mac or virtual debian and then distribute it to my servers, will it likely cause more problems and will I be able to compile upgrades later or change back to Debian archive (or dotdeb) when they are releasing a sufficient version?

I've been administrating my servers for 2 years now and have some knowledge how things is working :-)
 
Old 12-24-2010, 08:59 PM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Compiling a cutting edge program for a distribution is somewhat of a roll of the dice. It may work flawlessly and it may run into numerous dependency issues with the compiler, libraries, etc. This is one of the real advantages of a package repository, but as you are finding on the downside you may be missing new features.

What I would suggest is to see if your package maintenance program can download the development dependencies for the program you want and also give you a list of what those are. See if you can build the one supported by your distribution and when you can verify the ability to do that, then move on to trying the newer version.

Sometimes in the ./configure process, you can add a switch for your distribution that will cause it to place files in the default places. This is probably one of the harder parts. Aside from that, installing you own program more than anything amounts to moving the binary to the proper location, such as /usr/bin or /usr/local/bin, along with any libraries, the man pages, etc, and creating an application launcher if one exists.

To maintain backward compatibility in the appropriate bin file, create a symbolic link, eg, mysql, that points to the version of interest. This way, you can revert back to the packaged version if you choose to at a later date.

A quick search isn't showing much by the way of compile how-to docs but do take a look at this one. Be sure to read the re: (reply) linked a the bottom, which will take you to a reply with a link on the MySQL forum. It talks about some of the library dependencies and using ldconfig. It is something to be aware of at least.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile php with zlib on Debian Lenny (Debian 5.0) mike_phi Debian 1 08-24-2010 11:37 AM
[SOLVED] Debian Etch, Wordpress+mysql: setup-mysql script = permission denied oznola Linux - Server 9 04-07-2010 08:08 PM
LXer: MySQL Backup And Recovery With mysql-zrm On Debian Sarge LXer Syndicated Linux News 0 09-28-2006 08:21 AM
compile snort for mysql xeebeeeeeee Mandriva 2 12-19-2005 04:55 PM
MySQL won't compile bige Linux - Software 7 05-11-2003 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration