PHP7在linux下的安装步骤

WBOY
Release: 2016-06-23 13:26:35
Original
985 people have browsed it

安装mcrypt:

yum install -y php-mcrypt libmcrypt libmcrypt-devel
Copy after login

升级bison:

cd /var/soft/wget http://ftp.gnu.org/gnu/bison/bison-2.6.4.tar.gztar -xvzf bison-2.6.4.tar.gz cd bison-2.6.4./configuremake && make install
Copy after login

升级re2c,解决You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.错误:

cd /var/soft/wget http://sourceforge.net/projects/re2c/files/re2c/0.13.5/re2c-0.13.5.tar.gz/downloadtar zxf re2c-0.13.5.tar.gz && cd re2c-0.13.5./configuremake && make install
Copy after login

编译PHP7:

# 创建目录mkdir -p /var/soft/php7cd /var/soft/php7# 下载源代码git clone http://git.php.net/repository/php-src.gitcd php-src./buildconf# 配置参数./configure
Copy after login
# 编译安装make && sudo make install
Copy after login

查看PHP版本:

/usr/local/php7/bin/php -v
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template