在Laravel Forge HHVM服务器上安装MongoDB驱动程序


Installing MongoDB Drivers on Laravel Forge HHVM Server

如何解决这个问题?我一直在尝试按照以下说明在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

拉维尔锻造服务器详细信息

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/framework": "5.2.*"

蒙戈数据库版本

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`

MongoDB HHVM 驱动程序安装文档已更新。

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