Linux - SoftwareThis 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.
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.
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?
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
`/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"
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".
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
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.