Skip to content

Instantly share code, notes, and snippets.

@jniltinho
Last active May 31, 2021 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jniltinho/987ac5ef16b868b5e4e8e982e32bbf3e to your computer and use it in GitHub Desktop.
Save jniltinho/987ac5ef16b868b5e4e8e982e32bbf3e to your computer and use it in GitHub Desktop.
Compile HHVM on Debian 9.1 64Bits
#!/bin/bash
## Compile HHVM on Debian 9.1 64Bits
## https://docs.hhvm.com/hhvm/installation/building-from-source#debian-8-jessie
## Run as root (sudo su)
apt-get update && apt-get upgrade
apt-get install git-core cmake gawk default-libmysqlclient-dev \
libxml2-dev libmcrypt-dev libicu-dev openssl build-essential binutils-dev \
libcap-dev zlib1g-dev libtbb-dev libonig-dev libpcre3-dev \
autoconf libtool libcurl4-openssl-dev wget memcached \
libreadline-dev libncurses5-dev libmemcached-dev libbz2-dev \
libc-client2007e-dev php-mcrypt php-imagick libgoogle-perftools-dev \
libcloog-ppl-dev libelf-dev libdwarf-dev libunwind8-dev subversion \
libtbb2 g++ gcc libjemalloc-dev \
libc6-dev libmpfr4 libgcc1 binutils \
libc6 libc-dev-bin libc-bin libgomp1 \
libstdc++-6-dev libstdc++ \
libarchive13 cmake-data libacl1 libattr1 \
g++ cpp gcc make \
libboost-thread-dev libgd2-xpm-dev \
pkg-config libboost-context1.62-dev \
libboost-program-options-dev libboost-filesystem-dev libboost-regex-dev \
libmagickwand-dev libiberty-dev libevent-dev libxslt-dev libgoogle-glog-dev \
automake libldap2-dev libkrb5-dev libyaml-dev gperf ocaml-native-compilers libpq-dev
mkdir dev
cd dev
git clone git://github.com/facebook/hhvm.git --depth=1
export CMAKE_PREFIX_PATH=`pwd`
cd hhvm
git submodule update --init --recursive
cmake .
make -j$(nproc)
make install
@webplease
Copy link

I have a problem compiling:

/home/dev/hhvm/third-party/webscalesqlclient/src/mysys_ssl/my_aes_openssl.cc: In function ‘int my_aes_encrypt(const unsigned char*, uint32, unsigned char*, const unsigned char*, uint32, my_aes_opmode, const unsigned char*)’:
/home/dev/hhvm/third-party/webscalesqlclient/src/mysys_ssl/my_aes_openssl.cc:121:18: error: aggregate ‘EVP_CIPHER_CTX ctx’ has incomplete type and cannot be defined

Probably the incompatibility with OpenSSL 1.1 on Debian 9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment