13: 2016-05-20 (金) 10:05:33 iseki |
14: 2018-05-12 (土) 19:23:57 iseki |
| | | |
| *** Install [#g3ac2181] | | *** Install [#g3ac2181] |
- | - --enable-intl を指定する場合は libicu-devel (ユニコード用の国際化コンポーネント) が必要 | + | - --enable-intl を指定する場合は libicu-devel (ユニコード用の国際化コンポーネント) が必要 |
- | | + | - --enable-opcache OPCache 使用 (5.5.x~) |
- | - --enable-opcache OPCache 使用 (5.5.x~) | + | - MariaDBのライブラリに libmysqlclient を使用すると MYSQL_UNIX_ADDR未解決のコンパイルエラが発生する (5.6.36) |
| + | -- DBのライブラリに mysqlnd を使用する |
| + | - OpenSSL-1.1.x を使用している場合は以下の様にしてから,configure を実行. |
| + | cd /usr/local/ssl |
| + | ln -s /usr/local/include . |
| + | ln -s /usr/local/lib64 lib |
| + | **** configure [#la6d7565] |
| # zcat php-5.x.y.tar.gz |tar xfv - | | # zcat php-5.x.y.tar.gz |tar xfv - |
| # cd php-5.x.y | | # cd php-5.x.y |
- | # ./configure --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config \ | + | #./configure --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \ |
- | --with-pdo-mysql=/usr/local/mysql \ | + | --with-apxs2=/usr/local/apache/bin/apxs \ |
- | --with-apxs2=/usr/local/apache/bin/apxs \ | + | --with-openssl=/usr/local/ssl --with-zlib=/usr \ |
- | --enable-sockets --enable-zip --enable-soap --enable-pcntl \ | + | --enable-mbstring --with-iconv --enable-intl \ |
- | --enable-mbstring --with-iconv --enable-intl --enable-opcache \ | + | --enable-zip --enable-soap --enable-pcntl \ |
- | --with-zlib=/usr --with-openssl=/usr/local/ssl --with-curl --with-xmlrpc \ | + | --enable-sockets --with-curl --with-xmlrpc --enable-opcache \ |
- | --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir=/usr | + | --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir=/usr |
| # make | | # make |
| # make test | | # make test |
| # make install | | # make install |
| + | |
| + | **** configure オプションの修正 [#u42ccc8f] |
| + | - DBのライブラリに libmysqlclient を使用する場合は以下のオプションを指定 |
| + | --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql |
| | | |
| *** 設定 [#y94248ee] | | *** 設定 [#y94248ee] |