Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 28th, 2003, 08:30 AM
Authorized User
 
Join Date: Sep 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Installing MySQL 4.0 on Slackware 9.0

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:
        
Code:
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
Code:
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)
Code:
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
__________________
---
David Thorne, Student
UK
 
Old November 15th, 2003, 11:57 PM
Registered User
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!!!!
 
Old November 16th, 2003, 06:36 AM
Authorized User
 
Join Date: Sep 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Xine bilal589 Linux 1 September 27th, 2006 09:45 AM
Downloading Slackware 9.1 CFerthorney Linux 1 October 22nd, 2004 09:31 AM
I need help installing php apache mysql cardme42 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 5 September 13th, 2004 01:10 PM
problems installing php and mySQL mjmadick Beginning PHP 1 July 26th, 2004 02:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.