@@ -11,23 +11,18 @@ Building and installing
1111### Dependancies ###
1212To use ` nodegit2 ` , you will need to have the ` libgit2 ` shared library in ` /usr/local/lib ` and the ` NodeJS `
1313framework installed, you will also need ` git ` installed and accessible from your ` PATH ` to fetch any ` vendor/ ` addons.
14- __ You can skip this step and ` nodegit2 ` will automatically fetch and install a fresh copy of ` libgit2 ` for you. __
14+
15+ __ Windows Users: __ Compile through Cygwin, following the Unix instructions below.
16+ __ OS X Users: __ Install using ` brew ` or ` macports ` .
17+ __ Linux/Unix Users: __ Install from source or your favorite package manager.
1518
1619### Using NPM ###
1720
18- The __ easiest __ way to get ` nodegit2 ` \* Note: If you do not have write privileges to ` /usr/local/lib ` this will need to be run as superuser \*
21+ The __ easiest __ way to get ` nodegit2 `
1922
2023 [tim@thinkpad Projects]$ npm install nodegit2
2124
22- ### Linux/Mac OS X/BSD Variants ###
23- \* If you have ` nodegit2 ` install ` libgit2 ` for you, you must run ` make ` with a user that has priviledges to write to ` /usr/local/lib ` \*
24-
25- #### Install ` libgit2 ` from [ http://libgit2.github.com/ ] ( http://libgit2.github.com/ ) ####
26-
27- [tim@thinkpad Projects]$ cd libgit2
28- [tim@thinkpad libgit2]$ ./configure
29- [tim@thinkpad libgit2]$ make
30- [tim@thinkpad libgit2]$ sudo make install
25+ ### Mac OS X/Linux/Unix ###
3126
3227#### Install ` NodeJS ` from [ http://nodejs.org/ ] ( http://nodejs.org/ ) ####
3328
@@ -36,12 +31,17 @@ The __ easiest __ way to get `nodegit2` \* Note: If you do not have write privil
3631 [tim@thinkpad node-v0.4.0]$ make
3732 [tim@thinkpad node-v0.4.0]$ sudo make install
3833
34+ #### Install ` libgit2 ` from [ http://libgit2.github.com/ ] ( http://libgit2.github.com/ ) ####
35+
36+ [tim@thinkpad Projects]$ cd libgit2
37+ [tim@thinkpad libgit2]$ sudo python waf configure build-shared install
38+
3939#### Install ` nodegit2 ` by cloning source from __ GitHub__ and running the ` make ` and ` make install ` commands. ####
4040\* Remember you only need to run make as superuser if you want ` nodegit2 ` to install ` libgit2 ` for you. \*
4141
4242 [tim@thinkpad Projects]$ git clone git@github.com:tbranyen/nodegit2.git
4343 [tim@thinkpad Projects]$ cd nodegit2
44- [tim@thinkpad nodegit2]$ sudo make
44+ [tim@thinkpad nodegit2]$ make
4545 [tim@thinkpad nodegit2]$ make install
4646
4747### Windows via Cygiwn ###
0 commit comments