HHVM for PPC testing - adamliyi/hhvm GitHub Wiki
- System: ubuntu-16.04.2 LTS (Xenial Xerus)
- Follow instructions here: https://github.com/PPC64/hhvm/wiki/Install-on-Ubuntu-system-16.04#build-from-source. Some notes:
- When installing dependent packages, change
php7-mcrypt
tophp7.0-mcrypt
- Also need to install
libpq-dev
- Although we can install
ocaml
packages usingsudo apt-get install ocaml
on ubuntu-16.04, this pre-builtocaml
package will cause hhvm build error. We still need to buildocaml
from source - When building
ocaml
from source, we need to use version4.03
. Otherwise hhvm build will fail.git branch -b 4.03 origin/4.03
- By default hhvm install path will be
/usr/local/bin/
. To use another path:cmake -DCMAKE_INSTALL_PREFIX=<My Install Path>
- When building
hhvm
and there is error,make clean
will not clean up some intermedia files generated byocaml
. Better to use a fresh newhhvm
source tree to rebuild.
- When installing dependent packages, change
- Follow instructions from https://github.com/PPC64/hhvm/wiki/Install-and-run-OSS-Performance
- Some notes:
- Install
php
instead ofphp5
,php-cgi
instead ofphp5-cgi
:
sudo apt-get install nginx php php-cgi mysql-server mysql-client
- When promoted, set MySQL root password (set to 123456 for testing purpose)
- When install composer:
mv composer.phar /usr/local/bin/composer
- Port 80 is used by MySQL by default, use 8888 for nginx (/etc/nginx/sites-enabled/default)
-
/etc/systemd/system/hhvm.service
and/etc/init.d/hhvm
are duplicated. Just needhhvm.service
- Remember to change hhvm binary path in
hhvm.service
/home/openpower/hhvm_adam/install/hhvm-next/bin/hhvm perf.php --<test_case> --hhvm=/home/openpower/hhvm_adam/install/hhvm-next/bin/hhvm
/home/openpower/hhvm_adam/install/hhvm-next/bin/hhvm perf.php --<test_case> --php5=/usr/bin/php-cgi
- Install