{"id":136140,"date":"2019-02-23T09:16:41","date_gmt":"2019-02-23T01:16:41","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=136140"},"modified":"2019-02-18T14:18:11","modified_gmt":"2019-02-18T06:18:11","slug":"php-compilation-install","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/php-compilation-install.html","title":{"rendered":"PHP7\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5\u8be6\u89e3"},"content":{"rendered":"

\u4e0b\u9762\u8fdb\u884c\u7f16\u8bd1\u5b89\u88c5PHP7.0\uff0c\u7f16\u8bd1\u5b89\u88c5\u6700\u5934\u75bc\u7684\u5c31\u662f\u56e0\u4e3a\u67d0\u4e9b\u7c7b\u5e93\u6ca1\u6709\u5b89\u88c5\u800c\u62a5\u9519\uff0c\u6240\u4ee5\u7f16\u8bd1\u524d\u8bf7\u786e\u4fdd\u4ee5\u4e0b\u5305\u5df2\u5b89\u88c5\u3002<\/p>\n

\r\n$ yum groupinstall \"development tools\"\r\n\r\n$ yum install -y gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype \\\r\nfreetype-devel libpng libpng-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel \\\r\nglib2 glib2-devel bzip2 bzip2-devel ncurses curl curl-devel openssl-devel gdbm-devel db4-devel \\\r\nlibXpm-devel libX11-devel gd-devel gmp-devel readline-devel libxslt-devel expat-devel xmlrpc-c xmlrpc-c-devel\r\n<\/pre>\n

\u5148\u53bb\u5b98\u7f51\u4e0b\u8f7dPHP7.0\u5373\u53ef\uff0c\u5b98\u65b9\u5730\u5740\uff1a<\/p>\n

\r\n$ tar xvf php-7.0.10.tar.gz\r\n$ cd php-7.0.10\r\n<\/pre>\n

\u8fdb\u884c\u7f16\u8bd1\u524d\u914d\u7f6e\uff0c\u6211\u6dfb\u52a0\u4e86\u4e00\u4e9b\u5e38\u7528\u7684\u6269\u5c55\u3002<\/p>\n

\r\n$ .\/configure \\\r\n--prefix=\/usr\/local\/php \\\r\n --with-curl \\\r\n --with-freetype-dir \\\r\n --with-gd \\\r\n --with-gettext \\\r\n --with-iconv-dir \\\r\n --with-kerberos \\\r\n --with-libdir=lib64 \\\r\n --with-libxml-dir \\\r\n --with-mysqli \\\r\n --with-openssl \\\r\n --with-pcre-regex \\\r\n --with-pdo-mysql \\\r\n --with-pdo-sqlite \\\r\n --with-pear \\\r\n --with-png-dir \\\r\n --with-xmlrpc \\\r\n --with-xsl \\\r\n --with-zlib \\\r\n --enable-fpm \\\r\n --enable-bcmath \\\r\n --enable-libxml \\\r\n --enable-inline-optimization \\\r\n --enable-gd-native-ttf \\\r\n --enable-mbregex \\\r\n --enable-mbstring \\\r\n --enable-opcache \\\r\n --enable-pcntl \\\r\n --enable-shmop \\\r\n --enable-soap \\\r\n --enable-sockets \\\r\n --enable-sysvsem \\\r\n --enable-xml \\\r\n --enable-zip\r\n<\/pre>\n

\u7136\u540e\u8fdb\u884c\u7f16\u8bd1\u548c\u5b89\u88c5<\/p>\n

\r\n$ make\r\n$ make install\r\n<\/pre>\n

\u5b8c\u7ed3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e0b\u9762\u8fdb\u884c\u7f16\u8bd1\u5b89\u88c5PHP7.0\uff0c\u7f16\u8bd1\u5b89\u88c5\u6700\u5934\u75bc\u7684\u5c31\u662f\u56e0\u4e3a\u67d0\u4e9b\u7c7b\u5e93\u6ca1\u6709\u5b89\u88c5\u800c\u62a5\u9519\uff0c\u6240\u4ee5\u7f16\u8bd1\u524d\u8bf7\u786e\u4fdd\u4ee5\u4e0b\u5305\u5df2\u5b89\u88c5\u3002 […]<\/p>\n","protected":false},"author":1479,"featured_media":10922,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-136140","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/136140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=136140"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/136140\/revisions"}],"predecessor-version":[{"id":136603,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/136140\/revisions\/136603"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/10922"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=136140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=136140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=136140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}