redhat6安装git出现的问题,redhat6安装git


redhat6编译安装git错误imap-send.c: 在函数‘ssl_socket_connect’中: imap-send.c:291: 警告:不建议使用‘TLSv1_method’(声明于 /usr/local/include/openssl/ssl.h:1612) imap-send.c: 在函数‘cram’中: imap-send.c:865: 错误:‘hmac’的存储大小未知 imap-send.c:880....????????

 

git安装步骤::

[root@ff Downloads]# wget https://www.kernel.org/pub/software/scm/git/git-2.3.5.tar.gz

[root@ff Downloads]# tag zxf git-2.3.5.tar.gz

[root@ff Downloads]# cd git-2.3.5 [root@skd git-2.3.5]# ./configure

[root@ff git-2.3.5]# make

[root@ff git-2.3.5]# make install

[root@ff git-2.3.5]# git --version

 

原因是由于系统里安装了多版本的openssl ,删除/usr/local/include/openssl目录下的所有文件即可,make时就不会出错了

相关内容