栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

ubuntu16.04,MySql8:error while loading shared libraries: libaio.so.1: cannot open shared object file

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ubuntu16.04,MySql8:error while loading shared libraries: libaio.so.1: cannot open shared object file

问题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).
解决方案
  1. 下载libsndfile1_1.0.28-4_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/libs/libsndfile/libsndfile1_1.0.28-4_amd64.deb
  1. 本地安装libsndfile1_1.0.28-4_amd64.deb
dpkg -i libsndfile1_1.0.28-4_amd64.deb
  1. 本地安装libaio-dev《libaio.so.1》
apt-get install libaio-dev
  1. 重新运行数据初始化命令
/usr/local/mysql/bin/mysqld --user=mysql --basedir=/usr/local/mysql --datadir=/paddle/LTL/MySqlData --initialize
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/962201.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号