forked from mongodb-labs/mongo-perl-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
41 lines (30 loc) · 1.15 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Installation Instructions
-------------------------
If they aren't already installed, you will need the following modules:
sudo cpan Module::Install
sudo cpan Test::Exception
sudo cpan Any::Moose
sudo cpan Class::Method::Modifiers
sudo cpan Tie::IxHash (most db commands, MongoDBensure_index)
A couple methods (that you might not run into) require:
sudo cpan boolean (MongoDB::Collection::ensure_index)
sudo cpan Digest::MD5 (MongoDB::Connection::authenticate)
Packages needed for different types:
dates: DateTime
booleans: boolean
Then do:
$ perl Makefile.PL
$ make
$ make test
$ make install
Big Endian Machines
-------------------
MongoDB cannot run on a big endian machine, but the driver can. If you have a
little endian machine available, you can connect to that remotely and develop on
your big endian machine.
To run the tests using a remote database, make sure mongod is running on it and
then do:
$ MONGOD=example.com make test
where example.com is the hostname for your machine running mongod. The driver
will use the value of $ENV{MONGOD} as the host if you provide it, otherwise it
will try to connect to localhost.