| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Having the same problem on Lion with node v0.6.5 and npm 1.1.0-alpha-6
sorry i'm slacking, on vacation and been focusing on my backbone projects atm. i'm being a bad maintainer i know, but i will be getting to this, unless someone else beats me to it.
I might have it working at moneal/nodegit@a93d5f1 It looks like the problems I'm having now are related to building on Lion.
Looks like I'm getting the same error below on Lion and Ubuntu with my above changes.
Ubuntu:
/usr/bin/ld: cannot find -lgit2
collect2: ld returned 1 exit status
Lion:
ld: library not found for -lgit2
collect2: ld returned 1 exit status
After I installed cmake on ubuntu I was able to build without errors.
Ah yes, libgit2 requires cmake to build now. Can you install cmake on lion as well to test? I can give it a shot when I arrive back from vacation tomorrow if you can't get it first.
Installed cmake on Lion and was able to build.
thanks moneal, compilation of your version on OSX Lion completed without any errors, just wanted to report this little thing before i continue:
[ 1/13] cxx: src/base.cc -> build/Release/src/base_1.o
[ 2/13] cxx: src/sig.cc -> build/Release/src/sig_1.o
[ 3/13] cxx: src/blob.cc -> build/Release/src/blob_1.o
[ 4/13] cxx: src/error.cc -> build/Release/src/error_1.o
[ 5/13] cxx: src/object.cc -> build/Release/src/object_1.o
[ 6/13] cxx: src/reference.cc -> build/Release/src/reference_1.o
[ 7/13] cxx: src/repo.cc -> build/Release/src/repo_1.o
[ 8/13] cxx: src/commit.cc -> build/Release/src/commit_1.o
[ 9/13] cxx: src/oid.cc -> build/Release/src/oid_1.o
[10/13] cxx: src/revwalk.cc -> build/Release/src/revwalk_1.o
[11/13] cxx: src/tree.cc -> build/Release/src/tree_1.o
[12/13] cxx: src/tree_entry.cc -> build/Release/src/tree_entry_1.o
[13/13] cxx_link: build/Release/src/base_1.o build/Release/src/sig_1.o build/Release/src/blob_1.o build/Release/src/error_1.o build/Release/src/object_1.o build/Release/src/reference_1.o build/Release/src/repo_1.o build/Release/src/commit_1.o build/Release/src/oid_1.o build/Release/src/revwalk_1.o build/Release/src/tree_1.o build/Release/src/tree_entry_1.o -> build/Release/nodegit.node
Waf: Leaving directory `/Users/maarten/Downloads/nodegit/build'
'build' finished successfully (12.242s)
the module gets saved to 'build/Release/nodegit.node', though make install fails as it expects to find nodegit.node in './build/default'.
$ make install NODE_LIB_PATH=/usr/local/lib/node_modules/ cp: ./build/default/nodegit.node: No such file or directory make: *** [install] Error 1
this might be a non-issue, just wanted to report it as it might be useful info :-)
thanks!
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
at Function.<anonymous> (module.js:376:11)
at Object.<anonymous> (/Users/maarten/Downloads/nodegit/test/index.js:1:70)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
make: *** [test] Error 1
I guess this module is still incompatible with node 0.6..
See https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6 for more info
@maerten Thanks. Looks like I can make some other changes as well :)
I have changed it in moneal/nodegit@aa5a9ecba3. I'm not sure if NODE_LIB_PATH = ~/.node_libraries is correct. I think ~/.node_modules is the correct location.
Should probably be node_modules now
@tbranyen Whats the status on this. Should I adjust the path and request a pull for you?
Yeah man that'd be awesome if you could and run the unit tests to ensure it still works as expected.
👍 ?
Fixed in v0.0.74.
| Back | FazBrowse Home | New Git URL |
./configure:
Output of make:
[maarten@laptop: nodegit]$ make Waf: Entering directory `/Users/maarten/Downloads/nodegit/build' Scanning dependencies of target git2 [ 2%] Building C object CMakeFiles/git2.dir/src/blob.c.o [ 4%] Building C object CMakeFiles/git2.dir/src/buffer.c.o [ 6%] Building C object CMakeFiles/git2.dir/src/cache.c.o [ 8%] Building C object CMakeFiles/git2.dir/src/commit.c.o [ 10%] Building C object CMakeFiles/git2.dir/src/config.c.o [ 12%] Building C object CMakeFiles/git2.dir/src/config_file.c.o [ 14%] Building C object CMakeFiles/git2.dir/src/delta-apply.c.o [ 17%] Building C object CMakeFiles/git2.dir/src/errors.c.o [ 19%] Building C object CMakeFiles/git2.dir/src/fetch.c.o [ 21%] Building C object CMakeFiles/git2.dir/src/filebuf.c.o [ 23%] Building C object CMakeFiles/git2.dir/src/fileops.c.o [ 25%] Building C object CMakeFiles/git2.dir/src/hash.c.o [ 27%] Building C object CMakeFiles/git2.dir/src/hashtable.c.o [ 29%] Building C object CMakeFiles/git2.dir/src/index.c.o [ 31%] Building C object CMakeFiles/git2.dir/src/indexer.c.o [ 34%] Building C object CMakeFiles/git2.dir/src/mwindow.c.o [ 36%] Building C object CMakeFiles/git2.dir/src/netops.c.o [ 38%] Building C object CMakeFiles/git2.dir/src/object.c.o [ 40%] Building C object CMakeFiles/git2.dir/src/odb.c.o [ 42%] Building C object CMakeFiles/git2.dir/src/odb_loose.c.o [ 44%] Building C object CMakeFiles/git2.dir/src/odb_pack.c.o [ 46%] Building C object CMakeFiles/git2.dir/src/oid.c.o [ 48%] Building C object CMakeFiles/git2.dir/src/pack.c.o [ 51%] Building C object CMakeFiles/git2.dir/src/path.c.o [ 53%] Building C object CMakeFiles/git2.dir/src/pkt.c.o [ 55%] Building C object CMakeFiles/git2.dir/src/posix.c.o [ 57%] Building C object CMakeFiles/git2.dir/src/pqueue.c.o [ 59%] Building C object CMakeFiles/git2.dir/src/reflog.c.o [ 61%] Building C object CMakeFiles/git2.dir/src/refs.c.o [ 63%] Building C object CMakeFiles/git2.dir/src/refspec.c.o [ 65%] Building C object CMakeFiles/git2.dir/src/remote.c.o [ 68%] Building C object CMakeFiles/git2.dir/src/repository.c.o [ 70%] Building C object CMakeFiles/git2.dir/src/revwalk.c.o [ 72%] Building C object CMakeFiles/git2.dir/src/sha1.c.o [ 74%] Building C object CMakeFiles/git2.dir/src/sha1_lookup.c.o [ 76%] Building C object CMakeFiles/git2.dir/src/signature.c.o [ 78%] Building C object CMakeFiles/git2.dir/src/status.c.o [ 80%] Building C object CMakeFiles/git2.dir/src/tag.c.o [ 82%] Building C object CMakeFiles/git2.dir/src/thread-utils.c.o [ 85%] Building C object CMakeFiles/git2.dir/src/transport.c.o [ 87%] Building C object CMakeFiles/git2.dir/src/transport_git.c.o [ 89%] Building C object CMakeFiles/git2.dir/src/transport_local.c.o [ 91%] Building C object CMakeFiles/git2.dir/src/tree.c.o [ 93%] Building C object CMakeFiles/git2.dir/src/tsort.c.o [ 95%] Building C object CMakeFiles/git2.dir/src/util.c.o [ 97%] Building C object CMakeFiles/git2.dir/src/vector.c.o [100%] Building C object CMakeFiles/git2.dir/src/unix/map.c.o Linking C shared library libgit2.dylib [100%] Built target git2 [ 1/13] cxx: src/base.cc -> build/Release/src/base_1.o [ 2/13] cxx: src/sig.cc -> build/Release/src/sig_1.o ../src/sig.cc:7:25: error: node_events.h: No such file or directory ../src/base.cc:7:25: error: node_events.h: No such file or directory In file included from ../src/../include/object.h:15, from ../src/../include/repo.h:15, from ../src/sig.cc:11: ../src/../include/oid.h:17: error: expected class-name before ‘{’ token In file included from ../src/../include/repo.h:15, from ../src/sig.cc:11: ../src/../include/object.h:22: error: expected class-name before ‘{’ token In file included from ../src/sig.cc:11: ../src/../include/repo.h:20: error: expected class-name before ‘{’ token In file included from ../src/sig.cc:12: ../src/../include/sig.h:19: error: expected class-name before ‘{’ token ../src/sig.cc: In static member function ‘static v8::Handle<v8::Value> GitSig::New(const v8::Arguments&)’: ../src/sig.cc:71: error: ‘class GitSig’ has no member named ‘Wrap’ In file included from ../src/../include/object.h:15, from ../src/../include/repo.h:15, from ../src/../include/reference.h:15, from ../src/base.cc:11: ../src/../include/oid.h:17: error: expected class-name before ‘{’ token In file included from ../src/../include/repo.h:15, from ../src/../include/reference.h:15, from ../src/base.cc:11: ../src/../include/object.h:22: error: expected class-name before ‘{’ token In file included from ../src/../include/reference.h:15, from ../src/base.cc:11: ../src/../include/repo.h:20: error: expected class-name before ‘{’ token In file included from ../src/base.cc:11: ../src/../include/reference.h:21: error: expected class-name before ‘{’ token In file included from ../src/base.cc:12: ../src/../include/sig.h:19: error: expected class-name before ‘{’ token In file included from ../src/../include/tree.h:16, from ../src/../include/commit.h:18, from ../src/base.cc:18: ../src/../include/tree_entry.h:25: error: expected class-name before ‘{’ token In file included from ../src/../include/commit.h:18, from ../src/base.cc:18: ../src/../include/tree.h:24: error: expected class-name before ‘{’ token In file included from ../src/base.cc:18: ../src/../include/commit.h:26: error: expected class-name before ‘{’ token In file included from ../src/base.cc:19: ../src/../include/revwalk.h:20: error: expected class-name before ‘{’ token Waf: Leaving directory `/Users/maarten/Downloads/nodegit/build' Build failed: -> task failed (err #1): {task: cxx sig.cc -> sig_1.o} -> task failed (err #1): {task: cxx base.cc -> base_1.o} make: *** [build] Error 1Is anyone working to get this project working with node 0.6.x? It would be great to it this out (without going back to node 0.4 :-)