ubuntu16.04,MySql8:error while loading shared libraries: libaio.so.1: cannot open shared object file
报错:/usr/local/mysql/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
·
问题1:运行初始化MySQL时,无法找到(libaio.so.1)
root@PC:~# /usr/local/mysql/bin/mysqld --user=mysql --basedir=/usr/local/mysql --datadir=/paddle/LTL/MySqlData --initialize
报错:error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
root@PC:~# /usr/local/mysql/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
尝试安装: libaio-dev,带出问题2《Depends: libsndfile1 (= 1.0.28-4) but 1.0.25-10ubuntu0.16.04.3 is to be installed》
root@PC:~# apt-get install libaio-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libaio-dev : Depends: libaio1 (= 0.3.110-2) but it is not going to be installed
libsndfile1-dev : Depends: libsndfile1 (= 1.0.28-4) but 1.0.25-10ubuntu0.16.04.3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
尝试安装: libsndfile1-dev,带出同样问题
#《Depends: libsndfile1 (= 1.0.28-4) but 1.0.25-10ubuntu0.16.04.3 is to be installed》
root@PC:~# apt-get install libsndfile1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsndfile1-dev is already the newest version (1.0.28-4).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libsndfile1-dev : Depends: libsndfile1 (= 1.0.28-4) but 1.0.25-10ubuntu0.16.04.3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
解决方案
- 下载libsndfile1_1.0.28-4_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/libs/libsndfile/libsndfile1_1.0.28-4_amd64.deb
- 本地安装libsndfile1_1.0.28-4_amd64.deb
dpkg -i libsndfile1_1.0.28-4_amd64.deb
- 本地安装libaio-dev《libaio.so.1》
apt-get install libaio-dev
- 重新运行数据初始化命令
/usr/local/mysql/bin/mysqld --user=mysql --basedir=/usr/local/mysql --datadir=/paddle/LTL/MySqlData --initialize
更多推荐
所有评论(0)