{"thread":{"id":"14740","subject":"Error in compile Git 1.6.0.rc1","startedAt":"2008-07-29T17:50:31Z","lastAt":"2008-07-29T17:52:57Z","messageCount":2,"participants":["mike zheng","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"85495","messageId":"5c9cd53b0807291050i752f91b9yc1da4afb7096ab61@mail.gmail.com","threadId":"14740","inReplyTo":null,"subject":"Error in compile Git 1.6.0.rc1","fromName":"mike zheng","fromEmail":"mail4mz@gmail.com","sentAt":"2008-07-29T17:50:31Z","receivedAt":"2008-07-29T17:50:31Z","isPatch":false,"sender":{"key":"mail4mz@gmail.com","avatar":null},"body":"Hello,\n\nI download the git-1.6.0.rc.tar.gz from\nhttp://www.kernel.org/pub/software/scm/git/. When I try to compile it\non RH linux, I have following errors. Any idea?\n\nThanks,\n\nMike\n\n/localdisk/work/git-1.6.0.rc1-> make\n/bin/sh: curl-config: command not found\nGIT_VERSION = 1.6.0.rc1\n/bin/sh: curl-config: command not found\n    * new build flags or prefix\n    CC fast-import.o\n    CC abspath.o\n    CC alias.o\n    CC alloc.o\n    CC archive.o\n    CC archive-tar.o\n    CC archive-zip.o\n    CC attr.o\n    CC base85.o\n    CC blob.o\n    CC branch.o\n    CC bundle.o\n    CC cache-tree.o\n    CC color.o\n    CC combine-diff.o\n    CC commit.o\n    CC config.o\n    CC connect.o\n    CC convert.o\n    CC copy.o\n    CC csum-file.o\n    CC ctype.o\n    CC date.o\n    CC decorate.o\n    CC diffcore-break.o\n    CC diffcore-delta.o\n    CC diffcore-order.o\n    CC diffcore-pickaxe.o\n    CC diffcore-rename.o\n    CC diff-delta.o\n    CC diff-no-index.o\n    CC diff-lib.o\n    CC diff.o\n    CC dir.o\n    CC editor.o\n    CC entry.o\n    CC environment.o\n    CC exec_cmd.o\n    CC fsck.o\n    CC graph.o\n    CC grep.o\n    CC hash.o\n    GEN common-cmds.h\n    CC help.o\n    CC ident.o\n    CC interpolate.o\n    CC list-objects.o\n    CC ll-merge.o\n    CC lockfile.o\n    CC log-tree.o\n    CC mailmap.o\n    CC match-trees.o\n    CC merge-file.o\n    CC name-hash.o\n    CC object.o\n    CC pack-check.o\n    CC pack-refs.o\n    CC pack-revindex.o\n    CC pack-write.o\n    CC pager.o\n    CC parse-options.o\n    CC patch-delta.o\n    CC patch-ids.o\n    CC string-list.o\n    CC path.o\n    CC pkt-line.o\n    CC pretty.o\n    CC progress.o\n    CC quote.o\n    CC reachable.o\n    CC read-cache.o\n    CC reflog-walk.o\n    CC refs.o\n    CC remote.o\n    CC rerere.o\n    CC revision.o\n    CC run-command.o\n    CC server-info.o\n    CC setup.o\n    CC sha1_file.o\n    CC sha1-lookup.o\n    CC sha1_name.o\n    CC shallow.o\n    CC sideband.o\n    CC strbuf.o\n    CC symlinks.o\n    CC tag.o\n    CC trace.o\n    CC transport.o\nIn file included from transport.c:5:\nhttp.h:6:23: curl/curl.h: No such file or directory\nhttp.h:7:23: curl/easy.h: No such file or directory\nIn file included from transport.c:5:\nhttp.h:42: error: syntax error before \"CURLcode\"\nhttp.h:42: warning: no semicolon at end of struct or union\nhttp.h:44: error: syntax error before '}' token\nhttp.h:48: error: syntax error before \"CURL\"\nhttp.h:48: warning: no semicolon at end of struct or union\nhttp.h:51: error: syntax error before \"curl_result\"\nhttp.h:51: warning: type defaults to `int' in declaration of `curl_result'\nhttp.h:51: warning: data definition has no type or storage class\nhttp.h:58: error: syntax error before '}' token\nhttp.h:90: error: `CURL_ERROR_SIZE' undeclared here (not in a function)\nhttp.h: In function `missing__target':\nhttp.h:95: error: `CURLE_FILE_COULDNT_READ_FILE' undeclared (first use\nin this function)\nhttp.h:95: error: (Each undeclared identifier is reported only once\nhttp.h:95: error: for each function it appears in.)\nhttp.h:97: error: `CURLE_HTTP_NOT_FOUND' undeclared (first use in this function)\nhttp.h:99: error: `CURLE_FTP_COULDNT_RETR_FILE' undeclared (first use\nin this function)\ntransport.c: In function `get_refs_via_curl':\ntransport.c:438: error: storage size of 'results' isn't known\ntransport.c:456: error: dereferencing pointer to incomplete type\ntransport.c:457: warning: implicit declaration of function `curl_easy_setopt'\ntransport.c:457: error: dereferencing pointer to incomplete type\ntransport.c:457: error: `CURLOPT_FILE' undeclared (first use in this function)\ntransport.c:458: error: dereferencing pointer to incomplete type\ntransport.c:458: error: `CURLOPT_WRITEFUNCTION' undeclared (first use\nin this function)\ntransport.c:459: error: dereferencing pointer to incomplete type\ntransport.c:459: error: `CURLOPT_URL' undeclared (first use in this function)\ntransport.c:460: error: dereferencing pointer to incomplete type\ntransport.c:460: error: `CURLOPT_HTTPHEADER' undeclared (first use in\nthis function)\ntransport.c:464: error: `CURLE_OK' undeclared (first use in this function)\ntransport.c:438: warning: unused variable `results'\nmake: *** [transport.o] Error 1\n"},{"id":"85496","messageId":"7viquofuh2.fsf@gitster.siamese.dyndns.org","threadId":"14740","inReplyTo":"5c9cd53b0807291050i752f91b9yc1da4afb7096ab61@mail.gmail.com","subject":"Re: Error in compile Git 1.6.0.rc1","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-07-29T17:52:57Z","receivedAt":"2008-07-29T17:52:57Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"mike zheng\" <mail4mz@gmail.com> writes:\n\n> Hello,\n>\n> I download the git-1.6.0.rc.tar.gz from\n> http://www.kernel.org/pub/software/scm/git/. When I try to compile it\n> on RH linux, I have following errors. Any idea?\n>\n> Thanks,\n>\n> Mike\n>\n> /localdisk/work/git-1.6.0.rc1-> make\n> /bin/sh: curl-config: command not found\n\nSure.  You are missing curl-config.\n\nLook for \"Git is reasonably self-sufficient, but\" in the INSTALL document\nsupplied in the tarball.\n"}]}