Translate: 
EnglishFrenchGermanItalianPolishPortugueseRussianSpanish

How to install HipHop for PHP on CentOS 5.x

In one of my previous articles I described the installation process of HipHop for PHP compiler on Fedora system.

I’ve also mentioned that CentOS 5.5 had problems with this compiler.

In this article I’m going to show you how to overcome these difficulties and succesfully install HipHop for PHP on this system.

Where can I find CentOS?

The system is available here (ISO image).

To people that simply want to experiment with HipHop for PHP, I suggest to download VMware Player and a ready CentOS image.

How can I install it?

In the beginning you must attach an additional EPEL repository (the path may differ on your system) and install the missing packets using yum command:

rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
 
yum -y install git cmake pcre-devel libmcrypt-devel mysql-devel gd-devel libxml2-devel libcap-devel binutils-devel flex bison expat-devel patch gcc44 gcc44-c++ gcc gcc-c++ bzip2 bzip2-devel memcached openldap openldap-devel readline-devel libc-client-devel pam-devel wget ncurses-devel

Then create a project directory and put a cloned HipHop for PHP with git repository there:

mkdir hiphop
cd hiphop
git clone git://github.com/facebook/hiphop-php.git

And now you must download and extract additional libraries that weren’t added using yum command. We need their specific versions:

wget "http://downloads.sourceforge.net/project/re2c/re2c/0.13.5/re2c-0.13.5.tar.gz?use_mirror=cdnetworks-us-2"
wget "http://www.threadingbuildingblocks.org/uploads/77/142/2.2/tbb22_20090809oss_src.tgz"
wget http://curl.haxx.se/download/curl-7.20.0.tar.bz2
wget http://www.monkey.org/~provos/libevent-1.4.14-stable.tar.gz
wget http://launchpad.net/libmemcached/1.0/0.48/+download/libmemcached-0.48.tar.gz
wget http://download.icu-project.org/files/icu4c/4.6.1/icu4c-4_6_1-src.tgz
wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.9.2.tar.gz
wget "http://downloads.sourceforge.net/project/boost/boost/1.46.1/boost_1_46_1.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.46.1%2F&use_mirror=ignum"
wget http://php.webtutor.pl/wp-content/uploads/2011/04/libcclient2007-devel.tar.gz
 
tar xvjf curl-7.20.0.tar.bz2
tar xvzf libevent-1.4.14-stable.tar.gz
tar xvzf re2c-0.13.5.tar.gz
tar xvzf tbb22_20090809oss_src.tgz
tar xvzf libmemcached-0.48.tar.gz
tar xvzf icu4c-4_6_1-src.tgz
tar xvzf onig-5.9.2.tar.gz
tar xvzf boost_1_46_1.tar.gz
tar xvzf libcclient2007-devel.tar.gz

After you’ve extracted these libraries, you must update them with patches provided by Facebook and then compile them into the project directory (this way you won’t override CentOS’ system libraries). In order to do this you have to use the GCC 4.4+ compiler (older versions are unsupported):

export CC=gcc44
export CMAKE_PREFIX_PATH=`pwd`/local
 
cd tbb22_20090809oss
gmake
cp -Rp include/tbb/ /usr/include/
cp `pwd`/build/*_release/*.so /usr/lib/
cp `pwd`/build/*_release/*.so.2 /usr/lib/
ldconfig
cd ..
 
cd re2c-0.13.5
./configure --prefix=`pwd`/../local
make install
cd ..
 
cd libevent-1.4.14-stable
cp ../hiphop-php/src/third_party/libevent-1.4.14.fb-changes.diff .
patch < libevent-1.4.14.fb-changes.diff
./configure --prefix=`pwd`/../local
make install
cd ..
 
cd curl-7.20.0
cp ../hiphop-php/src/third_party/libcurl.fb-changes.diff .
patch -p1 < libcurl.fb-changes.diff
./configure --prefix=`pwd`/../local
make install
cd ..
 
cd libmemcached-0.48
./configure --prefix=`pwd`/../local
make install
cd ..
 
cd icu/source
./configure --prefix=`pwd`/../../local
make install
cd ../..
 
cd onig-5.9.2
./configure --prefix=`pwd`/../local
make install
cd ..
 
cd boost_1_46_1
./bootstrap.sh --prefix=../local --libdir=../local/lib
./bjam --layout=system install
export Boost_LIBRARYDIR=../local/include/boost/
cd ..
 
cp -r imap local/include/
cp /usr/lib/libc-client.so.2007 local/lib/libc-client.so

Now it’s time to compile the HipHop for PHP itself.

cd hiphop-php
 
git submodule init
git submodule update
export HPHP_HOME=`pwd`
export HPHP_LIB=`pwd`/bin
cmake .
make

Summary

The installation process on the CentOS system is far more complex than the installation on Fedora. Many libraries had to be compiled manually because they weren’t in EPEL/CentOS repository or were outdated.

You should remember that HipHop for PHP was created to work only on 64-bit systems. Although the support for i386 architecture has to some extent been implemented, it’s still an experimental feature and doesn’t guarantee the stable operation of PHP scripts.


*** Thanks to Piotr Graniszewski for English translation ***

Tags: , , , ,

33 Responses to “How to install HipHop for PHP on CentOS 5.x”

  1. Narendra says:

    Thank you for really nice article.

    I started installing step by step but notice there is no file ‘/usr/lib/libc-client.so.2007′. I manually installed using rpm and found it was under ‘/usr/lib64/libc-client.so.2007′ and copied ‘local/lib/libc-client.so’.

    ‘cmake .’ well completely well but during ‘make’ there was error like:
    [ 88%] Building CXX object src/hphp/CMakeFiles/hphp.dir/main.cpp.o
    Linking CXX executable hphp
    Building hphpi
    Core dumped: Segmentation fault
    hphp failed
    make[2]: *** [src/hphp/hphp] Error 255
    make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Error 2
    make: *** [all] Error 2

    I tried completely the same procedure in 2-3 PCs and all has the same error. Could you please let me know what might the issue?

    Thanks in advance.

  2. Artur Graniszewski says:

    What version of CentOS are you using?

    Do not copy the libc-client.so, try to use symlinks instead because this copy could make a mess in your system after future RPM updates.

    Second thing: have you cloned the latest version of HipHop for PHP?

    If so, try one experiment: ignore the segmentation fault and launch ‘make’ command again directly after encountering this error. This time it should finish succesfully.

    Please let me know, If my advice was useful to you.

    I’ll update my article with your findings about different name of libc-client.so file.

  3. Joshua Geake says:

    I had similar headaches myself installing CentOS 5.6 with PHP 5.3.6 and then phpMyAdmin properly etc nevermind putting Magento on top too! So I wrote a post about it here – http://www.geakeit.co.uk/2011/06/09/installing-magento-1-5-1-on-centos-5-6-x64/. Hopefully someone can find this useful!

  4. angrywombat says:

    A little late to the party but i was having a similar issue with make failing as such:

    make[2]: *** [src/hphp/hphp] Error 255
    make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Error 2
    make: *** [all] Error 2

    I found that rerunning make with sudo fixed the issue. I have no idea why.

    I am on Ubuntu 10.04, though.

  5. I had real headaches installing Magento 1.5.1 on CentOS 5.6, not just because of upgrading PHP 5.1 to PHP 5.3.6 but also getting phpMyAdmin on it. Anyway, I wrote a full post on it with step by step detailed commands – http://www.geakeit.co.uk/2011/06/09/installing-magento-1-5-1-on-centos-5-6-x64/

  6. Jason Young says:

    @angrywombat
    Thanks for the advice on how to fix Error 255 when following the Ubuntu setup. That worked perfectly to get hphp compiled.

  7. Jordan says:

    patch -p0 < libcurl.fb-changes.diff

    is supposed to be

    patch -p1 < libcurl.fb-changes.diff

    or

    can't find file to patch at input line 8

  8. Artur Graniszewski says:

    Thanks, you’re right, it should be -p1. I’ll correct this typo in my article.

  9. jordan says:

    when you compile boost and execute

    ./bjam –layout=system install

    if you got a lot error when compiling boost.python. e.g.

    ./boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory

    Then you need

    yum install python-devel.x86_64

    you may need install a different python-devel depends on you python version and centos 32/64 bit.

  10. jordan says:

    when compile hiphop-php and executing

    cmake .

    got error

    CMake Error at CMake/FindBoost.cmake:640 (if):
    if had incorrect arguments: ${Boost_MINOR_VERSION} GREATER 41 AND NOT WIN32 AND NOT APPLE
    (Unknown arguments specified).

    It can’t find the boost. I removed the following command

    export Boost_LIBRARYDIR=../local/include/boost/

    then execute the following in folder hiphop/hiphop-php

    export CMAKE_INCLUDE_PATH=`pwd`/../local/include
    export CMAKE_LIBRARY_PATH=`pwd`/../local/lib

    then execute correctly

    cmake .

  11. Artur Graniszewski says:

    Hi Jordan,

    this could be the problem with one of the latest versions of HipHop for PHP. Facebook developers are changing it’s codebase almost everyday. So you may want to report this issue on github.

  12. edikat says:

    hiphop-php/src/system/gen/sys/dynamic_table_class.cpp

    64-bit (int64)

    fails to make on a 32-bit system!

  13. Artur Graniszewski says:

    @edikat:

    I need to know the complete error message and a command you used to compile HipHop for PHP.

  14. edikat says:

    Errors started at line 10660 when starting to build dynamic_table_class.cpp …..

    and continued until …….

    /root/hiphop/hiphop-php/src/system/gen/sys/dynamic_table_class.cpp:11125: error: integer constant is too large for âlongâ type
    /root/hiphop/hiphop-php/src/system/gen/sys/dynamic_table_class.cpp:11127: error: integer constant is too large for âlongâ type
    /root/hiphop/hiphop-php/src/system/gen/sys/dynamic_table_class.cpp:11129: error: integer constant is too large for âlongâ type
    /root/hiphop/hiphop-php/src/system/gen/sys/dynamic_table_class.cpp:11131: error: integer constant is too large for âlongâ type
    /root/hiphop/hiphop-php/src/runtime/base/util/thrift_buffer.h:63: warning: âclass HPHP::ThriftBufferâ has virtual functions but non-virtual destructor
    /root/hiphop/hiphop-php/src/runtime/eval/debugger/debugger_thrift_buffer.h:31: warning: âclass HPHP::DebuggerThriftBufferâ has virtual functions but non-virtual destructor
    /root/hiphop/hiphop-php/src/runtime/ext/ext_imagesprite_include.h:75: warning: âclass HPHP::ImageSprite::Imageâ has virtual functions but non-virtual destructor
    /root/hiphop/hiphop-php/src/runtime/ext/ext_imagesprite_include.h:137: warning: âclass HPHP::ImageSprite::ImageFromFileâ has virtual functions but non-virtual destructor
    /root/hiphop/hiphop-php/src/runtime/ext/ext_imagesprite_include.h:147: warning: âclass HPHP::ImageSprite::ImageFromStringâ has virtual functions but non-virtual destructor
    /root/hiphop/hiphop-php/src/runtime/ext/ext_imagesprite_include.h:160: warning: âclass HPHP::ImageSprite::ImageFromHTTPâ has virtual functions but non-virtual destructor
    /root/hiphop/local/include/boost/system/error_code.hpp:214: warning: âboost::system::posix_categoryâ defined but not used
    /root/hiphop/local/include/boost/system/error_code.hpp:215: warning: âboost::system::errno_ecatâ defined but not used
    /root/hiphop/local/include/boost/system/error_code.hpp:216: warning: âboost::system::native_ecatâ defined but not used
    make[2]: *** [src/CMakeFiles/hphp_runtime_static.dir/system/gen/sys/dynamic_table_class.cpp.o] Error 1
    make[1]: *** [src/CMakeFiles/hphp_runtime_static.dir/all] Error 2
    make: *** [all] Error 2

    Started complaining when encountering the int64 statements in dynamic_table_class.cpp at line 10660 ….

    I used the scripts you supplied above – 100% with no deviation.

    Any help GREATLY appreciated.
    CentOS 5.6 32-IA32 bit system.

    Ed

  15. Artur Graniszewski says:

    @Edicat:

    first of all, HipHop for PHP was designed with x86-64 operating systems in mind and until a year or so, was completely incompatible with 32bit versions of Linux. Since then, many had changed, 32bit support is still experimental and sometimes works, sometimes it doesn’t. What version of HipHop are you using? Trunk or a specific branch?

    In some cases, it may be necessary to download older (more compatible) version of HipHop for PHP (you can see which branch I used to compile Drupal 7 on a 32-bit platform)

  16. Jon says:

    Hi,

    I tried to install using these instructions on centos. There seems to be an issue with libc-client and the version that is installed via Yum. Ultimately the 2007 version is required to build hiphop and that gets installed by yum as /usr/lib64/libc-client.so.2007.

    However, when building, I ultimately get this issue – seems that the header file and libraries do not match. I don’t fully understand what libc-client is and its relation to imap. Perhaps that bears some explanation.

    Here is the build error for hiphop:

    [ 88%] Built target hphp_analysis
    Linking CXX executable hphp
    ../../bin/libhphp_runtime.a(ext_imap.cpp.o): In function `HPHP::imapExtension::moduleInit()’:
    ext_imap.cpp:(.text._ZN4HPHP13imapExtension10moduleInitEv[HPHP::imapExtension::moduleInit()]+0×96): undefined reference to `auth_gss’
    collect2: ld returned 1 exit status
    make[2]: *** [src/hphp/hphp] Error 1
    make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Error 2
    make: *** [all] Error 2
    [root@sclab-ae-1 hiphop-php]#

  17. underzero says:

    I found that the proper way was to install the libc-client using this

    yum install libc-client2007

    or else compilation fails

  18. Mr_LinDowsMac says:

    Build error for hiphop-php:

    Scanning dependencies of target hphp
    [ 88%] Building CXX object src/hphp/CMakeFiles/hphp.dir/externals.cpp.o
    [ 88%] Building CXX object src/hphp/CMakeFiles/hphp.dir/main.cpp.o
    /root/hiphop/hiphop-php/src/compiler/construct.h:284: warning: ‘class HPHP::LocalEffectsContainer’ has virtual functions but non-virtual destructor
    Linking CXX executable hphp
    /root/hiphop/local/lib/libc-client.so: could not read symbols: File in wrong format
    collect2: ld returned 1 exit status
    make[2]: *** [src/hphp/hphp] Error 1
    make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Error 2
    make: *** [all] Error 2

    I already installed libc-client2007 using yum and copied using
    cp /usr/lib/libc-client.so.2007 local/lib/libc-client.so

    I also use ‘make clean’ before retrying.
    What it could be wrong?

  19. Artur Graniszewski says:

    First of all, you should be aware that make clean does not work as it should in case of HipHop for PHP. Often you have to delete old files and unpack HipHop again, before trying new compilation. If you copied libc-client 2007 after this error occured, then try to unpack HipHop again and then run make command.

  20. Mr_LinDowsMac says:

    After bootstrapping boost (and waiting hours to this) I got this:
    …failed updating 6 targets…
    …skipped 12 targets…
    …updated 9122 targets…

    Nevermind, seems to be sucessfull…
    Continued to next step:
    cp -r imap local/include/
    cp /usr/lib/libc-client.so.2007 local/lib/libc-client.so

    No problem, keep in mind that I had to install libc by ‘yum install libc-client2007′

    cd hiphop-php
    git submodule init
    git submodule update
    export HPHP_HOME=`pwd`
    export HPHP_LIB=`pwd`/bin

    Exported enviroment variables, but after executing cmake
    I got this:

    – 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!

    Damn.

  21. Artur Graniszewski says:

    You forgot to set the CMAKE_PREFIX_PATH like so:

    export CC=gcc44
    export CMAKE_PREFIX_PATH=`pwd`/local

    btw. keep in mind my previous comment about the `make clean` not working properly.

  22. Mr_LinDowsMac says:

    I don’t think so, those variables are set! I don’t understand why cmake doesn’t find them. I run export and i got this:

    declare -x CC=”gcc44″
    declare -x CMAKE_PREFIX_PATH=”/root/hiphop/local”
    declare -x CVS_RSH=”ssh”
    declare -x CXX=”/usr/bin/g++44″
    declare -x G_BROKEN_FILENAMES=”1″
    declare -x HOME=”/root”
    declare -x HPHP_HOME=”/root/hiphop/hiphop-php”
    declare -x HPHP_LIB=”/root/hiphop/hiphop-php/bin”

    So, as you can see, those variables are set.

  23. Mr_LinDowsMac says:

    Ok, I forgot to say that I’m using the ‘vm’ branch of hiphop, which is most recent. I though it was going to work anyway, but it seems to be more tricky :(

    Ruuning Cmake using the main branch has no problems…

  24. Mr_LinDowsMac says:

    I kept trying to install the “vm” branch and I resolved the cmake errors by installing manually the libelf adn libdwarf libraries. Then tried again, cmake had no problems this time :)

    cd hiphop
    wget http://www.mr511.de/software/libelf-0.8.9.tar.gz
    tar xvzf libelf-0.8.9
    cd libelf-0.8.9
    ./configure

    yes, i had to install it in the OS, because the libdwarf can’t find it if I use–prefix=`pwd`/../local
    make install
    cd ..

    git clone git://libdwarf.git.sourceforge.net/gitroot/libdwarf/libdwarf
    cd libdwarf/libdwarf
    ./configure –prefix=`pwd`/../../local
    make
    cp libdwarf.a ../../local/lib
    cp dwarf.h ../../local/include
    cp libdwarf.h ../../local/include
    cp libdwarf.h ../../local/lib

    now I tried cmake and worked with no errors, so ran make. I waited a couple hours, but when I tough that everything was fine, happened this:

    [ 63%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/system/gen/sys/dynamic_table_func.no.cpp.o
    g++44: Internal error: Killed (program cc1plus)
    Please submit a full bug report.
    See for instructions.
    make[2]: *** [src/CMakeFiles/hphp_runtime_static.dir/system/gen/sys/dynamic_table_func.no.cpp.o] Error 1
    make[1]: *** [src/CMakeFiles/hphp_runtime_static.dir/all] Error 2
    make: *** [all] Error 2

    u_u

  25. Ervin says:

    Is this working for someone? I have lost hours but still doesn’t work.

  26. With me it worked!

    First open the file src/runtime/ext/extension.cpp
    Then apply the patched
    — a/src/runtime/ext/extension.cpp
    2 +++ b/src/runtime/ext/extension.cpp
    3 @@ -50,6 +50,9 @@
    4 }
    5
    6 void Extension::LoadModules(Hdf hdf) {
    7 + if (s_registered_extensions == NULL) {
    8 + s_registered_extensions = new ExtensionMap();
    9 + }
    10 ASSERT(s_registered_extensions);
    11 for (ExtensionMap::const_iterator iter = s_registered_extensions->begin();
    12 iter != s_registered_extensions->end(); ++iter) {

  27. Konstantin says:

    I’m trying to make this on centos and I get the following error…

    Linking CXX static library ../../bin/libhphp_analysis.a
    [ 88%] Built target hphp_analysis
    [ 88%] Building CXX object src/hphp/CMakeFiles/hphp.dir/externals.cpp.o
    [ 88%] Building CXX object src/hphp/CMakeFiles/hphp.dir/main.cpp.o
    /root/hiphop/hiphop-php/src/compiler/construct.h:284: warning: ‘class HPHP::LocalEffectsContainer’ has virtual functions but non-virtual destructor
    make[2]: *** No rule to make target `/lib64/libz.so’, needed by `src/hphp/hphp’. Stop.
    make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Error 2
    make: *** [all] Error 2

    Anyone have an clue as to how to fix this? Or why this is happeneing?

  28. Konstantin says:

    Solved that issue.. it looks like there was a linking issue. /lib64/libz.so was pointing to an improper file.
    Now i get the:
    [ 88%] Building CXX object src/hphp/CMakeFiles/hphp.dir/main.cpp.o
    /root/hiphop/hiphop-php/src/compiler/construct.h:284: warning: ‘class HPHP::LocalEffectsContainer’ has virtual functions but non-virtual destructor
    Linking CXX executable hphp
    /root/hiphop/local/lib/libc-client.so: could not read symbols: File in wrong format
    collect2: ld returned 1 exit status
    make[2]: *** [src/hphp/hphp] Error 1
    make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Error 2
    make: *** [all] Error 2

    Which doesn’t seem to get solved by
    cp /usr/lib/libc-client.so.2007 local/lib/libc-client.so

  29. Artur Graniszewski says:

    Hi Konstantin,

    what version of Centos do you use?

  30. shahzaibcb says:

    Using gcc-4.6.3 and hipop compilation fails on 90% and produces errors, few of them are given below, can someone assist me on it?
    [ 1%] Built target timelib
    [ 2%] Built target xhp
    [ 10%] Built target mbfl
    [ 11%] Built target afdt
    [ 14%] Built target folly
    [ 15%] Built target double-conversion
    [ 15%] Built target sqlite3
    [ 15%] Built target lz4
    [ 67%] Built target hphp_runtime_static
    [ 77%] Built target hphp_analysis
    [ 90%] Built target ext_hhvm_static
    Linking CXX executable hhvm
    scalar_arrays_0.no.cpp:(.text+0×562): undefined reference to boost::system::system_category()’
    ../../bin/libhphp_runtime.a(literal_strings_0.no.cpp.o): In function__static_initialization_and_destruction_0(int, int)’:
    literal_strings_0.no.cpp:(.text+0x4d): undefined reference to boost::system::generic_category()’
    literal_strings_0.no.cpp:(.text+0×59): undefined reference toboost::system::generic_category()’
    literal_strings_0.no.cpp:(.text+0×65): undefined reference to `boost::system::system_category()’
    collect2: ld returned 1 exit status
    make[2]: *** [hphp/hhvm/hhvm] Error 1
    make[1]: *** [hphp/hhvm/CMakeFiles/hhvm.dir/all] Error 2
    make: *** [all] Error 2

  31. abduraoof says:

    i got an error while extrating the file, tar xvzf tbb22_20090809oss_src.tgz

    error is ,

    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Exiting with failure status due to previous errors

    i am stuck on the installation, any one can help me

  32. raoof says:

    i got an error in ghe last step, compile hiphop-php

    – CMAKE_PREFIX_PATH was missing, proceeding anyway
    CMake Error at CMake/FindBoost.cmake:916 (message):
    Unable to find the requested Boost libraries.

    Boost version: 1.41.0

    Boost include path: /usr/include

    Detected version of Boost is too old. Requested version was 1.48 (or
    newer).

    The following Boost libraries could not be found:

    boost_system
    boost_program_options
    boost_filesystem
    boost_regex

    No Boost libraries were found. You may need to set Boost_LIBRARYDIR to the
    directory containing Boost libraries or BOOST_ROOT to the location of
    Boost.
    Call Stack (most recent call first):
    CMake/HPHPFindLibs.cmake:22 (find_package)
    CMake/HPHPSetup.cmake:46 (include)
    hphp/CMakeLists.txt:18 (include)

    – Could NOT find LIBGLOG (missing: LIBGLOG_LIBRARY LIBGLOG_INCLUDE_DIR)
    CMake Error at CMake/FindLibunwind.cmake:19 (message):
    libunwind.h found without matching unwind.h
    Call Stack (most recent call first):
    CMake/HPHPFindLibs.cmake:43 (find_package)
    CMake/HPHPSetup.cmake:46 (include)
    hphp/CMakeLists.txt:18 (include)

    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    LIBGLOG_INCLUDE_DIR (ADVANCED)
    used as include directory in directory /home/raoof/hiphop/hiphop-php/hphp

    – Configuring incomplete, errors occurred!

    how to recover these errors, Pls help me

  33. Niyas says:

    – CMAKE_PREFIX_PATH was missing, proceeding anyway
    – MySQL Include dir: /usr/include library dir: /usr/lib64/mysql
    – MySQL client libraries: mysqlclient_r
    CMake Error at CMake/HPHPFindLibs.cmake:46 (message):
    libmemcache is too old, found and we need 0.39
    Call Stack (most recent call first):
    CMake/HPHPSetup.cmake:46 (include)
    src/CMakeLists.txt:18 (include)

    – Configuring incomplete, errors occurred!

Leave a Reply