CentOS系统缺少库文件解决办法

By francis_hao    May 31,2017

 

程序在编译时出现缺少库文件的提示,如下:

as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

解决的办法其实很简单,就是使用yum查询一下哪个包提供了这个文件,然后在安装这个包就可以了。

yum provides | whatprovides

用以找出哪个包提供了指定的特性或文件

yum的更多用法参考man手册。

 

 


本文由 刘英皓 创作,采用 知识共享 署名-非商业性使用-相同方式共享 3.0 中国大陆 许可协议进行许可。欢迎转载,请注明出处:
转载自:http://www.cnblogs.com/yinghao1991/p/6926149.html

 

 

参考

【1】 CSDN http://blog.csdn.net/agoodcoolman/article/details/51278167

【2】man yum

原文地址:https://www.cnblogs.com/yinghao-liu/p/6926149.html