mongofill / mongofill-hhvm

A mix of the original Mongofill extension + BSON implementation in C++
MIT License
32 stars 19 forks source link

build.sh: hphpize: not found #36

Closed approached closed 9 years ago

approached commented 9 years ago

Hi@all

i become every time a error from build script. Which package is it hphpize?

root@mail:~/mongofill-hhvm# hhvm --version
HipHop VM 3.6.1 (rel)
Compiler: tags/HHVM-3.6.1-0-gc051feff88ba8050f33f10f7b1fb07f8d3415f9e
Repo schema: 42f49251b5c27daf4e13cb6bcd0c7ef4824b55a3
root@mail:~/mongofill-hhvm# ./build.sh 

git submodule update --init
Submodule 'vendor/mongofill/mongofill' () registered for path 'vendor/mongofill/mongofill'
hhvm tools/merge.php
hphpize
./build.sh: 7: ./build.sh: hphpize: not found
danslo commented 9 years ago

You need to install hhvm-dev.

approached commented 9 years ago

Okay it works. Next error:

git submodule update --init
Submodule 'vendor/mongofill/mongofill' () registered for path 'vendor/mongofill/mongofill'
hhvm tools/merge.php
hphpize
** hphpize complete, now run `cmake . && make` to build, `make test` to test
cmake .
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /root/mongofill-hhvm/CMakeFiles/CMakeTmp

  Run Build Command:/usr/bin/make "cmTryCompileExec2532646446/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec2532646446.dir/build.make
  CMakeFiles/cmTryCompileExec2532646446.dir/build

  make[1]: Entering directory `/root/mongofill-hhvm/CMakeFiles/CMakeTmp'

  /usr/bin/cmake -E cmake_progress_report
  /root/mongofill-hhvm/CMakeFiles/CMakeTmp/CMakeFiles 1

  Building C object
  CMakeFiles/cmTryCompileExec2532646446.dir/testCCompiler.c.o

  /usr/bin/gcc -o CMakeFiles/cmTryCompileExec2532646446.dir/testCCompiler.c.o
  -c /root/mongofill-hhvm/CMakeFiles/CMakeTmp/testCCompiler.c

  as: error while loading shared libraries: /usr/lib/libbfd-2.22-system.so:
  invalid ELF header

  make[1]: Leaving directory `/root/mongofill-hhvm/CMakeFiles/CMakeTmp'

  make[1]: *** [CMakeFiles/cmTryCompileExec2532646446.dir/testCCompiler.c.o]
  Fehler 1

  make: *** [cmTryCompileExec2532646446/fast] Fehler 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (PROJECT)

-- Configuring incomplete, errors occurred!
danslo commented 9 years ago
as: error while loading shared libraries: /usr/lib/libbfd-2.22-system.so:
  invalid ELF header

That seems to be the reason for the failure. Not sure what it means, but probably not related to mongofill.

mcuadros commented 9 years ago

closing due to inativity