首页 > 代码库 > yum安装centos系统依赖库

yum安装centos系统依赖库

安装centos系统依赖库,安装软件过程中,经常需要的一些库,可以在编译安装软件前执行如下命令:

首先更新系统(这步可以不执行)

yum -y update

 

预安装 编译器及库文件

yum -y install make cmake gcc g++ gcc-c++ gcc-g77 libtool autoconf automake imake libxml2-devel expat-develyum -y install ncurses ncurses-devel pcre pcre-devel openssl openssl-devel openldap openldap-devel openldap-clients openldap-serversyum -y install glibc glibc-devel glib2 glib2-devel  jemalloc libtiff libtiff-devel libexif libexif-devel fontconfig fontconfig-develyum -y install libjpeg libjpeg-devel libpng libpng-devel giflib giflib-devel freetype freetype-devel libxml2 zlib zlib-devel bzip2 bzip2-devel curl curl-develyum -y install e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel nss_ldap gettext gd  tcl tk glibc.i686 db4 db4-utilsyum -y install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker cpan perl-ExtUtils-Embed

 

差不多,安装一般软件不会再报依赖错误了.