This script is for Slackware 14.2 only and may be outdated.

SlackBuilds Repository

14.2 > Development > hhvm (4.56.1)

HHVM is an open-source virtual machine designed for executing programs
written in Hack and PHP. HHVM uses a just-in-time (JIT) compilation
approach to achieve superior performance while maintaining the
development flexibility that PHP provides.

Hack is a programming language for HHVM. Hack reconciles the fast
development cycle of a dynamically typed language with the discipline
provided by static typing, while adding many features commonly found
in other modern programming languages.

Please note that HHVM is unsupported on 32-bit OSes and there are no
current plans to ever add support.

In order to start HHVM at boot and stop it properly at shutdown,
make sure rc.hhvm is executable and add the following lines to
your rc.d scripts:

/etc/rc.d/rc.local
==================
# Startup HHVM
if [ -x /etc/rc.d/rc.hhvm ]; then
/etc/rc.d/rc.hhvm start
fi

/etc/rc.d/rc.local_shutdown
===========================
# Stop HHVM
if [ -x /etc/rc.d/rc.hhvm ]; then
/etc/rc.d/rc.hhvm stop
fi

HHVM ships an integrated web server, proxygen, which listens on port
9000 (though you can configure proxygen to make use of a different
port): https://docs.hhvm.com/hhvm/basic-usage/proxygen.

Alternatively to reverse proxy, FastCGI is available, which uses Unix
sockets by default. If your web server isn't Apache make sure it has
write access to the socket file. You can create a new group and add
your web server user to this group or just use the main group of your
web server and start HHVM as following:

hhvm_GROUP=apache /etc/rc.d/rc.hhvm start

See https://docs.hhvm.com/hhvm/advanced-usage/fastCGI.

To start a project you have to configure the type checker as well.
See the official documentation:
https://docs.hhvm.com/hack/getting-started/getting-started

Basically you create an empty .hhconfig file in the root dir of your
project:

touch .hhconfig

and run:

hh_client

Happy Hacking!

This requires: krb5, libmemcached, oniguruma, glog, libsodium, libdwarf, tbb

Maintained by: Eugene Wissner
Keywords: php,hack,hhvm,hiphop,hh,hacklang,facebook
ChangeLog: hhvm

Homepage:
https://hhvm.com/

Source Downloads (64bit):
hhvm-4.56.1.tar.xz (edc4cf258e49b2311418f3cc651e6782)
rust-1.43.0-x86_64-unknown-linux-gnu.tar.gz (c1cb2b3d0c9edb4b61b01ba6b090d01b)
opam-full-2.0.3.tar.gz (d685758ad289672ee43caa4baa20b849)
libzip-1.6.1.tar.gz (43883accb207d977462aed9fed40b30b)
fmt-6.1.2.zip (5ec643b082a34254ad07136e7cbd4220)
cargo-home-1ecc6299db9ec823.tar.xz (990b311a2863c88e372051291a9f7f02)
index-6ef290f5.tar.gz (1f67209970361d31d2b60812af78b540)
hack-switch-6ef290f5.tar.xz (ddff31c5f0baa6b0ebc3b04e67d04306)

Download SlackBuild:
hhvm.tar.gz
hhvm.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Validated for Slackware 14.2

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2024 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds