gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 12:54:36 24 4
gpt4 key购买 nike

我遵循这个指南:https://github.com/phpv8/v8js/blob/master/README.Linux.md

我有一个问题:

If you don't want to overwrite the system copy of v8, replace /usr in the above commands with some other path like /opt/v8 and then add --with-v8js=/opt/v8 to the php-v8js ./configure command below.

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

这是配置文件:http://expirebox.com/download/85d34ccf80cc75afc5fb41b3ae0ceec2.html

最佳答案

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

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

关于php - 在配置文件中使用/opt/v8,而不是/usr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36145873/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com