• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1148
  • Last Modified:

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

0
duncanb7
Asked:
duncanb7
  • 8
  • 7
2 Solutions
 
Duncan RoeSoftware DeveloperCommented:
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.
0
 
duncanb7Author Commented:
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

0
 
Duncan RoeSoftware DeveloperCommented:
You have to do much the same for libboost. But you need to do it properly. Line 3 onwards of your session to install libdwarf should have looked like this
./configure --prefix=/usr
make
make install

Open in new window

This will install in /usr as you were doing by hand. (It will also install anything you may have missed). libboost installs 62 items in /usr/lib and 10583 items in /usr/include/boost. You probably want to use make install for that.
As an aside, what distribution are you using? I find it unusual that it didn't come with libboost
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
duncanb7Author Commented:
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
0
 
duncanb7Author Commented:
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
0
 
Duncan RoeSoftware DeveloperCommented:
(please see next post)
0
 
Duncan RoeSoftware DeveloperCommented:
When you asked this question, you had no idea what the problem was. I advised you to obtain and install the missing items. That is what you did.
Using yum instead of fetching as I would is a trivial change to my answer.
(I would never use yum on my Slackware system, but it may well be right for your distribution (there are a lot of distributions)).
0
 
duncanb7Author Commented:
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
0
 
Duncan RoeSoftware DeveloperCommented:
I couldn't find the new thread - can you post a link here please?
0
 
duncanb7Author Commented:
search hiphop , HHVM or duncanb7  in EE search bar

Thanks for your reply with this closed thread
0
 
duncanb7Author Commented:
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
0
 
Duncan RoeSoftware DeveloperCommented:
By all means accept http:#a39643579 as the solution. However, I feel I deserve some credit for putting you on the right track.
0
 
Duncan RoeSoftware DeveloperCommented:
I.e. an assisted solution or two
0
 
duncanb7Author Commented:
During some EE expert to solve the issue of yum install, it also help
to solve hiphop binary up in attahced link

http://www.experts-exchange.com/Programming/Languages/C/Q_28296049.html#a39653816


Duncan
0
 
duncanb7Author Commented:
Thanks for all of your reply

Have a nice day and good weekend

Duncan
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now