CentOSã§gitã®proxyè¶ãã«ããã
githubãªããããgitã®ã¬ãã¸ããªãè½ã¨ããã¨ããã¨ï¼https://ã¨git://ãããã¾ããï¼httpã®ããã¯ã·ããç«ã£ã¦ããªãããã«https://ã§è½ã¨ããã¨ãã¦ãã¨ã©ã¼ã«ãªãã¾ããï¼
> git clone https://github.com/imatix/zguide.git
Cloning into zguide...
fatal: Unable to find remote helper for 'https'
> setenv https_proxy http://proxy
> git clone https://github.com/imatix/zguide.git
Cloning into zguide...
fatal: Unable to find remote helper for 'https'
ã©ããããã¯ã·ä»¥åã®åé¡ã®æ°ãããã®ã§èª¿ã¹ãã¨ï¼INSTALLãã¡ã¤ã«ã«ãããªè¨è¿°ãï¼
- "libcurl" library is used by git-http-fetch and git-fetch. You
might also want the "curl" executable for debugging purposes.
If you do not use http:// or https:// repositories, you do not
have to have them (use NO_CURL).
éã«è¨ãã¨ï¼httpãhttpsã使ãæã¯ï¼libcurlãå¿ è¦ã£ã½ãï¼ãªã®ã§ï¼curlãå ¥ãã¦ããï¼ãã®curlã®libcurlããªã³ã¯ããgitãä½ããã¨ã«ãã¾ãï¼
> wget http://curl.haxx.se/download/curl-7.21.7.tar.bz2
> tar xvf curl-7.21.7.tar.bz2
> cd curl-7.21.7
> ./configure --prefix=/usr/local
configure: Configured to build curl/libcurl:
ï¼é©å½ã«æç²ï¼
curl version: 7.21.7
Host setup: i686-pc-linux-gnu
SSL support: enabled (OpenSSL)
Build libcurl: Shared=yes, Static=yes
Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS POP3 POP3S RTSP SMTP SMTPS TELNET TFTP
> make -j 2
> su
# make install
exit
> cd
> wget http://kernel.org/pub/software/scm/git/git-1.7.6.tar.bz2
> tar xvf git-1.7.6.tar.bz2
> cd git-1.7.6
> env LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --prefix=/usr/local
> make -j 2
CC http.o
In file included from http.c:1:
http.h:6:23: error: curl/curl.h: No such file or directory
http.h:7:23: error: curl/easy.h: No such file or directory
In file included from http.c:1:
http.h:46: error: expected specifier-qualifier-list before âCURLcodeâ
http.h:51: error: expected specifier-qualifier-list before âCURLâ
http.h:97: error: âCURL_ERROR_SIZEâ undeclared here (not in a function)
ãã£ã¨ï¼ï¼ï¼ç°å¢å¤æ°ãä¼æ¬ãã¦ããªãã®ãï¼ï¼ï¼ã§ã¯æ¹ãã¦
> setenv CPPFLAGS -I/usr/local/include
> setenv LDFLAGS -L/usr/local/lib
> ./configure --prefix=/usr/local
> make -j 2
> su
# make install
# exit
> cd
> git clone https://github.com/imatix/zguide.git
Cloning into zguide...
remote: Counting objects: 11350, done.
remote: Compressing objects: 100% (2402/2402), done.
remote: Total 11350 (delta 8968), reused 11279 (delta 8910)
Receiving objects: 100% (11350/11350), 7.76 MiB | 1.86 MiB/s, done.
Resolving deltas: 100% (8968/8968), done.
OK!!!
ã¡ãªã¿ã«ï¼ç°å¢å¤æ°https_proxyã®è¨å®ãå¿ããã¨æ¬¡ã®ããã«ãªãã¾ãï¼
> git clone https://github.com/imatix/zguide.git
Cloning into zguide...
error: Couldn't resolve proxy 'proxy' while accessing https://github.com/imatix/zguide.git/info/refsfatal: HTTP request failed
> setenv https_proxy http://proxy
> git clone https://github.com/imatix/zguide.git
Cloning into zguide...
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/imatix/zguide.git/info/refsfatal: HTTP request failed
ããï¼SSL証ææ¸é¢ä¿ã®ã¨ã©ã¼ãï¼ãªãã§ãã·ã³ã«ãã£ã¦æåãå¤ãããã ããï¼ä»æ¹ããªãã®ã§ï¼
> setenv GIT_SSL_NO_VERIFY true
> git clone https://github.com/imatix/zguide.git
Cloning into zguide...
remote: Counting objects: 11350, done.
remote: Compressing objects: 100% (2402/2402), done.
remote: Total 11350 (delta 8968), reused 11279 (delta 8910)
Receiving objects: 100% (11350/11350), 7.76 MiB | 2.29 MiB/s, done.
Resolving deltas: 100% (8968/8968), done.
OK!!!!!
CURLOPT_SSL_VERIFYPEERã¨ãã§ãã§ããããªæ°ãããã®ã§ããï¼ä½ãã¿ã¼ã³ã試ãã¦ãã¾ããããªãã£ãã®ã§è«¦ãã¾ããï¼