当前位置:   article > 正文

解决git clone时报错:The requested URL returned error: 401 Unauthorized while accessing_error: the requested url returned error: 401 unaut

error: the requested url returned error: 401 unauthorized while accessing

http://www.netfoucs.com/article/qq280948982/99039.html

版本问题,最直接的解决办法就是重新编辑安装git吧:

1. 下载:# wget -O git.zip https://github.com/git/git/archive/master.zip

2. 解压:# unzip git.zip

3. 进入git目录:# cd git-master

4. 编译安装:

# autoconf

# ./configure --prefix=/usr/local

# make && make install

编译git时报错: zlib.h: No such file or directory

http://blog.csdn.net/konga/article/details/41383543

In file included from credential-store.c:1:
cache.h:21:18: warning: zlib.h: No such file or directory
In file included from credential-store.c:1:
cache.h:23: error: expected specifier-qualifier-list before ‘z_stream’

make: *** [credential-store.o] Error 1


============================================================


缺少 zlib的头文件, 开发包没装,

yum install zlib (系统默认已经装上)

yum install zlib-devel 

解决


5. 最后别忘了删掉旧的git,并把新版本的git建立软链接到/usr/bin/git

# rm /usr/bin/git

# ln -s /usr/local/bin/git /usr/bin/git


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/寸_铁/article/detail/974097
推荐阅读
相关标签
  

闽ICP备14008679号