Last active
May 6, 2023 07:58
-
-
Save khoerodin/6af0b022b02674f86b46a4c7f753076e to your computer and use it in GitHub Desktop.
Install V8js on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository -y ppa:pinepain/libv8-5.4 | |
sudo apt update | |
sudo apt install -y php-dev php-pear libv8-5.4 | |
cd /tmp | |
git clone https://github.com/phpv8/v8js.git | |
cd v8js | |
phpize | |
./configure --with-v8js=/opt/v8 LDFLAGS="-lstdc++" | |
make | |
make test | |
sudo make install | |
sudo bash -c "sudo echo "extension=v8js.so" > /etc/php/7.1/mods-available/v8js.ini" | |
sudo ln -s /etc/php/7.1/mods-available/v8js.ini /etc/php/7.1/fpm/conf.d/20-v8js.ini | |
sudo ln -s /etc/php/7.1/mods-available/v8js.ini /etc/php/7.1/cli/conf.d/20-v8js.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dont work in php7.2