Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

It was installed by rpm. But need to install from source to add new features to it.

share|improve this question
add comment

4 Answers

Don't get yourself into the unmaintainable mess that is a package-based server with loads of stuff installed from sources on it. The best approach for preserving your sanity is to get the SRPM for MySQL and build a newer version with your own modifications, then store your resulting SRPM and RPMs so that you can redeploy them elsewhere easily.

share|improve this answer
    
Can you be more specific? –  abcgreen Aug 29 '09 at 15:05
    
Jon just means that when you compile from source, do it in a way that will be supported by your distribution, rather than downloading the tarball from the MySQL site and compiling like that. Look for the SRPM (source RPM) and use that. More information here - wiki.centos.org/HowTos/RebuildSRPM –  Matt Simmons Jan 31 '10 at 3:07
add comment
rpm -qa | grep mysql | xargs exho rpm -e

I used rpm and not yum/urpmi/apt-get/smart since you did not say which RPM based distro are you using.

Now to the real question: what feature of mysql you need and is missing? Something smells funny in your question.

PS: Please remove the echo after the "xargs" in the command after you are you that this is what you want to do.

share|improve this answer
    
I need to add sphinx engine to it. –  abcgreen Aug 29 '09 at 10:57
add comment

I routinely install things from source and never use SRPMs, but I always make very sure never to install in the same places where the RPMs install things. (/usr/local was intended for that; a ./configure script is usually preconfigured to install things there, but if software comes something else, e.g. just a Makefile, be wary and check. Best to create a special user 'local' who owns /usr/local, and do all your installation from source as local instead of as root, that way you'll get permission errors if the installation process tries to write to places you want it to stay away from).

share|improve this answer
add comment

rpm -qa | grep -i mysql

yum remove mysql*

then you can install tar etc.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.