>  기사  >  类库下载  >  PHP 노트 컴파일

PHP 노트 컴파일

高洛峰
高洛峰원래의
2016-10-15 16:13:451246검색

설치 종속성

yum -y install wget
    yum -y install gcc
    yum -y install gcc-c++
    yum -y install pcre-devel
    yum -y install zlib-devel
    yum -y install libxml2
    yum -y install libxml2-devel
    yum -y install libevent
    yum -y install libevent-devel
    yum -y install autoconf
    yum -y install libpng-devel
    yum -y install openssl-devel
    yum -y install curl
    yum -y install curl-devel
    yum -y install expat-devel
    yum -y install perl
    yum -y install perl-ExtUtils-MakeMaker
    yum -y install gettext-devel
    yum -y install zlib-devel
    yum -y install cpio
    yum -y install gettext-devel
    yum -y install bzip2-devel
    yum -y install freetype-devel
    yum -y install gmp-devel
    yum -y install php-mcrypt  libmcrypt  libmcrypt-devel

컴파일 매개변수

./configure --prefix=/opt/php --with-config-file-scan-dir=/opt/php/etc/php.d --disable-debug --with-pic --with-bz2 --with-gettext --with-gmp --enable-mbregex --enable-mbstring --with-openssl --with-zlib --with-layout=GNU --enable-exif --enable-sockets --enable-xml --with-pear --enable-fpm --with-pdo-mysql --with-curl --with-mysql --with-gd --enable-gd-native-ttf --with-mysqli --enable-soap --with-fpm-user=daemon --with-fpm-group=daemon --with-apxs2=/opt/httpd/bin/apxs --with-mcrypt --with-freetype-dir --with-libiconv-dir

참고

1.-접두사, /opt 아래에 있는 것이 좋습니다.
2. /configure 프로세스 중에 오류 메시지에 따라 해당 종속성을 설치합니다.
3.PHP 컴파일 매개변수는 ./configure --help를 통해 볼 수 있습니다. PHP 버전에 따라 약간의 차이가 있을 수 있습니다.


성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

관련 기사

더보기