Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: removed spam
Info

These instructions are only known to work on 64-bit systems.

Physicians Billing Services Medical Billing Services Medical Billing Specialists

Setting up HipHop PHP

  1. Install git and build dependencies:
  2. No Format
    sudo apt-get install cmake g++ libboost-dev flex bison re2c libmysqlclient-dev libxml2-dev \
    libmcrypt-dev libicu-dev openssl binutils-dev libcap-dev libgd2-xpm-dev zlib1g-dev libtbb-dev \
    libonig-dev libpcre3-dev distcc git-core dpkg-dev debhelper autotools-dev autoconf libtool \
    libcurl4-openssl-dev
    
  3. Create a working directory:
    No Format
    mkdir hiphop
    cd hiphop
    export HIPHOP=`pwd`
    
  4. Get the source:
    No Format
    git clone git://github.com/facebook/hiphop-php
    cd hiphop-php
    git submodule init
    git submodule update
    cd ..
    
  5. Get and build the patched libevent:
    No Format
    wget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz
    tar xzf libevent-*-stable.tar.gz
    cd libevent-1.4.13-stable
    cp ../hiphop-php/src/third_party/libevent.fb-changes.diff .
    patch < libevent.fb-changes.diff
    ./configure
    make
    make install prefix=$HIPHOP
    cd ..
    
  6. Get and build libicu 4.2:
    No Format
    wget http://download.icu-project.org/files/icu4c/4.2.1/icu4c-4_2_1-src.tgz
    tar xzf icu4c-*-src.tgz
    cd icu/source
    ./configure
    make
    make install prefix=$HIPHOP
    cd ../../
    
  7. Get and build the patched curl:
    No Format
    wget http://curl.haxx.se/download/curl-7.20.0.tar.gz
    tar xzf curl-*.tar.gz
    cd curl-7.20.0
    cp ../hiphop-php/src/third_party/libcurl.fb-changes.diff .
    patch -p1 < libcurl.fb-changes.diff
    ./configure
    make
    make install prefix=$HIPHOP
    cd ..
    
  8. Build HipHop:
    No Format
    cd hiphop-php
    export CMAKE_PREFIX_PATH=$HIPHOP
    export HPHP_HOME=`pwd`
    export HPHP_LIB=`pwd`/lib
    

...