github慢的解决方案
1) 从web界面下载zip文件,虽然慢,但是可以不被中断2) 根据下面这个文件给unzip 打补丁,否则解压会出现 file name too long
https://www.olimex.com/forum/index.php?topic=812.105
Unzip is not good, it is bugged, it fails to extract symbolic links from github zips (and other big ones).
Usually you get an error "file name too long" or something like that, at the end of the progress list.
You can fix it if you are in that mood :
download the source of unzip60
http://sourceforge.net/projects/infozip/files/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz/download
then apply this patch on it:
Code:
--- ./process.c
+++ ./process.c
@@ -1751,6 +1751,12 @@
= (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11);
#endif
+#ifdef SYMLINKS
+ /* Initialize the symlink flag, may be set by the platform-specific
+ mapattr function.*/
+ G.pInfo->symlink = 0;
+#endif
+
return PK_COOL;
} /* end function process_cdir_file_hdr() */
then build it and install it.
最近都是挂vpn clone 感谢楼主提供patch.
BTW: 可以用7z解压zip文件, 就不会出现file name too long问题了 beiyuuyieb 发表于 2013-9-10 20:18 static/image/common/back.gif
感谢楼主提供patch.
BTW: 可以用7z解压zip文件, 就不会出现file name too long问题了 ...
这个简单好用,谢谢! 我也是下载zip,但是不知道如何make这玩意儿,算了,下载tar.gz更简单
页:
[1]