How to compile hiphop with 32-bit Ubuntu

Source: Internet
Author: User
Hiphop is an open-source facebook project. The purpose is to compile php into more efficient c ++ code and run it on the server to increase the speed. It is said that 10 ~ Increase by 20 times. The Hiphop Project address is https://github.com/facebook/hiphop-php. The official hiphop version is only 64-bit, so all information on the website is based on 64-bit machines. Fortunately, a buddy who cannot afford 64 CPUs is at: https: // github.

Hiphop is an open-source facebook project. The purpose is to compile php into more efficient c ++ code and run it on the server to increase the speed. It is said that 10 ~ Increase by 20 times.

The Hiphop Project address is https://github.com/facebook/hiphop-php. The official hiphop version is only 64-bit, so all information on the website is based on 64-bit machines. Fortunately there is a buddy can not afford 64 CPU in: https://github.com/metagoto/hiphop-php provides a 32-bit version, but this buddy apparently did not take this seriously, put it up after just update the code, how to compile or copy the official. In order to allow more people to run hiphop on 32-bit machines, we will give you a brief introduction to the recently compiled hiphop process.

Local compiling environment: 32-bit Ubuntu10.1.4.

Dependency package:

Cmake 2.6 is the minimum version
G ++/gcc 4.3 is the minimum version
Boost 1.37 is the minimum version
Flex
Bison
Re2c
Libmysql
Libxml2
Libmcrypt
Libicu 4.2 is the minimum version
Openssl
Binutils
Libcap
Gd
Zlib
Tbb Intel's Thread Building Blocks
Oniguruma
Libpcre
Libexpat
Libmemcached

Ubuntu can use the following command to load the above package,

Sudo apt-get install git-core 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 autoconf libtool libcurl4-openssl-dev
Libboost-system-dev libboost-program-options-dev
Libboost-filesystem-dev wget libmemcached-dev

When other packages are missing during compilation, you can also install them using: sudo apt-get install.

In the default path "/home/user" (here the user refers to your linux user directory)

  1. Git clone git:// Github.com/metagto/hiphop-php.git
  2. Cd hiphop-php
  3. Export CMAKE_PREFIX_PATH =/home/user/// User is described above
  4. Export HPHP_HOME = '/bin/pwd'
  5. Export HPHP_LIB = '/bin/pwd'/bin
  6. Git submodule init
  7. Git submodule update

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.