【问题标题】:Installing MongoDB Drivers on Laravel Forge HHVM Server在 Laravel Forge HHVM 服务器上安装 MongoDB 驱动程序
【发布时间】:2016-07-15 09:50:30
【问题描述】:

我该如何解决这个问题?我一直在尝试按照以下说明在 Ubuntu 16.04(Laravel Forge 服务器)上安装 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`

【问题讨论】:

    标签: php mongodb laravel hhvm


    【解决方案1】:

    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-02
      • 1970-01-01
      • 1970-01-01
      • 2016-09-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多