系统自带的git无法下载:
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol
于是安装新版git(https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.15.0.tar.gz),make的过程中报错,显示系统的openssl有问题。
error OPENSSL_ALGORITHM_DEFINES no longer supported
重新安装openssl到/usr/local/
安装openssl到 /usr/local/openssl 目录,安装之后,编译;
./config shared zlib --prefix=/usr/local/openssl && make && make install
安装openssl就重新编译git,还报错(实际上上面写成--prefix=/usr/local应该就没问题了)
/usr/local/include/openssl/opensslconf.h error OPENSSL_ALGORITHM_DEFINES no longer supported
于是进去这个目录,将opensslconf.h做了个软连接到新安装的文件目录/usr/local/openssl/include/openssl/opensslconf.h
ln -s /usr/local/openssl/include/openssl/opensslconf.h /usr/local/include/openssl/opensslconf.h
接下来make的过程还遇到了perl的问题。在将git安装文件里面的Makefile,将里面的/usr/bin/perl修改成自己目录的perl就行了。
赞过:
赞 正在加载……
Bioinformatics