在centos中运行出现错误:cannot find -lbz2
2014-10-19 14:14
471 查看
在centos6.5中编译程序时,出现以下错误:
/usr/bin/ld: cannot find -lbz2
collete2: ld returned exit status
到网上查找原因,可能是已安装的包不全。
运行如下:
![](http://img.blog.csdn.net/20141019141716562)
也就是说,已经有bzip2-libs被安装了,但是这只是一部分。
所以解决方法如下:
. sudo yum install bzip2-devel
![](http://img.blog.csdn.net/20141019142050390)
至此,configure works.
/usr/bin/ld: cannot find -lbz2
collete2: ld returned exit status
到网上查找原因,可能是已安装的包不全。
运行如下:
也就是说,已经有bzip2-libs被安装了,但是这只是一部分。
所以解决方法如下:
. sudo yum install bzip2-devel
至此,configure works.
相关文章推荐
- Cocos2dx 模拟器运行出现错误:cannot find GLES2.0
- centos7.1 QT5编译出现:cannot find -lGL 和 collect2:error:ld returned 1 exit status 错误
- centos7.1 QT5编译出现:cannot find -lGL 和 collect2:error:ld returned 1 exit status 错误
- 解决centos中安装pdo_dblib时出现的"Cannot find FreeTDS in known installation directories"错误
- VS2010 C++ Debug 出现错误“Cannot find or open the PDB file”(续)
- vs中运行时出现link错误 cannot open file******
- 运行phpize时出现:Cannot find autoconf. Please check your autoconf installation
- 解决 运行java程序时 出现 cannot find main class
- 电脑每2分钟左右出现一次cannot find flash.ocx 错误!
- 出现错误“skipping incompatible /usr/lib/libdirectfb.so cannot find -ldirectfb”
- Fedora 安装php出现错误 Cannot find libmysqlclient under /usr
- cocos2d-x3.0rc移植Android,程序异常退出,运行错误cannot find native library cocos2dcpp
- maven在eclipse建立工程,运行出现Server IPC version 9 cannot communicate with client version 4错误
- SampleBrowse运行后出现Cannot create setting file in root .......错误
- myeclipse6.5运行tomcat6.0时出现“cannot connect to VM”的错误
- "./configure --with-apxs="命令出现错误Cannot find webserver等
- VS2010 C++ Debug 出现错误“Cannot find or open the PDB file”
- JSF运行时出现javax.servlet.jsp.JspException: Cannot find FacesContext处理方法
- Linux php 出现错误cannot find -lltdl解决
- Google App Engine (Java + String + Velocity)数据访问调试,出现错误 Cannot find class [javax.naming.Context]