Environment: CentOS 7.2 + mysql-server-5.5.31-2.el6.i686.rpm
Problems encountered:
[ root@sh158-xen data]#rpm -ivh MySQL-server-5.5.31-2.el6.i686.rpm
error: Failed dependencies:
libaio.so.1 is needed by MySQL-server-5.5.31-2.el6.i686
libaio.so.1(LIBAIO_ 0.1) is needed by MySQL-server-5.5.31-2.el6.i686
libaio.so.1(LIBAIO_ 0.4) is needed by MySQL-server-5.5.31-2.el6.i686
After struggling for a long time, we finally found a solution: (thank you for providing relevant articles)
Add two parameters after the installation package, such as
[ root@VM_ 55_ 2_ centos mysql]# rpm -ivh MySQL-server-5.5.31-2.el6.i686.rpm –nodeps –force
Preparing… ########################################### [ 100%]
1:MySQL-server ########################################### [ 100%]
The significance of adding those two parameters is that during installation,
the dependency relationship between packages is no longer analyzed and the package is installed directly,
there will be no error such as error: failed dependencies
Similar Posts:
- error while loading shared libraries libaio.so.1
- Failed to install MySQL server in centos7 (no package available)
- [Solved] Linux starts MySQL service Error: Error code = exited, status = 127
- CentOS7 Install MYSQL8.0.13 error while loading shared libraries: libaio.so.1
- How to Solve Error: failed dependencies error resolution
- Ubuntu 16.04 troubleshooting MySQL error [How to Solve]
- Server failed during MySQL installation or re installation
- CenterOS7: How to Solve error: No package mysql-server available.
- [How to Solve] ImportError: No module named MySQLdb
- Tomcat10 Error: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener