标签:配置文件 使用 htm 需要 没有 依赖包 Fix cal not
linux-centos系统下简单/源码编译安装githttps://blog.csdn.net/yuexiahunone/article/details/78647565Book:https://git-scm.com/book/zh/v2
https://mirrors.edge.kernel.org/pub/software/scm/gitgit-2.9.5.tar.xz
yum grouplist#如果没安装‘Development Tools‘yum groupinstall ‘Development Tools‘#安装依赖包yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMakerrpm -e git --nodeps
tar -zxvf git-2.9.5.tar.gz#(在下载目录下解压就可以了,然后安装编译到其他目录)cd git-2.9.5#make prefix=/usr/local/git install或者使用另一种方式,当前目录下./configure prefix=/usr/local/git#(配置文件)make && make install#(编译安装)
#编译有可能没有成功,请通过错误提示自行百度
cd /usr/local/git/bingit version
vi /etc/profile#添加如下export GIT_HOME=/usr/local/gitexport PATH=$GIT_HOME/bin:$PATH#重读配置文件. /etc/profile
1、git-compat-util.h:280:25: fatal error: openssl/ssl.h: No such file or directoryhttps://www.cnblogs.com/-colin/p/7160761.htmlhttps://jingyan.baidu.com/article/e9fb46e16698687521f766ec.htmlyum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker2、需要把git安装包下的命令加到环境变量中,远程git push,git clone时会用到
标签:配置文件 使用 htm 需要 没有 依赖包 Fix cal not
原文地址:https://www.cnblogs.com/linux777/p/9372744.html