Installing PHPv8js on Ubuntu

后端 未结 2 424
天涯浪人
天涯浪人 2020-12-16 03:16

I\'m having some trouble installing phpv8js on Ubuntu.

I\'ve made sure I have a recent version of libv8 installed and have the required version of PHP but the instal

相关标签:
2条回答
  • 2020-12-16 04:14

    You can type the following and you should be able to install v8js for php.

        sudo apt-get install libv8-dev libv8-dbg g++ cpp
    

    Then type:

       sudo pecl install v8js-0.1.3
    

    Add to php.ini :

        extension=v8js.so
    

    Cheers, Contributed By: Zak Blog: (http://zaksoftwaredeveloperblog.blogspot.ca)

    0 讨论(0)
  • 2020-12-16 04:22
    sudo apt-get install libv8-dev libv8-dbg g++ cpp
    

    if you are getting error "Package 'libv8-dbg' has no installation candidate".

    Then Try.

    1. sudo apt-get install libv8-dev g++

    2. sudo pecl install v8js-0.1.3

    3. "extension=v8js.so" to to your php.ini

    if you are getting "pecl: command not found" then install

    php-pear package for the pecl

    sudo apt-get install php-pear php5-dev
    

    and try step 2

    0 讨论(0)
提交回复
热议问题