i need to install MySQL 4.1 under a Centos web server(My centos release is 6.4, x86_64), can anyone please help me with rebuilding so many dependencies? I use rpmrebuild command and gcc, gcc-c++ are already installed. Here is the rpm list which i need.

EDIT I added Freebsd as an alternative, can anyone please suggest a port collection for MySQL 4.1 please?

Thanks in advance

closed as not constructive by ewwhite, Jim B, Ward, mdpc, freiheit May 10 '13 at 18:16

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. If this question can be reworded to fit the rules in the help center, please edit the question.

  • can you please just give an idea instead of downvoting? – ilhnctn May 10 '13 at 8:36
  • This needs more background. Why don't you use the MySQL packages that come with CentOS? – freiheit May 10 '13 at 18:16
  • @freiheit Hi, the company i started uses mysql 4.1 on freebsd, they want to have a bacup cluster to the live system so they asked me to install MySQL 4.1.. I m free i f i use Linux, freebsd, mac or anything, i will try to install on freebsd for the moment – ilhnctn May 11 '13 at 8:25

First off: mysql 4.1 is ancient. Instead of investing time in rebuilding it, invest time in upgrading to 5.0, 5.1 and then 5.5.

Now for the rebuild, this is how I generally do this, as non-root user:

$ sudo yum install yum-utils
$ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
$ sudo yum-builddep mysql
$ rpm -i MySQL-4.1.22-0.src.rpm
$ rpmbuild -ba ~/rpmbuild/SPECS/mysql.spec
  • thanks for your answer, you are right about upgrading but they rejected that sugeestion. Thay say that their code has run too slow on MySQL 5 strangely. I will try to solve this situation for them. – ilhnctn May 10 '13 at 10:24

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