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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-08-2014, 06:46 AM
|
#1
|
LQ Newbie
Registered: Sep 2014
Posts: 12
Rep: 
|
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?
|
|
|
12-09-2014, 03:26 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
`/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.
|
12-09-2014, 06:29 AM
|
#3
|
LQ Newbie
Registered: Sep 2014
Posts: 12
Original Poster
Rep: 
|
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
|
|
|
12-09-2014, 07:51 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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
|
|
|
12-10-2014, 02:26 AM
|
#5
|
LQ Newbie
Registered: Sep 2014
Posts: 12
Original Poster
Rep: 
|
yes, exactly from source available on github.
|
|
|
12-10-2014, 06:59 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
← #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.
-
|
|
|
12-10-2014, 12:42 PM
|
#7
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688
|
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
|
|
|
12-11-2014, 06:43 AM
|
#8
|
LQ Newbie
Registered: Sep 2014
Posts: 12
Original Poster
Rep: 
|
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
|
|
|
12-22-2014, 10:14 AM
|
#9
|
LQ Newbie
Registered: Sep 2014
Posts: 12
Original Poster
Rep: 
|
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
|
|
|
All times are GMT -5. The time now is 07:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|