yum安裝必要工具(能解決比編譯遇到到基本問題):php
yum -y install gcc gcc-c++ make cmake automake autoconf kernel-devel ncurses-devel libxml2-devel openssl-devel curl-devel libjpeg-devel libpng-devel pcre-devel libtool-libs freetype-devel gd zlib-devel file bison patch mlocate flex diffutils readline-devel glibc-devel glib2-devel bzip2-devel gettext-devel libcap-devel libmcrypt-devel openldap openldap-devellibxslt-devel
configure: error: xml2-config not found. Please check your libxml2 installation.mysql
configure: error: Cannot find OpenSSL’s
yum install openssl-develconfigure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/
configure: error: libjpeg.(a|so) not found
configure: error: libpng.(a|so) not found.
yum install libpng-develconfigure: error: libXpm.(a|so) not found.
configure: error: freetype.h not found.
yum install freetype-devel
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
yum install libc-client-devel
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum install libmcrypt-devel
configure: error: Please reinstall libmhash – I cannot find mhash.h
yum install mhash-devel
configure: error: Cannot find MySQL header files under /usr.Note that the MySQL client library is not bundled anymore!
yum install mysql-devel
configure: error: Please reinstall ming distribution. libming.(a|so) not found- temp remove the config for ‘–with-ming=/opt/ming/’configure: error: Cannot find pspell
yum install pspell-devel
configure: error: cannot find mm libraryDownload from http://www.ossp.org/pkg/lib/mm/
wget ftp://ftp.ossp.org/pkg/lib/mm/mm-1.4.2.tar.gz
c++
tar -zxvf mm-1.4.2.tar.gz
sql
./configure
app
make
curl
make installide
configure: error: Cannot find libtidy函數
yum install libtidy-devel
工具
yum install libtidyflex
change path at configure: ‘–with-tidy=/usr’configure: error: not found. Please reinstall the expat distribution.
yum install expat-devel
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
yum install libxslt-devel*Tips: To uninstall, just enter:yum remove {package-name} 今天service層代碼報錯,mcrypt 系列函數沒有定義(項目中接了ID5作身份認證) 因而開始編一個mcrypt擴展 出現以下錯誤:configure: error: mcrypt.h not found. Please reinstall libmcrypt. 處理之: wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz tar -zxvf libmcrypt-2.5.7.tar.gz cd libmcrypt-2.5.7 ./configure make make install