Skip to content
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

Closed
nborwankar opened this issue Jan 24, 2012 · 12 comments
Closed

Can't install gitteh #21

nborwankar opened this issue Jan 24, 2012 · 12 comments

Comments

@nborwankar
Copy link

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 build npm ERR!sh "-c" "node-waf build"` failed with 1

gcc -v gives

Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.122/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.1
Thread 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

@mgurov
Copy link

mgurov commented Feb 15, 2012

+1
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

@mgurov
Copy link

mgurov commented Feb 15, 2012

installing libgit2 via package manager (brew install libgit2) did a trick for me.

@nborwankar
Copy link
Author

Hmm. Not sure why that would make a difference - gitteh installs its own
self-contained libgit2 src and builds it - its at v 0.11.
I tried the brew install and it seems to install 0.30.
I then tried npm install gitten again - no luck.

nitin

Nitin Borwankar
nborwankar@gmail.com

On Wed, Feb 15, 2012 at 3:34 PM, Mykola Gurov <
reply@reply.github.com

wrote:

installing libgit2 via package manager (brew install libgit2) did a trick
for me.


Reply to this email directly or view it on GitHub:
#21 (comment)

@mgurov
Copy link

mgurov commented Feb 16, 2012

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.

@nborwankar
Copy link
Author

I have managed to get pygit2(python) and Rugged (ruby) bindings working
but not the nodejs one which I want so much.
I think there's a pull request waiting to be accepted that has the fixes
for the bugs - but the request hasn't been accepted yet.
I manually added the changes from the pull request to my local repo but
still get errors in the build :-(
Nitin


Nitin Borwankar
nborwankar@gmail.com

On Wed, Feb 15, 2012 at 4:53 PM, Mykola Gurov <
reply@reply.github.com

wrote:

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.


Reply to this email directly or view it on GitHub:
#21 (comment)

@mgurov
Copy link

mgurov commented Feb 17, 2012

https://github.com/davman99/node-gitteh/ worked for me after installing libgit2 v 0.16
$ git clone https://github.com/davman99/node-gitteh.git $ npm pack

@nborwankar
Copy link
Author

Wow! thanks much that worked for me.
How are you going to use this?
I am working on creating a REST accessible database based on Git - am
curious if you would like to participate in/use/test/blog about this effort.
Have a couple of other devs interested one is a CouchDB committer.
Pl. let me know - and thanks very much for the help.

Nitin


Nitin Borwankar
nborwankar@gmail.com

On Fri, Feb 17, 2012 at 11:40 AM, Mykola Gurov <
reply@reply.github.com

wrote:

https://github.com/davman99/node-gitteh/ worked for me after installing
libgit2 v 0.16
$ git clone https://github.com/davman99/node-gitteh.git $ npm pack


Reply to this email directly or view it on GitHub:
#21 (comment)

@iamwilhelm
Copy link
Contributor

+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.

@ghost
Copy link

ghost commented May 11, 2012

Same problem here, but @nborwankar's suggestion works for me as well.

@iamwilhelm
Copy link
Contributor

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:

  • its wscript file for node-waf assumes libgit2 also uses node-waf. libgit2 has since changed to cmake.
  • there are some bugs in gitteh v0.1.0 that

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:

"dependencies": {
  "gitteh": "git://github.com/cubehero/node-gitteh.git"
}

And run

npm install

and it should be able to install.

@mildsunrise
Copy link
Contributor

Just to note, the first mentioned error (regarding eio with bad arguments) happens with
most modules because libuv/libeio has been upgraded and his API has changed. [see libeio history]

@mildsunrise
Copy link
Contributor

Try to install gitteh (0.17.2) now. There shouldn't be any problem.

@samcday
Copy link
Contributor

samcday commented Jun 26, 2013

Like @jmendeth stated, a new version of gitteh is out that should address this issue.

@samcday samcday closed this as completed Jun 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants