Link to home
Start Free TrialLog in
Avatar of duncanb7
duncanb7

asked on

Install HipHop on Centos6

Dear Expert,

Any export on hiphop installation on Linux CentOS6.
I'm following the final thread answer of  link in

<link to defective competing site deleted by COBOLdinosaur, Topic Advisor>

to get hiphop installation almost  done. All ext library for hiphop is installed succesfully

But it found some error during at the last step to  install hiphop :

Lasst steps:
============
cd /home/ec2-user/hiphop/hiphop-php
git submodule init
git submodule update
export HPHP_HOME=/home/ec2-user/hiphop/hiphop-php
export HPHP_LIB=/home/ec2-user/hiphop/hiphop-php/bin
cmake .    #Error happen here  & output error  as follows in code area
make
alias hphp=/home/ec2-user/hiphop/hiphop-php/src/hphp/hphp

it reports  error as follows.  What is   LibDwarf (missing: LIBDWARF_LIBRARIES)in cmake ? and Could I get rid of the fatal error

Please advise

root@vps [/home/ec2-user/hiphop/hiphop-php]# cmake .
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
CMake Warning at CMake/HPHPSetup.cmake:39 (message):
  chrpath not found, rpath will not be stripped from installed binaries
Call Stack (most recent call first):
  hphp/CMakeLists.txt:18 (include)


-- MySQL Include dir: /usr/include/mysql  library dir: /usr/lib64
-- MySQL client libraries: mysqlclient_r
-- Found libevent: /home/ec2-user/hiphop/local/lib/libevent.so
-- Found GD: /usr/lib64/libgd.so
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib64/libicuuc.so
-- Found minimal tcmalloc: /usr/local/lib/libtcmalloc_minimal.so
-- Found Intel TBB
-- Found mcrypt: /usr/lib64/libmcrypt.so
Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.0")
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.5")
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so - found
-- Found ONIGURUMA: /usr/lib64/libonig.so
-- Found ldap: /usr/lib64/libldap.so;/usr/lib64/liblber.so
-- Found LIBPTHREAD: /usr/lib64/libpthread.so
-- Found Readline: /usr/include
-- Found Editline: /usr/lib64/libedit.so
-- Found LibElf: /home/dev/ec2-user/hiphop/local/lib/libelf.so
-- Performing Test ELF_GETSHDRSTRNDX
-- Performing Test ELF_GETSHDRSTRNDX - Failed
CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find LibDwarf (missing: LIBDWARF_LIBRARIES)
Call Stack (most recent call first):
  /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  CMake/FindLibDwarf.cmake:49 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/HPHPFindLibs.cmake:287 (find_package)
  CMake/HPHPSetup.cmake:55 (include)
  hphp/CMakeLists.txt:18 (include)


-- Configuring incomplete, errors occurred!
See also "/home/dev/ec2-user/hiphop/hiphop-php/CMakeFiles/CMakeOutput.log".
See also "/home/dev/ec2-user/hiphop/hiphop-php/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.

Open in new window

Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

You can get a library of this name from sourceforge. I assume it's the right one but can't be certain.
You will need to build it from source and install. Then cmake should find it.
Avatar of duncanb7
duncanb7

ASKER

Dear COBOLdinasaur,

I have been informed the attach-link issue in firs time that I never be aware of that before
And other EE staff is helping me to understand the requirement of attach-link in EE
in seperate post. Thanks for your reminder and help.

Dear duncan_roe,

After re-install libwarf, I still not get the library include file by the following instructions

git clone http:example.link.libwarf.tar.gz (example link only)
cd libdwarf/libdwarf
./configure
make
sudo cp libdwarf.a /usr/lib64/
sudo cp libdwarh.h /usr/include/
sudo cp dwarf.h /usr/include/

Open in new window


So I directly download libdwarf.a, libdwarh.h dwarf.h. Although the LIBDWARF error
is gone but NEW other  fatal error is coming again from installing hiphop with "cmake ."
as follows

CMake Error at CMake/FindBoost.cmake:916 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.46.1

  Boost include path: /home/dev/t/t/hiphop/local/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):
  hphp/third_party/folly/CMakeLists.txt:57 (find_package)


CMake Error at CMake/FindBoost.cmake:916 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.46.1

  Boost include path: /home/dev/t/t/hiphop/local/include

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

  The following Boost libraries could not be found:

          boost_thread
          boost_system

  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):
  hphp/third_party/ti/CMakeLists.txt:5 (find_package)


CMake Error at CMake/FindBoost.cmake:916 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.46.1

  Boost include path: /home/dev/t/t/hiphop/local/include

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

  The following Boost libraries could not be found:

          boost_thread
          boost_system

  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):
  hphp/third_party/thrift/CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/dev/t/t/hiphop/hiphop-php/CMakeFiles/CMakeOutput.log".
See also "/home/dev/t/t/hiphop/hiphop-php/CMakeFiles/CMakeError.log".

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
After yum install elfutils-libelf-devel,

And re-install libedwarf and libelf, they are passed and then reinstall boost_1_50_0
and all cmake error is fixed.

But further error, make file error after Cmake "."  command.

Best Advise

Duncan
I've requested that this question be closed as follows:

Accepted answer: 0 points for duncanb7's comment #a39641191

for the following reason:

Thanks for all of your reply  and the thread is solved by author
(please see next post)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yum install elfutils-libelf-devel , the LIBWARF error is fixed

and try your suggestion ,
./configure --prefix=/usr
make
make install

that is getting the same error.

And the continuing error is a lot after LIBWARF error which is solved by author
and I close the thread to make new thread instead

thanks for all of reply

Duncan
I couldn't find the new thread - can you post a link here please?
search hiphop , HHVM or duncanb7  in EE search bar

Thanks for your reply with this closed thread
I've requested that this question be closed as follows:

Accepted answer: 0 points for duncanb7's comment #a39643579

for the following reason:

Thanks for your reply, and the thread is solved by author
By all means accept http:#a39643579 as the solution. However, I feel I deserve some credit for putting you on the right track.
I.e. an assisted solution or two
During some EE expert to solve the issue of yum install, it also help
to solve hiphop binary up in attahced link

https://www.experts-exchange.com/questions/28296049/yum-install-error.html?anchorAnswerId=39653816#a39653816


Duncan
Thanks for all of your reply

Have a nice day and good weekend

Duncan