?
Solved

Install HipHop on Centos6

Posted on 2013-11-10
16
Medium Priority
?
1,055 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 7
16 Comments
 
LVL 35

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 35

Accepted Solution

by:
Duncan Roe earned 1000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 35

Expert Comment

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

Assisted Solution

by:Duncan Roe
Duncan Roe earned 1000 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
 
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 35

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 35

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 35

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

Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to useā€¦
This article discusses how to implement server side field validation and display customized error messages to the client.
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 look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

762 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