Skip to content

Instantly share code, notes, and snippets.

@btopro
Forked from koriym/INSTALLV8JS.md
Last active March 23, 2019 19:03
Show Gist options
  • Save btopro/58a0fe750e9bc4e8b4d7728ccf97b859 to your computer and use it in GitHub Desktop.
Save btopro/58a0fe750e9bc4e8b4d7728ccf97b859 to your computer and use it in GitHub Desktop.
How to install PHP 7.2 and V8Js on Ubuntu sorta...
sudo apt update
sudo apt upgrade -y
sudo apt-get install -y software-properties-common
sudo apt-get install -y dirmngr
sudo add-apt-repository -y ppa:ondrej/php 
sudo add-apt-repository -y ppa:pinepain/libv8-archived
sudo apt update
sudo apt-get install php-pear php7.3 php7.3-curl php7.3-mbstring php7.3-zip php7.3-mysql libv8-dev
pecl channel-update pecl.php.net
sudo apt-get install libicu-dev
sudo pecl install v8js
echo 'extension=v8js.so' >> /etc/php/7.3/cli/conf.d/20-v8js.ini 
php -i | grep v8js

// confirmed with Ubuntu 16 and 17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment