I followed this tutorial to try to install hiphop php in CentOS: http://php.webtutor.pl/en/2011/04/22/howto-install-hiphop-for-php-on-centos-5-x/comment-page-1/#comment-416
Instead git-cloning the main branch I cloned the "vm" branch, which is most recent. In theory, it should work.
The problem is in the last steps, when I bootstrap "boost" for example, I got a lot errors and it takes a lot of time to finish (about 4 hours) with this: …failed updating 6 targets… …skipped 12 targets… …updated 9122 targets…
Seems to be usable, so i continued until the last step:
cd hiphop-php git submodule init git submodule update export HPHP_HOME=`pwd` export HPHP_LIB=`pwd`/bin cmake .
Here is where the problem comes:
– CMAKE_PREFIX_PATH was missing, proceeding anyway – MySQL Include dir: /usr/include library dir: /usr/lib64/mysql – MySQL client libraries: mysqlclient_r – Found libevent: /root/hiphop/local/lib/libevent.so – Found GD: /usr/lib64/libgd.so – Found ICU header files in /root/hiphop/local/include – Found ICU libraries: /root/hiphop/local/lib/libicuuc.so – Can’t find jemalloc – Can’t find minimal tcmalloc – Found Intel TBB – Found mcrypt: /usr/lib64/libmcrypt.so CMake Error at /usr/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE): Could NOT find LibElf (missing: LIBELF_LIBRARIES LIBELF_INCLUDE_DIRS) Call Stack (most recent call first): CMake/FindLibElf.cmake:50 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMake/FindLibDwarf.cmake:12 (find_package) CMake/HPHPFindLibs.cmake:250 (find_package) CMake/HPHPSetup.cmake:46 (include) src/CMakeLists.txt:18 (include) – Configuring incomplete, errors occurred!
I don't understand why "CMAKE_PREFIX_PATH was missing, proceeding anyway" if I already set the variables in the right directory with:
export CC=gcc44 export CMAKE_PREFIX_PATH=`pwd`/local
Maybe I have to clean first before retrying to build again, how can I do that?