通过TarBall安装Git时Makefile发生致命错误(无此文件或目录)

时间:2018-09-13 21:34:44

标签: git makefile

我正在尝试通过tarball安装Git,但遇到了一些丢失的文件错误。我该如何解决?

/bin/sh: 1: curl-config: not found
GIT_VERSION = 1.7.10.1
/bin/sh: 1: curl-config: not found
    * new build flags or prefix
    CC daemon.o
In file included from cache.h:4:0,
                 from daemon.c:1:
git-compat-util.h:168:25: fatal error: openssl/ssl.h: No such file or directory
compilation terminated.
Makefile:2132: recipe for target 'daemon.o' failed
make: *** [daemon.o] Error 1
nathan@tibbitts-family:~/src/git-git-9dfad1a$ make install
/bin/sh: 1: curl-config: not found
    CC daemon.o
In file included from cache.h:4:0,
                 from daemon.c:1:
git-compat-util.h:168:25: fatal error: openssl/ssl.h: No such file or directory
compilation terminated.
Makefile:2132: recipe for target 'daemon.o' failed
make: *** [daemon.o] Error 1

1 个答案:

答案 0 :(得分:0)

要从源代码进行编译,您需要多个external dependencies。在您的情况下,您需要zone "domain.com" { type master; file "/etc/bind/zones/domain.com";}; libcurl的开发文件。像openssllibcurl-devlibcurl-openssl-dev之类的东西。