|
Manually Installing the MongoDB HHVM DriverAt the time of this writing, HHVM does not have a package manager for extensions. Download the latest driver from » GitHub. Alternatively, you may clone the repository to build the latest source code: $ git clone https://github.com/mongodb/mongo-hhvm-driver.git $ cd mongo-hhvm-driver $ git submodule sync && git submodule update --init --recursive Set up the make files by running: $ hphpize $ cmake .
Generate the $ make configlib Build and install the driver by running: $ make -j 5 $ sudo make install
The last step will report where mongodb.so has been installed, similar to: Installing: /usr/local/hhvm/3.9.1/lib/hhvm/extensions/20150212/mongodb.so Add the following line to your php.ini file (usually found in "/etc/hhvm"): hhvm.dynamic_extension_path=/usr/local/hhvm/3.9.1/lib/hhvm/extensions/20150212 hhvm.dynamic_extensions[mongodb]=mongodb.so |