LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mysql 5.5.13 installation error (https://www.linuxquestions.org/questions/linux-newbie-8/mysql-5-5-13-installation-error-896178/)

nknithya 08-08-2011 08:03 AM

mysql 5.5.13 installation error
 
Hi All,

I’m new to Linux environment. I have encountered an error while installing 5.5.13.

I have downloaded mysql ‘mysql-5.5.13-linux2.6-i686.tar.gz’ from my windows machine and moved it to Linux (since no net access in Linux machine) and extracted.

I have followed the steps present in ‘INSTALL-BINARY’ file.
When I entered ‘scripts/mysql_install_db --user=mysql’ this command it shows an error saying

Installing MySQL system tables...
./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory


Whether I need to install libaio.so.1 file? If so what the file is? And for what purpose we need to install that file? And why didn’t they mention it in their steps for installation?

Also could anyone please provide me a link to download that file?

Thanks in Advance!!


Nithya Natarajan

weibullguy 08-08-2011 09:17 AM

Quote:

Whether I need to install libaio.so.1 file?
Obviously you do. You might want to get familiar with the ldd command to see if you are missing anything else.

Quote:

If so what the file is?
It's a library for asynchronous I/O. I'm sure you can Google libaio and find the libaio website.

Quote:

And for what purpose we need to install that file?
I don't know the details, maybe someone else does or maybe you could ask over on the MySQL forums.

Quote:

And why didn’t they mention it in their steps for installation?
Again, I didn't write the documentation, so I don't know. Why don't you head over to the MySQL website, see if anyone has submitted this oversight, and, if not, submit it so they can improve their documentation?

Quote:

Also could anyone please provide me a link to download that file?
Try that Google thing and see if you can find the libaio website. I bet they have a link there. Better yet, you should use your distro's package manager to install software. Most, not all, will resolve and install all needed dependencies as well. If you told us what distro you're using, I bet someone could tell you exactly how to install MySQL.

knudfl 08-08-2011 09:44 AM

"mysqld" depends on at least 10 libraries. They all have a purpose.

Which Linux OS are you using ?
As already said, a mysql for your OS should be preferred : Will work.

The packages from "Downloads/MySQL-5.5" are often of very little use :
No extra extensions are available !


All times are GMT -5. The time now is 08:19 AM.