Subject: Installing MySQL 4.0 on Slackware 9.0
Posted By: CFerthorney Post Date: 10/28/2003 7:30:56 AM
I am wondering if anyone can help.  I am currently trying to install MySQL 4.0 on my Slackware 9.0 machine

I downloaded the necessary RPM files, both the Client and the Server versions.  Burned them onto a CD, and Mounted them successfully.  They were then copied to /root for decompressing, etc. (I haven't got KDE working yet, so can't easily download on Linux!!!)

I typed the following command:
        
rpm -i MySQL-server-4.0.16-0.i386.rpm

just to try and get the server running before I worried about clients.
I got the following error
error:    Failed dependencies:
          fileutils is needed by MySQL-server-4.0.16-0
          sh-utils is needed by MySQL-server-4.0.16-0
          /bin/sh is needed by MySQL-server-4.0.16-0
          /usr/bin/pearl is needed by MySQL-server-4.0.16-0

the most worrying of the above is /bin.sh.  I thought that was installed as part of the OS!

On the web, www.mysql.com told me to try downloading the
MySQL-shared-compat-VERSION, which is did, and got an even longer chain of error messages (Shown below)

error: Failed Dependencies:
       ld-linux.so.2 is needed by MySQL-shared-compat-4.0.16-0
       libc.so.6 is needed by MySQL-shared-compat-4.0.16-0
       libc.so.6(GLIBC_2.0) is needed by MySQL-shared-compat-4.0.16-0
       libc.so.6(GLIBC_2.1) is needed by MySQL-shared-compat-4.0.16-0
       libc.so.6(GLIBC_2.1.2) is needed by MySQL-shared-compat-4.0.16-0
       libc.so.6(GLIBC_2.1.3) is needed by MySQL-shared-compat-4.0.16-0
       libc.so.6(GLIBC_2.2) is needed by MySQL-shared-compat-4.0.16-0
       libcrypt.so.1 is needed by MySQL-shared-compat-4.0.16-0
       libm.so.6 is needed by MySQL-shared-compat-4.0.16-0
       libnsl.so.1 is needed by MySQL-shared-compat-4.0.16-0
       libnss_nds.so.2 is needed by MySQL-shared-compat-4.0.16-0
       libnss_files.so.2 is needed by MySQL-shared-compat-4.0.16-0
       libpthread.so.0 is needed by MySQL-shared-compat-4.0.16-0
       libpthread.so.0 (GLIBC_2.0) is needed by MySQL-shared-compat-4.0.16-0
       libpthread.so.0 (GLIBC_2.2) is needed by MySQL-shared-compat-4.0.16-0
       libresolv.so.2 is needed by MySQL-shared-compat-4.0.16-0
       libz.so.1 is needed by MySQL-shared-compat-4.0.16-0
root@Katana:~# _


I am beginning to think that either Linux hasn't installed properly (Although I followed the instructions given by a tutorial in a Networks and Communications module last summer) or I need to download and compile binaries (ARGH, SCARY!!!)

Can anyone shed any light on the situation?

I am a linux newbie (Well ish) and have never installed anything on linux before, other than Linux itself, so it could be I am doing something wrong. (I have used MySQL lots though, and have successfully installed in on many windows machines.  Though that probably doesn't help! )

Thanks in advance

---
David Thorne, Student
UK
Reply By: blizeach Reply Date: 11/15/2003 10:57:29 PM
I am having the exact same problem. Slack9.0 as well.
The problem is that when I installed Slack I told it to install
MySQL. I thought it did so. I looked around and found in the
directory /etc/rc.d/ a file called rc.mysqld.new wich I read.
It said to make this file executable so that it would start the
daemon at system boot. I made it executable. Needless to say it didn't work. So I read a little further. The same files says to build the grant tables by switching to the mysql user with the su command and running
mysql_install_db.

This gives me this error:
/usr/libexec/mysqld: /lib/libpthread.so.0: version `GLIBC_2.3.2' not found (required by /usr/libexec/mysqld)
Installation of grant tables failed!

That is when I figured I'd just try to reinstall for the heck of it and of course now using the rpm --install command with the MySQL rpm I'm getting the same problem Mr. Thorne is getting.

I have posted to multiple news groups and forums. Will someone please help out the Noobs?

David Dalrymple

blizeach over and out!
KCHHH!!!!
Reply By: CFerthorney Reply Date: 11/16/2003 5:36:34 AM
I managed to solve this one yesterday (Or day before)

(As Root)
To install MySQL 4, I downloaded the package from the slackware website, as well as GLIBC (package names: glibc-2.3.2-i486-2.tgz (From slackware current on http://www.slackware.com and mysql-4.0.15a-i486-1.tgz) to /tmp or other suitable directory.  Then using pkgtool I installed both these packages.  Then to initiallise MySQL I typed
su mysql
cd /var/script/mysql
mysql_install_db
mysql_safed
then I changed to tty2 (ctrl-alt-F2) and logged in as root (again)
mysqladmin ping.

To get MySQL running automatically, see your other post http://p2p.wrox.com/topic.asp?TOPIC_ID=6527
HTH

---
David Thorne, Student
UK

Go to topic 6496

Return to index page 1004
Return to index page 1003
Return to index page 1002
Return to index page 1001
Return to index page 1000
Return to index page 999
Return to index page 998
Return to index page 997
Return to index page 996
Return to index page 995