| |
5 |
5 |
Framework) |
| |
6 |
6 |
|
| |
7 |
7 |
This implementation provides a low level interface based on tagged elements |
| |
8 |
8 |
to force / preserve the datatypes of MongoDB when converting into Tcl. |
| |
9 |
9 |
|
| |
10 |
10 |
This code serves as well as an example how to use the source code generator |
| |
11 |
11 |
of NSF. The example shows how to use the source code generator from NSF to |
| |
12 |
12 |
generate a C interface. |
| |
13 |
13 |
|
| |
14 |
14 |
-gustaf neumann March 27, 2011 |
| |
15 |
15 |
|
| |
16 |
16 |
|
| |
17 |
17 |
## Ingredients: ## |
| |
18 |
18 |
|
| |
19 |
19 |
https://github.com/mongodb/mongo |
| |
20 |
20 |
https://github.com/mongodb/mongo-c-driver |
| |
21 |
21 |
|
| |
22 |
22 |
The current version of the NSF mongo binding is 2.2 and was |
| |
23 |
23 |
tested with |
| |
24 |
24 |
- Tcl 8.5, 8.6 and 8.7 |
| |
25 |
|
- MongoDB v3.6.5 (released May 29, 2018) |
| |
26 |
|
- mongodb-c-driver 1.11.0 (released June 23, 2018) |
| |
27 |
|
- libbson 1.11.0 (released June 23, 2018) |
| |
|
25 |
- MongoDB 3.6.6 (released July 10, 2018) |
| |
|
26 |
- mongodb-c-driver 1.12.0 (released July 18, 2018) |
| |
|
27 |
- libbson 1.12.0 (released July 18, 2018) |
| |
28 |
28 |
|
| |
29 |
29 |
Follow the following steps to get MongoDB up and running |
| |
30 |
30 |
and to compile the MongoDB driver for NX. |
| |
31 |
31 |
|
| |
32 |
32 |
|
| |
33 |
33 |
## Obtain Mongodb and Mongo-C-Driver: ## |
| |
34 |
34 |
|
| |
35 |
35 |
- Compile or obtain mongodb (the database). |
| |
36 |
36 |
|
| |
37 |
37 |
- Compile or obtain the mongo-c-driver (client interface) |
| |
38 |
38 |
|
| |
39 |
39 |
```` |
| |
40 |
40 |
cd /usr/local/src |
| |
41 |
|
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.11.0/mongo-c-driver-1.11.0.tar.gz |
| |
42 |
|
tar zxvf mongo-c-driver-1.11.0.tar.gz |
| |
|
41 |
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.12.0/mongo-c-driver-1.12.0.tar.gz |
| |
|
42 |
tar zxvf mongo-c-driver-1.12.0.tar.gz |
| |
43 |
43 |
rm -rf mongo-c-driver |
| |
44 |
|
ln -sf mongo-c-driver-1.11.0 mongo-c-driver |
| |
|
44 |
ln -sf mongo-c-driver-1.12.0 mongo-c-driver |
| |
45 |
45 |
cd mongo-c-driver |
| |
46 |
46 |
cmake . |
| |
47 |
47 |
make |
| |
48 |
48 |
sudo make install |
| |
49 |
49 |
```` |
| |
50 |
50 |
|
| |
51 |
51 |
Alternatively, one can get the newest version from git |
| |
52 |
52 |
|
| |
53 |
53 |
```` |
| |
54 |
54 |
cd /usr/local/src |
| |
55 |
55 |
git clone https://github.com/mongodb/mongo-c-driver |
| |
56 |
56 |
cd mongo-c-driver |
| |
57 |
57 |
cmake . |
| |
58 |
58 |
make |
| |
59 |
59 |
sudo make install |
| |
60 |
60 |
```` |
| |
61 |
61 |
|
| |
62 |
62 |
If you experience errors during autogen on Debian, you might have to |
| |
63 |
63 |
apt-get install libtool |
| |
64 |
64 |
|