@@ -23,6 +23,15 @@ with the new drivers.
23
23
Building
24
24
--------
25
25
26
+ Please ensure, that before you install the extension, the following tools are
27
+ installed: autoconf, automake, and libtool.
28
+
29
+ Compiling this extension requires the ``hphpize `` command, which is available by
30
+ installing the ``hhvm-dev `` package from the
31
+ `HHVM repositories <https://github.com/facebook/hhvm/wiki/Prebuilt-Packages-for-HHVM >`_
32
+ or `building HHVM from source <https://github.com/facebook/hhvm/wiki/Building-and-Installing-HHVM >`_.
33
+
34
+
26
35
From a package (.tgz)
27
36
~~~~~~~~~~~~~~~~~~~~~
28
37
@@ -34,7 +43,7 @@ commands::
34
43
35
44
mkdir hhvm-mongodb
36
45
cd hhvm-mongodb
37
- tar -xvzf ../hhvm-mongodb-1.0alpha1
46
+ tar -xvzf ../hhvm-mongodb-1.0alpha1.tgz
38
47
cd hhvm-mongodb-1.0alpha1
39
48
cd libbson; ./autogen.sh; cd ..
40
49
cd libmongoc; ./autogen.sh; cd ..
@@ -46,11 +55,6 @@ commands::
46
55
From source
47
56
~~~~~~~~~~~
48
57
49
- Compiling this extension requires the ``hphpize `` command, which is available by
50
- installing the ``hhvm-dev `` package from the
51
- `HHVM repositories <https://github.com/facebook/hhvm/wiki/Prebuilt-Packages-for-HHVM >`_
52
- or `building HHVM from source <https://github.com/facebook/hhvm/wiki/Building-and-Installing-HHVM >`_.
53
-
54
58
After cloning the repository, the extension may be built like so::
55
59
56
60
git submodule init
@@ -76,13 +80,12 @@ Installing
76
80
In your ``/etc/hhvm/php.ini ``, add the following lines (adjusting paths if
77
81
necessary)::
78
82
79
- hhvm.dynamic_extension_path=/usr/local/hhvm/3.9.1/lib/hhvm/extensions/20150212
80
83
hhvm.dynamic_extensions[mongodb]=mongodb.so
81
84
82
85
Running Tests
83
86
-------------
84
87
85
- To run the rests::
88
+ To run the rests, after adjusting the paths ::
86
89
87
90
export TEST_PHP_EXECUTABLE=`which hhvm`
88
91
hhvm -vDynamicExtensions.0=/usr/local/hhvm/3.9.1/lib/hhvm/extensions/20150212/mongodb.so run-tests.php
0 commit comments