Solved

Install HipHop on Centos6

Posted on 2013-11-10
16
1,011 Views
Last Modified: 2013-11-17
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
Comment
Question by:duncanb7
  • 8
  • 7
16 Comments
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 39638064
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
 
LVL 13

Author Comment

by:duncanb7
ID: 39638399
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
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 39639928
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
 
LVL 13

Author Comment

by:duncanb7
ID: 39641191
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
 
LVL 13

Author Comment

by:duncanb7
ID: 39642861
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
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 39642845
(please see next post)
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 500 total points
ID: 39642862
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 13

Author Comment

by:duncanb7
ID: 39643579
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
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 39646174
I couldn't find the new thread - can you post a link here please?
0
 
LVL 13

Author Comment

by:duncanb7
ID: 39646211
search hiphop , HHVM or duncanb7  in EE search bar

Thanks for your reply with this closed thread
0
 
LVL 13

Author Comment

by:duncanb7
ID: 39649301
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
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 39649302
By all means accept http:#a39643579 as the solution. However, I feel I deserve some credit for putting you on the right track.
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 39649305
I.e. an assisted solution or two
0
 
LVL 13

Author Comment

by:duncanb7
ID: 39654386
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
 
LVL 13

Author Closing Comment

by:duncanb7
ID: 39654388
Thanks for all of your reply

Have a nice day and good weekend

Duncan
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
The viewer will learn how to count occurrences of each item in an array.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now