At the moment I'm experiencing difficulties with installing git on hector. It won't compile, giving me the following message:
make
GIT_VERSION = 1.7.6
* new build flags or prefix
CC daemon.o
PGC-W-0095-Type cast required for this conversion (./git-compat-util.h: 254)
PGC-S-0137-Incompatible prototype declaration for function inet_ntop (./git-compat-util.h: 413)
PGC/x86-64 Linux 10.9-0: compilation completed with severe errors
make: *** [daemon.o] Error 2
looks like there's some problem with the C compiler. I tried changing the makefile to explicitly use gcc (it's said to build fine with it, not sure about other compilers. Besides, I managed to build it on ECDF without any trouble), but no luck. At the moment I'm trying out some voodoo stuff, if nothing works I'll just create a new svn repository for topographica and use it as version control between hector and jupiter.
[update] I think I slightly progressed. Specifying "gcc all" as CC option got me a bit further:
make CC=gcc all
Now most of it (I'd like to believe) compiles but breaks once it gets to http.o:
CC http.o
In file included from http.c:1:
http.h:6:23: error: curl/curl.h: No such file or directory
http.h:7:23: error: curl/easy.h: No such file or directory
and a giant bunch of errors after.
[update 2] Fantastic! The solution was found here. In particular, I set a few environment variables:
NO_CURL=1 NO_EXPAT=1 NO_SVN_TESTS=1 NO_TCLTK=1 make CC=gcc all
Make completes without errors now all that's left is make install.....
NO_CURL=1 NO_EXPAT=1 NO_SVN_TESTS=1 NO_TCLTK=1 make CC=gcc all install
and ...
git --version
git version 1.7.6
feels good :)
No comments:
Post a Comment