用的centos6.4中自带的git,版本为1.7.1,配置好github的sshkey后,clone下来的项目没法提交,提示:git
网上查阅后,参照http://stackoverflow.com/questions/8329485/git-clone-fatal-unable-to-find-remote-helper-for-https发现是因为安装时少安装cur-devell模块的缘由,须要从新编译安装。github
因而安装curl-devel:centos
$ yum install curl-devel $ # cd to wherever the source for git is $ cd /usr/local/src/git-1.7.9 $ ./configure $ make $ make install
但make的时候发生警告:ssh
libxxx至关于只有动态库的部分 只能被编译好的程序运行的时候连接,但缺乏部分头文件的源代码,因此不能编译。若是是编译为动态库,须要libxxx-devel里边的头文件,若是要编 译为静态的则须要里边的头文件和c文件都须要,因此libxxx-devel对要编译一个程序的时候是必不可少的。看考http://stackoverflow.com/questions/2358801/what-are-devel-packages curl
去/usr/bin目录和/usr/local/bin等常见目录寻找后均没发现,使用locate命令寻找:url
[money@money study]$ locate curl-config /opt/vagrant/embedded/bin/curl-config /opt/vagrant/embedded/share/man/man1/curl-config.1
才发现原来我这个版本的是在opt目录下,因而在/usr/bin目录下作了个软连接,而后编译就经过了。spa
再次执行最上边的安装步骤,安装成功而且上传没有出现问题。.net