LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-08-2014, 06:46 AM   #1
bgcadmit
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Rep: Reputation: Disabled
HHVM installation


I've installed hhvm 3.5 on CentOS 6.5 and I need mongo in it. So I'm trying to install proper extension but, it seems like my hhvm is missing hphpize needed for compilation, how should I install it?

PS. I installed hhvm from hop5.in precompiled package, could that be the reason of hphpize missing?
 
Old 12-09-2014, 03:26 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
`/usr/bin/hphpize' is a (very small) script, 479 bytes.
( $ cd hhvm/hphp/tools/hphpize/ && cmake28 . && make
# make install ).
Code:
#!/bin/sh

if [ ! -f "config.cmake" ]; then
  echo "config.cmake not found" >&2
  exit 1
fi

if [ -f "$HHVM_HPHPIZE_CMAKE" ]; then
  cp $HHVM_HPHPIZE_CMAKE CMakeLists.txt
else
  HHVM_INSTALL_PREFIX="/usr"
  HHVM_INSTALL_LIBDIR="lib64"
  HHVM_LIB="$HHVM_INSTALL_PREFIX/$HHVM_INSTALL_LIBDIR/hhvm"
  cp "$HHVM_LIB/hphpize/hphpize.cmake" CMakeLists.txt
  cp "$HHVM_LIB/hphpize/run" run-test
fi

echo "** hphpize complete, now run \`cmake . && make\` to build, \`make test\` to test"
 
1 members found this post helpful.
Old 12-09-2014, 06:29 AM   #3
bgcadmit
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
hello, thanks for your answer, when I try to compile hphpize I get:
Quote:
CMake Error at CMakeLists.txt:33 (file):
file Internal CMake error when trying to open file:
/hphp/runtime/ext/extension.h for reading.


CMake Error at CMakeLists.txt:37 (message):
Unable to determine API version


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.0)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/tmp/hhvm/hhvm/hphp/tools/hphpize/CMakeFiles/CMakeOutput.log".
content of that log file: http://pastebin.com/Pd8NPZ9n

Last edited by bgcadmit; 12-09-2014 at 06:32 AM. Reason: added log file
 
Old 12-09-2014, 07:51 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
when I try to compile hphpize
Compile from what ? The source code ?

Latest source code https://github.com/facebook/hhvm
→ $ git clone https://github.com/facebook/hhvm
 
Old 12-10-2014, 02:26 AM   #5
bgcadmit
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
yes, exactly from source available on github.
 
Old 12-10-2014, 06:59 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #5 .

I guess you will have to compile the entire hhvm,
before you can generate `the 18 liner text file' = hphpize.
I.e. $ cd hhvm/ && cmake28 ./

... But why not just try out my result, the 18 lines "hphpize".
Building hhvm isn't an easy thing to do, I think.

-
 
Old 12-10-2014, 12:42 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Also please check the output of this command
Code:
su -
cat /etc/redhat-release
if it states you are indeed using 6.5

UPGRADE ASAP!!!!!

Cent ONLY!!! supports the current minor version
CentOS 6.6

depending if you have the cent server os set to auto DIST UPGRADE-- not that good on a server
or to require a manual dist upgrade after the upgrades are tested

a normal "yum update" might NOT upgrade the operating system

Code:
su -
yum --releasever=6.6 upgrade
might be needed

Warning:
CentOS 6.5 has been UNSUPPORTED since October
-- and will NEVER receive security updates
 
Old 12-11-2014, 06:43 AM   #8
bgcadmit
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
But, as I think, upgrading won't help me with my problem, will it?

ok, I've tried that script that you provided, now I get this error:

Quote:
./build.sh
Submodule 'vendor/mongofill/mongofill' (git://github.com/mongofill/mongofill) registered for path 'vendor/mongofill/mongofill'
Initialized empty Git repository in /tmp/mongo/mongofill-hhvm/vendor/mongofill/mongofill/.git/
remote: Counting objects: 1350, done.
remote: Total 1350 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1350/1350), 998.55 KiB | 813 KiB/s, done.
Resolving deltas: 100% (813/813), done.
Submodule path 'vendor/mongofill/mongofill': checked out '6c22f3b72b81de59663bba7272d387475d233574'
cp: cannot stat `/usr/lib64/hhvm/hphpize/hphpize.cmake': No such file or directory
cp: cannot stat `/usr/lib64/hhvm/hphpize/run': No such file or directory

** hphpize complete, now run `cmake . && make` to build, `make test` to test
CMake Error: The source directory "/tmp/mongo/mongofill-hhvm" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found. Stop.
it seems like it's more that just a script with few lines of code
 
Old 12-22-2014, 10:14 AM   #9
bgcadmit
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
bump.
I've managed to compile hhvm and now when I compile mongofill i get:

Quote:
** hphpize complete, now run `cmake . && make` to build, `make test` to test
-- Configuring for HHVM API version 20140829
-- bson Include dir: /usr/local/include/libbson-1.0
-- libbson library: /usr/local/lib/libbson-1.0.so
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/mongofill-hhvm
[ 33%] Building CXX object CMakeFiles/mongo.dir/src/encode.cpp.o
/tmp/mongofill-hhvm/src/encode.cpp: In function 'void HPHP:bjectToBSON(const HPHP::Object&, const char*, bson_t*)':
/tmp/mongofill-hhvm/src/encode.cpp:86:36: error: 'class HPHP::ObjectData' has no member named 'o_getClassName'
const String& className = value->o_getClassName();
^
make[2]: *** [CMakeFiles/mongo.dir/src/encode.cpp.o] Error 1
make[1]: *** [CMakeFiles/mongo.dir/all] Error 2
make: *** [all] Error 2
Any suggestions would be appreciated
 
  


Reply

Tags
hhvm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: HHVM Going On A Big Performance, Feature Push LXer Syndicated Linux News 0 11-09-2013 08:33 PM
Installation doesn't recognize Red Hat Enterprise Linux ES installation cd bizkut Red Hat 2 08-15-2004 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration