[[email protected] tools]# tar xvf pcre-8.12.tar.bz2 [[email protected] tools]# cd pcre-8.12 [[email protected] pcre-8.12]# ./configure && make && make install [[email protected] tools]# useradd www [[email protected] tools]# yum install openssl* -y [[email protected] tools]# tar xvf nginx-1.6.0.tar.gz [[email protected] tools]# tar xvf ngx_cache_purge-1.3.tar.gz # debug CFLAGS="$CFLAGS -g" [[email protected] tools]# cd nginx-1.6.0 [[email protected] nginx-1.6.0]# ./configure --user=www --group=www --add-module=/data/tools/ngx_cache_purge-1.3/ --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_flv_module [[email protected] nginx-1.6.0]# make && make install [[email protected] tools]# tar xvf autoconf-2.13.tar.gz [[email protected] tools]# cd autoconf-2.13 [[email protected] autoconf-2.13]# ./configure && make && make install [[email protected] tools]# tar xvf libiconv-1.14.tar.gz [[email protected] tools]# cd libiconv-1.14 [[email protected] libiconv-1.14]# ./configure && make && make install [[email protected] tools]# tar xvf libmcrypt-2.5.8.tar.gz [[email protected] tools]# cd libmcrypt-2.5.8 [[email protected] libmcrypt-2.5.8]# ./configure && make && make install [[email protected] libmcrypt-2.5.8]# /sbin/ldconfig [[email protected] libmcrypt-2.5.8]# cd libltdl/ [[email protected] libltdl]# ./configure --enable-ltdl-install && make && make install [[email protected] tools]# tar xvf mhash-0.9.9.9.tar.gz [[email protected] tools]# cd mhash-0.9.9.9 [[email protected] mhash-0.9.9.9]# ./configure && make && make install [[email protected] tools]# ln -s /usr/local/lib/libmcrypt.la /usr/lib/libmcrypt.la [[email protected] tools]# ln -s /usr/local/lib/libmcrypt.so /usr/lib/libmcrypt.so [[email protected] tools]# ln -s /usr/local/lib/libmcrypt.so.4 /usr/lib/libmcrypt.so.4 [[email protected] tools]# ln -s /usr/local/lib/libmcrypt.so.4.4.8 /usr/lib/libmcrypt.so.4.4.8 [[email protected] tools]# ln -s /usr/local/lib/libmhash.a /usr/lib/libmhash.a [[email protected] tools]# ln -s /usr/local/lib/libmhash.la /usr/lib/libmhash.la [[email protected] tools]# ln -s /usr/local/lib/libmhash.so /usr/lib/libmhash.so [[email protected] tools]# ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2 [[email protected] tools]# ln -s /usr/local/lib/libmhash.so.2.0.1 /usr/lib/libmhash.so.2.0.1 [[email protected] tools]# tar xvf mcrypt-2.6.8.tar.gz [[email protected] tools]# cd mcrypt-2.6.8 [[email protected] mcrypt-2.6.8]# ./configure && make && make install *** Could not run libmcrypt test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding LIBMCRYPT or finding the wrong *** version of LIBMCRYPT. If it is not finding LIBMCRYPT, you‘ll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location Also, make sure you have run ldconfig if that *** is required on your system *** *** If you have an old version installed, it is best to remove it, although *** you may also be able to get things to work by modifying LD_LIBRARY_PATH *** configure: error: *** libmcrypt was not found [[email protected] mcrypt-2.6.8]# export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH [[email protected] mcrypt-2.6.8]# ln -s /usr/local/bin/libmcrypt-config /usr/bin/libmcrypt-config [[email protected] mcrypt-2.6.8]# ./configure && make && make install [[email protected] tools]# wget http://www.ijg.org/files/jpegsrc.v8d.tar.gz [[email protected] tools]# tar xvf jpegsrc.v8d.tar.gz [[email protected] tools]# cd jpeg-8d/ [[email protected] jpeg-8d]# ./configure --prefix=/usr/local/jpeg [[email protected] php-5.5.13]# ./configure --prefix=/usr/local/php --with-iconv --with-gd --with-zlib --with-pcre-dir --with-gettext --enable-fpm --with-jpeg-dir=/usr/local/jpeg/ --with-mysqli=/usr/bin/mysql_config --enable-xml --enable- sockets --enable-ftp --with-curl --with-curlwrappers --with-pear --enable-calendar --enable-mbstring --enable-bcmath --enable-exif --with-freetype-dir --with-libXML-dir --enable-zip --enable-soap --with-XMLrpc --with-zlib-dir --enable- gd-native-ttf --enable-magic-quotes --with-mhash --with-gmp --enable-inline-optimization --with-openssl --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-zend-multibyte --enable-mbregex --enable-wddx --enable-shmop --without- pear --with-mysql --with-pdo-mysql --enable-maintainer-zts [[email protected] php-5.5.13]# make ZEND_EXTRA_LIBS=‘-liconv‘ [[email protected] php-5.5.13]# make install [[email protected] php-5.5.13]# cp php.ini-production /usr/local/php/etc/php.ini [[email protected] php-5.5.13]# cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf 安装过程中出现的错误和解决方法 错误(一) configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/ [[email protected] php-5.5.13]# yum -y install curl-devel 错误(二) If configure fails try --with-vpx-dir=<DIR> configure: error: jpeglib.h not found. 错误(三) If configure fails try --with-vpx-dir=<DIR> configure: error: jpeglib.h not found. [[email protected] php-5.5.13]# yum install libjpeg [[email protected] php-5.5.13]# cp -frp /usr/lib64/libjpeg.* /usr/lib/ [[email protected] php-5.5.13]# cp -frp /usr/lib64/libpng* /usr/lib/ 错误(四) configure: error: Unable to locate gmp.h [[email protected] php-5.5.13]# yum install gmp-devel 错误(五) Configure: error: Unable to locate gmp.h Solutions : [[email protected] php-5.5.13]# yum install gmp-devel
时间: 2024-11-25 18:46:11