LinuxQuestions.org
Review your favorite Linux distribution.
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 04-08-2008, 01:51 PM   #1
czamora
Member
 
Registered: May 2006
Posts: 52

Rep: Reputation: 15
Question How to install an older version not in the repos?


Hi,

I have a web server with CentOS 5 in which MySQL 5 was already installed. I need it to have MySQL 4, but that package doesn't seem to be in the repositories, only the version 5 is listed.
Can anyone tell me how to install MySql 4 in a safely way, and why older versions are not provided in the standard packages?

Thanks a lot for any help.
 
Old 04-08-2008, 02:06 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Sorry, I won't be much help in the installing department... Maybe check the repos for the previous release of CentOS.

As for the "Can anyone tell me ... why older versions are not provided...?", because when they create a new version of a distro, they pick a start point and move forward from there. New versions of software might be the impetus for a new distro version... GNOME 2.2, or KDE 4, or Kernel 2.6.25 might all be starting points of a distro version. They usually don't go backwards, because that's usually where everybody already is. Ubuntu 8.04 won't have KDE 3.2. Fedora 9 won't have Kernel 2.4.20.
 
Old 04-09-2008, 09:22 AM   #3
dguitar
Member
 
Registered: Jun 2005
Location: Portland, ME
Distribution: Slackware 13, CentOS 5.3, FBSD 7.2, OBSD 4.6, Fedora 11
Posts: 122

Rep: Reputation: 17
'Safest' way would be to run CentOS 4 instead of 5, OR update all your code/queries to work with MySQL 5, OR compile MySQL 4 from scratch.
 
Old 04-09-2008, 12:52 PM   #4
czamora
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dguitar View Post
'Safest' way would be to run CentOS 4 instead of 5, OR update all your code/queries to work with MySQL 5, OR compile MySQL 4 from scratch.
- I'm afraid MySql 5 doesn't seem to work fine with PHP4 (and I have too much code to consider migrating to PHP5 now).

- Compiling software from scratch in a Linux environment is one of those things that gives me the shivers...

- Why is it safer to use CentOS 4? Is CentOS 5 not recommendable?

- And how do I install CentOS4 over a CentOS5 server?

All your help is appreciated. Thanks.
 
Old 04-09-2008, 12:55 PM   #5
czamora
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ranger_nemo View Post
Maybe check the repos for the previous release of CentOS.
Mmmm, can that be done? Can I maybe just add a section for CentOS4 repos to the repo definition files in my CentOS5 server? Will the software in the CentOS4 repositories work fine when installed in a CentOS5 server?

Thanks.
 
Old 04-09-2008, 01:47 PM   #6
dguitar
Member
 
Registered: Jun 2005
Location: Portland, ME
Distribution: Slackware 13, CentOS 5.3, FBSD 7.2, OBSD 4.6, Fedora 11
Posts: 122

Rep: Reputation: 17
Quote:
Originally Posted by czamora View Post
- I'm afraid MySql 5 doesn't seem to work fine with PHP4 (and I have too much code to consider migrating to PHP5 now).
You'll have to do it at some point

Quote:
Originally Posted by czamora View Post
- And how do I install CentOS4 over a CentOS5 server?
Can't, you'd have to backup your stuff and reinstall the OS

This maybe your best option(imo). CentOS 4 will not hit End Of Life until 2012, iirc. Since you don't feel comfortable compiling software, it might be best to install it via a package built for the OS version you are using.

You might also try just downloading the RPM from the MySQL site and installing it; the RHEL 4 version might not give you problems. The only thing with that, you will need to pay attention to patches/updates, since you will have to do those manually.
 
Old 04-09-2008, 02:17 PM   #7
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
You can also just go to http://dev.mysql.com/downloads/mysql/4.1.html and install the generic linux rpm's for your processor type.

HTH

Forrest
 
Old 04-09-2008, 02:35 PM   #8
czamora
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dguitar View Post
Since you don't feel comfortable compiling software, it might be best to install it via a package built for the OS version you are using.
Is there a MySql 4 package built for CentOS 5?

Quote:
Originally Posted by dguitar View Post
You might also try just downloading the RPM from the MySQL site and installing it; the RHEL 4 version might not give you problems.
"might not give problems"? There is no certaintty here? What's the difference between RHEL 4 and CentOS 4?

Thanks a lot.
 
Old 04-09-2008, 02:38 PM   #9
czamora
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by forrestt View Post
You can also just go to http://dev.mysql.com/downloads/mysql/4.1.html and install the generic linux rpm's for your processor type.
If I go for this, which one should I use: (statically linked against glibc 2.2.5), or (dynamically linked)?

Thanks a lot.
 
Old 04-13-2008, 05:46 PM   #10
czamora
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Anyone can reply to the last question? please?
Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
install or upgrade newer or older gcc version saistain Linux - Software 1 10-19-2007 10:26 PM
up2date install older version et_user Red Hat 0 05-04-2006 07:36 AM
What if I need to install an older version of selinux ? hq4ever Fedora 3 04-30-2006 11:38 AM
how to install an older version of a package... haora Linux - Newbie 1 05-27-2005 09:48 AM
Install older version of gcc s9902245 Linux - Newbie 1 09-16-2003 03:08 PM


All times are GMT -5. The time now is 10:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration