本文总结了一些常见的configure错误信息和解决这些错误的经验。
网上有的说法是:–with-named-curses-libs=/usr/lib/libncursesw.so.5
其实是不对的,虽然能解决configure的错误,但是make的时候会提示错误,正确的做法应该是
centos: yum -y install ncurses-devel
debian: apt-get install libncurses5-dev
centos: yum -y install libxml2 libxml2-devel
debian: apt-get install libxml2-dev
centos: yum -y install openssl-devel
centos: yum -y install gd
centos: yum -y install gd-devel
debian: apt-get install libjpeg-dev
apt-get install libpng12-dev
yum -y install flex
centos: yum -y install zlib-devel openssl-devel
debian: apt-get install zlib1g-dev
centos: yum -y install libxpm-dev
debian: apt-get install libxpm-dev
centos: yum install freetype-devel
debian: apt-get install libfreetype6-dev
centos: yum -y install libssl-dev
debian: apt-get install libssl-dev
centos: yum install bzip2 bzip2-devel
debian: apt-get install bzip2-devel
centos: yum install curl curl-devel (For Redhat & Fedora)
install libcurl4-gnutls-dev (For Ubuntu)
centos: yum install gmp-devel
yum install mysql-devel (For Redhat & Fedora)
#apt-get install libmysql+±dev (For Ubuntu)
Solutions :
centos: yum install ncurses ncurses-devel
Solutions :
centos: yum install unixODBC-devel
Solutions :
centos: yum install pspell-devel
Solutions :
yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)
apt-get install libmcrypt-dev
Solutions :
yum install net-snmp net-snmp-devel
yum -y install openldap-devel openldap-servers openldap-clients
centos: yum -y install flex
centos: yum -y install zlib-devel openssl-devel
debian: apt-get install zlib1g-dev
出处:http://blog.sina.com.cn/s/blog_75a07c3b0101kcwb.html