zoukankan      html  css  js  c++  java
  • Linux编译前提前丰富库资源

    Linux在软件编译的时候,时常提示一些依赖,无谓浪费时间。我们可以事先将常用的依赖包,一起安装一下,防止后续编译过程被打断。

    之前,有个很重要的前提,就是epel源的安装。

    # ls /etc/yum.repo.d/
    

    如果没有epel.repo和epel-test.repo的话,说明epel源还没有扩展到Linux系统,解决方法:

    # yum install -y epel-release
    

     这样,在上面的目录里面,就有相应的epel配置文件了。下面修改配置:

    # vim /etc/yum.repo.d/epel.repo
    [epel] 该模块是默认打开的,如下:
      
    enabled=1
    打开后续的两模块,即[epel-debuginfo]和[epel-source]两个模块,将 enabled=0--> enabled=1,且可以将所有模块的 gpgcheck=1-->gpgcheck=0 # yum clean all //清除yum缓存 # yum makecache //重建yum缓存,这样,以后yum安装的时候,不用再等待载入网络资源列表,本地就有

    下面是要丰富的库文件命令:

    # yum install -y gcc gcc-c++  make zlib zlib-devel pcre pcre-devel  libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5-devel openssl openssl-devel openldap openldap-devel openldap-clients openldap-servers libmcrypt libmcrypt-devel libaio libaio-devel openssl*

      其中的好多包在base.repo里面是没有,只有通过epel源才能获取资源。

  • 相关阅读:
    面向对象的继承关系体现在数据结构上时,如何表示
    codeforces 584C Marina and Vasya
    codeforces 602A Two Bases
    LA 4329 PingPong
    codeforces 584B Kolya and Tanya
    codeforces 584A Olesya and Rodion
    codeforces 583B Robot's Task
    codeforces 583A Asphalting Roads
    codeforces 581C Developing Skills
    codeforces 581A Vasya the Hipster
  • 原文地址:https://www.cnblogs.com/llius/p/5105051.html
Copyright © 2011-2022 走看看