2016-12-31
yum -y install gcc libxml2-devel libxml2
cd /usr/local/src
wget http://tw1.php.net/distributions/php-7.1.0.tar.gz
tar zxvf php-7.1.0.tar.gz
cd php-7.1.0/
./configure
make
make test
make install
其中
[root@localhost php-7.1.0]# make test
... (略)
=====================================================================
WARNED TEST SUMMARY
---------------------------------------------------------------------
Bug #72663: Create an Unexpected Object and Don't Invoke __wakeup() in Deserialization [ext/standard/tests/strings/bug72663_3.phpt] (warn: XFAIL section but test passes)
=====================================================================
You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it. You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]:
Please enter your email address.
(Your address will be mangled so that it will not go out on any
mailinglist in plain text):
sh: autoconf: command not found
Posting to http://qa.php.net/buildtest-process.php
Thank you for helping to make PHP better.
[root@localhost php-7.1.0]# make
[root@localhost php-7.1.0]# make install
... (略)
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
/usr/local/src/php-7.1.0/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f phar.phar /usr/local/bin/phar
Installing PDO headers: /usr/local/include/php/ext/pdo/
[root@localhost php-7.1.0]#
測試
[root@localhost php-7.1.0]# php -v
PHP 7.1.0 (cli) (built: Dec 31 2016 20:23:54) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
[root@localhost php-7.1.0]#
(完)
沒有留言:
張貼留言