您的位置:首页 > 大数据 > 人工智能

error while loading shared libraries: libaio.so.1的解决办法

2018-06-04 17:03 411 查看

最近玩Oracle数据库的时候,百般折腾才编译过,运行的时候却提示:

“error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory”;

百度一下,有的说“sudo yum install libaio*”,可我运行了却是这样:

“There are no enabled repos.
 Run "yum repolist all" to see the repos you have.

 You can enable repos with yum-config-manager --enable <repo>”

好吧,我也不知道为啥,就是装不上这个库,应该是我的Ubuntu不支持这样安装。

最后不用yum安装了,换这个命令解决了问题:

"sudo apt-get install libaio-dev"

程序运行成功!

阅读更多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐