I'm trying to get git running in cygwin on a windows 7 machine

I have git unpacked and the directory git-1.7.1.1

when i run make install from within that directory, I get


    CC fast-import.o
In file included from builtin.h:4,
                 from fast-import.c:147:
git-compat-util.h:136:19: iconv.h: No such file or directory
git-compat-util.h:140:25: openssl/ssl.h: No such file or directory
git-compat-util.h:141:25: openssl/err.h: No such file or directory
In file included from builtin.h:6,
                 from fast-import.c:147:
cache.h:9:21: openssl/sha.h: No such file or directory
In file included from fast-import.c:156:
csum-file.h:10: error: parse error before "SHA_CTX"
csum-file.h:10: warning: no semicolon at end of struct or union
csum-file.h:15: error: 'crc32' redeclared as different kind of symbol
/usr/include/zlib.h:1285: error: previous declaration of 'crc32' was here
csum-file.h:15: error: 'crc32' redeclared as different kind of symbol
/usr/include/zlib.h:1285: error: previous declaration of 'crc32' was here
csum-file.h:17: error: parse error before '}' token
fast-import.c: In function `store_object':
fast-import.c:995: error: `SHA_CTX' undeclared (first use in this function)
fast-import.c:995: error: (Each undeclared identifier is reported only once
fast-import.c:995: error: for each function it appears in.)
fast-import.c:995: error: parse error before "c"
fast-import.c:1000: warning: implicit declaration of function `SHA1_Init'
fast-import.c:1000: error: `c' undeclared (first use in this function)
fast-import.c:1001: warning: implicit declaration of function `SHA1_Update'
fast-import.c:1003: warning: implicit declaration of function `SHA1_Final'
fast-import.c: At top level:
fast-import.c:1118: error: parse error before "SHA_CTX"
fast-import.c: In function `truncate_pack':
fast-import.c:1120: error: `to' undeclared (first use in this function)
fast-import.c:1126: error: dereferencing pointer to incomplete type
fast-import.c:1127: error: dereferencing pointer to incomplete type
fast-import.c:1128: error: dereferencing pointer to incomplete type
fast-import.c:1128: error: `ctx' undeclared (first use in this function)
fast-import.c: In function `stream_blob':
fast-import.c:1140: error: `SHA_CTX' undeclared (first use in this function)
fast-import.c:1140: error: parse error before "c"
fast-import.c:1154: error: `pack_file_ctx' undeclared (first use in this functio
n)
fast-import.c:1154: error: dereferencing pointer to incomplete type
fast-import.c:1160: error: `c' undeclared (first use in this function)
make: *** [fast-import.o] Error 1

I'm guessing that most of these errors are due to the iconv.h and openssl files which apparently are missing, but I can't figure out how I'm supposed to install those (if I am), or if there is some other way to get around this.

link|improve this question

0% accept rate
1  
The guys on #git are helpful, though it would be nice of you to post whatever solution you find here too. – pjz Aug 19 '10 at 13:57
Thanks pjz, will do. I haven't been much of a twitter user, but maybe this is the turning point. – user23020 Aug 19 '10 at 15:46
feedback

2 Answers

Apparently you can use the Cygwin setup.exe to add packages after you have installed cygwin.

By all appearances and the messages, it seems that you are re-installing Cygwin, but that doesn't appear to be the case, and your old cygwin just gets updated with the new package.

link|improve this answer
can you accept this answer so that it's not in the unanswered queue? – dsolimano May 21 at 18:32
feedback

I believe your self-answer is basically correct.

But I would guess that if git wasn't available in a prepackaged form, you would need to make sure that the openssl-devel package from cygwin was installed. The libraries are usually packaged as a binary distribution (e.g. openssl here) for programs to link against and separately with a set of files necessary to build software that uses the library, which in this case is openssl-devel.

I also needed to install gettext-devel and asciidoc to get a more modern version of git to build, and I may have other packages installed already that are required, since I'm not doing the build on a clean system. But you may have already have had those installed on your system, or they may have not ben required in 1.7.1.1.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.