LoginSignup
1
0

More than 3 years have passed since last update.

【コピペ】CentOS8で作るPHP8環境

Last updated at Posted at 2020-06-30

前置き

PHP8.0.0α1がリリースされたのでさっそくJITの威力を体感する(した)

これ試したかったんですが、centos8でやりたかった。

CentOS8で、PHP8のインストール。

で、これをコピペしようとしたら、ちょこちょこライブラリでつまずいた。

あれこれ調べた結果、コピペ手順ができたので、載せておこうと思いました。

OPCache/JIT周りは上の記事読んでどうぞ。

諸準備

dnf update -y

dnf install -y git wget tar sqlite* libxslt* gcc gcc-c++ make autoconf automake bison

re2c

最新をチェック

cd /usr/local/src

wget https://github.com/skvadrik/re2c/releases/download/1.3/re2c-1.3.tar.xz

tar Jxfv re2c-1.3.tar.xz

cd re2c-1.3

./configure

make

make install

re2c -v

PHP8

cd /usr/local/src

git clone https://github.com/php/php-src.git

cd php-src

./buildconf

./configure

make

make install

php -v
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0