LAMP環境コンパイルインストール問題まとめ

1567 ワード

apache:
質問:
apacheをインストールするときerror:mod_に入りますdeflate has been requested but can not be built due to prerequisite failuresのエラー.
解決:
zlibパッケージがインストールされていません.コマンドの実行:
yum install zlib-devel
PHP:
質問:
コンパイルインストールphpエラーmcrypt.h not found. Please reinstall libmcrypt
yum install libmcrypt libmcrypt-develの後にコンパイルするか、それともエラーを報告しますか.
解決:
PHPをコンパイルする場合、--with-mcrypt=/usr/local/libmcrypt/mcryptパスを追加します.に表示されます.
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/etc  --with-mysql=/usr/local/mysql --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-bz2 --with-openssl --with-mcrypt=/usr/local/libmcrypt/--enable-soap --enable-gd-native-ttf --enable-mbstring --enable-sockets --enable-exif --disable-ipv6
質問:
configure: error: xml2-config not found. Please check your libxml2 installation.

解決:
yum install -y libxml2-devel

: LAMP , 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 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
, 。 。 。