ubuntu下如何快速安装编译依赖包

来源:互联网 发布:js给innerhtml赋值 编辑:程序博客网 时间:2024/05/02 01:43

在ubuntu中,编译软件之前一般都需要先执行./configure进行配置,这个时候往往会提示你这样的信息:

configure: error: xxx library not found. Please configure without xxx (using --without-xxx) or install xxx

运气好的话,直接在shell中执行apt-get install xxx就会解决问题,但是不奏效的时候居多,怎么办?

1。 在shell中执行apt-get install xxx-dev试试;

2. 不行的话先执行apt-cache search xxx,这个时候往往会有相关的包名输出,找到你认为正确的包名,再执行apt-get install 包名试试;

3. 还不行,够衰阿。嘿嘿,直接在shell中键入xxx执行,看看结果:

The program 'xxx' is currently not installed.  You can install it by typing:
apt-get install xxxyyy

呵呵,问题解决。

4. 暂时没其他的新招的,以后有的话再补。

原创粉丝点击