New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install gitteh #21
Comments
+1 |
installing libgit2 via package manager (brew install libgit2) did a trick for me. |
Hmm. Not sure why that would make a difference - gitteh installs its own nitinNitin Borwankar On Wed, Feb 15, 2012 at 3:34 PM, Mykola Gurov <
|
Sorry, my bad. It was probably one of the forked branches that upgraded to libgit2 v0.15 that I managed to install to my local npm registry. |
I have managed to get pygit2(python) and Rugged (ruby) bindings working Nitin Borwankar On Wed, Feb 15, 2012 at 4:53 PM, Mykola Gurov <
|
https://github.com/davman99/node-gitteh/ worked for me after installing libgit2 v 0.16 |
Wow! thanks much that worked for me. Nitin Nitin Borwankar On Fri, Feb 17, 2012 at 11:40 AM, Mykola Gurov <
|
+1 Exact same problem here. And the tip about brew install libgit2 first worked for me, but it'd be much better if I could install it only from npm. |
Same problem here, but @nborwankar's suggestion works for me as well. |
With brew removing 0.16 from its repos, and me needing to install it on ubuntu (libgit2 doesn't provide pre-compiles), I needed to be able to install gitteh v0.1.0 through npm. The current gitteh at v0.1.0 is broken, and you cannot install and compile from source. I spent the better part of the day looking into how to get npm to install gitteh. As it turns out, gitteh v0.1.0 actually errors out with libgit2 versions 0.10.0 through 0.16.0, for two reasons:
I fixed the wscript to directly clone the v0.16.0 of libgit2, instead of relying on submodules, since node-waf didn't seem to like that. To solve the second point, it's been noted on above that davman99's master does, but its wscript isn't working. I've merged dave's changes with the fixes for wscript so you can install gitteh "v0.1.0" from npm. In your package.json, put:
And run
and it should be able to install. |
Just to note, the first mentioned error (regarding |
Try to install gitteh (0.17.2) now. There shouldn't be any problem. |
Like @jmendeth stated, a new version of gitteh is out that should address this issue. |
This is on OSX Lion latest gitteh (as of 1/24/2012)
Attempting to install via 'npm install gitteh -g'
everything fine until ..
[ 3/11] cxx: src/tree.cc -> build/Release/src/tree_1.o
[ 4/11] cxx: src/repository.cc -> build/Release/src/repository_1.o
../src/commit.cc: In static member function ‘static v8::Handlev8::Value gitteh::Commit::SaveObject(v8::Handlev8::Object, gitteh::Repository_, v8::Handlev8::Value, bool)’:
../src/commit.cc:213: error: invalid conversion from ‘int ()(eio_req)’ to ‘void ()(eio_req)’
../src/commit.cc:213: error: initializing argument 1 of ‘eio_req_ eio_custom(void ()(eio_req), int, int ()(eio_req), void*)’
../s
[...] many more similar ending with
../src/repository.cc:1539: error: invalid conversion from ‘int ()(eio_req)’ to ‘void ()(eio_req)’
../src/repository.cc:1539: error: initializing argument 1 of ‘eio_req* eio_custom(void ()(eio_req), int, int ()(eio_req), void*)’
Waf: Leaving directory
/usr/local/lib/node_modules/gitteh/build' Build failed: -> task failed (err #1): {task: cxx commit.cc -> commit_1.o} -> task failed (err #1): {task: cxx repository.cc -> repository_1.o} npm ERR! error installing gitteh@0.1.0 npm ERR! gitteh@0.1.0 install:
node-waf buildnpm ERR!
sh "-c" "node-waf build"` failed with 1gcc -v gives
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1
22/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.122/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
I had previously built successfully on SnowLeopard back in mid 2011
The text was updated successfully, but these errors were encountered: