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-mcrypttophp7.0-mcrypt - Also need to install
libpq-dev - Although we can install
ocamlpackages usingsudo apt-get install ocamlon ubuntu-16.04, this pre-builtocamlpackage will cause hhvm build error. We still need to buildocamlfrom source - When building
ocamlfrom 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
hhvmand there is error,make cleanwill not clean up some intermedia files generated byocaml. Better to use a fresh newhhvmsource 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
phpinstead ofphp5,php-cgiinstead 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.serviceand/etc/init.d/hhvmare 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