"openssl/ssl.h:没有这样的文件或目录"安装Git期间 [英] "openssl/ssl.h: No such file or directory" during Installation of Git

查看:258
本文介绍了"openssl/ssl.h:没有这样的文件或目录"安装Git期间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试根据正在安装Git 博客,但失败并显示以下错误

Trying to install git on the Unix and Linux machines based on the instructions on Installing Git blog, and it is failing with the below error

make prefix=/usr/local all
GIT_VERSION = 1.8.3.4
    * new build flags
    CC credential-store.o
In file included from cache.h:4,
                 from credential-store.c:1:
git-compat-util.h:221:25: warning: openssl/ssl.h: No such file or directory
git-compat-util.h:222:25: warning: openssl/err.h: No such file or directory
In file included from credential-store.c:1:
cache.h:11:21: warning: openssl/sha.h: No such file or directory
cache.h:19:18: warning: zlib.h: No such file or directory
In file included from credential-store.c:1:
cache.h:21: syntax error before "z_stream"
cache.h:21: warning: no semicolon at end of struct or union
cache.h:28: syntax error before '}' token
cache.h:28: warning: type defaults to `int' in declaration of `git_zstream'
cache.h:28: warning: data definition has no type or storage class
cache.h:30: syntax error before '*' token
cache.h:31: syntax error before '*' token
cache.h:32: syntax error before '*' token
cache.h:33: syntax error before '*' token
cache.h:35: syntax error before '*' token
cache.h:36: syntax error before '*' token
cache.h:37: syntax error before '*' token
cache.h:38: syntax error before '*' token
cache.h:39: syntax error before '*' token
cache.h:40: syntax error before '*' token
cache.h:41: syntax error before '*' token
cache.h:42: syntax error before '*' token
cache.h:769: syntax error before '*' token
make: *** [credential-store.o] Error 1

我知道这是因为openssl缺少库,但是我无法获得这些库.

I know this is because of the missing libraries for openssl, but I am unable to get these libraries.

我的机器上没有yum/apt-get来按照建议运行以下命令:

I do not have yum/apt-get on my machines to run the below commands as suggested:

$ yum install curl-devel expat-devel gettext-devel \
  openssl-devel zlib-devel

$ apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
  libz-dev libssl-dev

我如何在这些计算机上获取这些库.这些机器无法访问互联网,如果需要,我可以做一个scp.有任何建议.

What do I do get these libraries on these machines. These machines do not have internet access, I can do a scp if required. Any suggestions.

推荐答案

这个答案对我来说很好

https://stackoverflow.com/a/3016986/5837509

只需sudo apt-get install libssl-dev

这篇关于"openssl/ssl.h:没有这样的文件或目录"安装Git期间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆