dpecb06062 2017-03-01 17:26
浏览 145

已安装V8j但无法正常工作

Good morning, I tried to install V8js from this link https://github.com/linux-on-ibm-z/docs/wiki/Building-V8-libraries-5.xi

I have add the path in php.ini

extension = /root/v8test/v8/out/s390x.release/lib.target/libv8.so

I have also try with https://github.com/phpv8/v8js/blob/php7/README.Linux.md the first method and the last method

cd /tmp
git clone https://github.com/phpv8/v8js.git
cd v8js
phpize
./configure --with-v8js=/opt/v8
make
make test
sudo make install

And add extension=v8js.so to php.ini

Then I restart apache and in my phpInfo I don't see V8Js. It is the good php.ini because when I change the Default timezone in this file, it works.

I don't see what I am missing I am under linux Mint with php7

Thanks

  • 写回答

1条回答 默认 最新

  • doutiao2540 2017-03-01 18:01
    关注

    The error was that after :

    cd /tmp
    git clone https://github.com/phpv8/v8js.git
    cd v8js
    phpize
    ./configure --with-v8js=/opt/v8
    make
    make test
    sudo make install
    

    I had to copy v8js.so into the folder /usr/lib/php/20151012

    sudo cp /tmp/v8js/modules/v8js.so /usr/lib/php/20151012/
    

    The name of the folder can be find in phpinfo at line extension_dir. error can be view in the file /var/log/apache2/error.log

    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题