Php 在配置文件中使用/opt/v8,而不是/usr

Php 在配置文件中使用/opt/v8,而不是/usr,php,linux,laravel,v8,configure,Php,Linux,Laravel,V8,Configure,我遵循以下指南: 我有一个问题: 如果不想覆盖v8的系统副本,请在中替换/usr 上面的命令与一些其他路径(如/opt/v8)一起使用,然后添加 --将-v8js=/opt/v8添加到下面的php-v8js./configure命令 我应该把--with-v8js=/opt/v8放在配置文件中的什么位置 下面是配置文件:,然后将--with-v8js=/opt/v8添加到php-v8js./configure命令中 cd /tmp git clone https://github.com/php

我遵循以下指南:

我有一个问题:

如果不想覆盖v8的系统副本,请在中替换/usr 上面的命令与一些其他路径(如/opt/v8)一起使用,然后添加 --将-v8js=/opt/v8添加到下面的php-v8js./configure命令

我应该把--with-v8js=/opt/v8放在配置文件中的什么位置

下面是配置文件:

,然后将--with-v8js=/opt/v8添加到php-v8js./configure命令中

cd /tmp
git clone https://github.com/phpv8/v8js.git
cd v8js
phpize
./configure --with-v8js=/opt/v8 <---this is where you add it
make
make test
sudo make install
cd/tmp
git克隆https://github.com/phpv8/v8js.git
cd v8js
phpize
./configure--with-v8js=/opt/v8