我该如何解决这个问题?我按照以下说明尝试在Ubuntu 16.04(Laravel Forge Server)上安装MongoDB HHVM驱动程序:[手动安装MongoDB HHVM驱动程序] [1]
我已经完成了所有说明,直到这部分
make -j 5
当我运行此命令时,我收到以下错误:
root@api:/hhvm-mongodb/hhvm-mongodb-1.1.2# make -j 4
make[2]: *** No rule to make target 'CMakeFiles/mongodb.dir/build'. Stop.
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mongodb.dir/all' failed
make[1]: *** [CMakeFiles/mongodb.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
以下是我的环境和驱动程序版本的更多详细信息:
MongoDB HHVM驱动程序1.1.2
Laravel Forge服务器详细信息
HHVM版本
HipHop VM 3.14.2 (rel)
Compiler: tags/HHVM-3.14.2-0-ge8134a09af2bc6e27191a63b6ed2f113ac80ee92
Repo schema: 676c6f18d2f55ba8ce519ca7af4c26a9747c1563
PHP版
PHP 7.0.8-4+deb.sury.org~xenial+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.8-4+deb.sury.org~xenial+1, Copyright (c) 1999-2016, by Zend Technologies
Laravel版本
"laravel/framework": "5.2.*"
MongoDB版本
root@api:/# mongod --version
db version v2.6.10
2016-07-13T16:17:56.085+0200 git version: nogitversion
2016-07-13T16:17:56.085+0200 OpenSSL version: OpenSSL 1.0.2g-fips 1 Mar 2016`
答案 0 :(得分:0)
MongoDB HHVM驱动程序安装文档已updated。
git clone https://github.com/mongodb/mongo-hhvm-driver --branch master
cd mongo-hhvm-driver/
git submodule update --init --recursive
hphpize
cmake .
make configlib
make -j [number_of_processor_cores] # eg. make -j 4
make install