복붙노트

[RUBY-ON-RAILS] 컬 인증서 오류 때 루비 1.9.2 설치 RVM을 사용하여

RUBY-ON-RAILS

컬 인증서 오류 때 루비 1.9.2 설치 RVM을 사용하여

루비 1.9.2를 다운로드하려고 할 때 RVM은 인증서 오류로 실행됩니다. 컬이 인증서 문제를 가지고있다하지만 난 어떻게 바이 패스 모르겠습니다 것 같습니다. 나는 아래에 정확한 오류 정보를 포함했다.

$ rvm install 1.9.2
Installing Ruby from source to: /Users/willdennis/.rvm/rubies/ruby-1.9.2-p180, this may take a while depending on your cpu(s)...

ruby-1.9.2-p180 - #fetching 
ERROR: Error running 'bunzip2 '/Users/willdennis/.rvm/archives/ruby-1.9.2-p180.tar.bz2'', please read /Users/willdennis/.rvm/log/ruby-1.9.2-p180/extract.log
ruby-1.9.2-p180 - #extracting ruby-1.9.2-p180 to /Users/willdennis/.rvm/src/ruby-1.9.2-p180
ruby-1.9.2-p180 - #extracted to /Users/willdennis/.rvm/src/ruby-1.9.2-p180
Fetching yaml-0.1.3.tar.gz to /Users/willdennis/.rvm/archives

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
ERROR: There was an error, please check /Users/willdennis/.rvm/log/ruby-1.9.2-p180/*.log. Next we'll try to fetch via http.
Trying http:// URL instead.

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
ERROR: There was an error, please check /Users/willdennis/.rvm/log/ruby-1.9.2-p180/*.log
Extracting yaml-0.1.3.tar.gz to /Users/willdennis/.rvm/src
ERROR: Error running 'tar zxf /Users/willdennis/.rvm/archives/yaml-0.1.3.tar.gz -C /Users/willdennis/.rvm/src --no-same-owner', please read /Users/willdennis/.rvm/log/ruby-1.9.2-p180/yaml/extract.log
/Users/willdennis/.rvm/scripts/functions/packages: line 55: cd: /Users/willdennis/.rvm/src/yaml-0.1.3: No such file or directory
Configuring yaml in /Users/willdennis/.rvm/src/yaml-0.1.3.
ERROR: Error running ' ./configure --prefix="/Users/willdennis/.rvm/usr"  ', please read /Users/willdennis/.rvm/log/ruby-1.9.2-p180/yaml/configure.log
Compiling yaml in /Users/willdennis/.rvm/src/yaml-0.1.3.
ERROR: Error running '/usr/bin/make ', please read /Users/willdennis/.rvm/log/ruby-1.9.2-p180/yaml/make.log
Installing yaml to /Users/willdennis/.rvm/usr
ERROR: Error running '/usr/bin/make install', please read /Users/willdennis/.rvm/log/ruby-1.9.2-p180/yaml/make.install.log
ruby-1.9.2-p180 - #configuring 
ERROR: Error running ' ./configure --prefix=/Users/willdennis/.rvm/rubies/ruby-1.9.2-p180 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/willdennis/.rvm/usr ', please read /Users/willdennis/.rvm/log/ruby-1.9.2-p180/configure.log
ERROR: There has been an error while running configure. Halting the installation.

어떻게 해결하거나이 오류를 방지 할 수 있습니까?

해결법

  1. ==============================

    1.(버전은 아마 중요하지 않습니다 있지만) 1.9.3로 업데이트하는 동안 경우 중 하나가 다른 사람이 건너 온다, 당신이 가지고 RVM의 버전을 확인하십시오. 웨인 rvm.beginrescueend.com에서 rvm.io.로 이동 한 것으로 보인다 컬의 응답이 정확 때문에 이전 사이트의 보안 인증서가 만료되었습니다.

    (버전은 아마 중요하지 않습니다 있지만) 1.9.3로 업데이트하는 동안 경우 중 하나가 다른 사람이 건너 온다, 당신이 가지고 RVM의 버전을 확인하십시오. 웨인 rvm.beginrescueend.com에서 rvm.io.로 이동 한 것으로 보인다 컬의 응답이 정확 때문에 이전 사이트의 보안 인증서가 만료되었습니다.

    새 사이트에서 업데이트 RVM이 문제를 해결하고 나를 앞으로 나아갈 수있었습니다.

    $ \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
    

    업데이트 : 같이, 명령 변경을 언급 @rodgerdpack 나는 위의 업데이트되었습니다. 일반적으로, 최신에 대한 https://rvm.io/를 참조하십시오.

  2. ==============================

    2.스크립트를 변경하지 않으 당신은 CERT는 번들에 "영원히"는 인증서를 추가하지 않으려면. 아주 좋은하고 빠른 해결 방법이 있습니다 :

    스크립트를 변경하지 않으 당신은 CERT는 번들에 "영원히"는 인증서를 추가하지 않으려면. 아주 좋은하고 빠른 해결 방법이 있습니다 :

    #to download the cert
    wget http://curl.haxx.se/ca/cacert.pem
    #to let curl use it for the next calls
    export CURL_CA_BUNDLE=~/cacert.pem
    

    그런 다음 스크립트를 실행합니다. 시스템에 다시 로그인 또는 환경 변수를 설정 해제 (이 인증서를 사용해서는 안 이후 스크립트 호출) 환경 변수를 재설정하려면 :

    export CURL_CA_BUNDLE=
    
  3. ==============================

    3.컬은 기본적으로 홈 디렉토리에있을 것입니다 .rvm / 스크립트 / 가져 오기에 호출됩니다.

    컬은 기본적으로 홈 디렉토리에있을 것입니다 .rvm / 스크립트 / 가져 오기에 호출됩니다.

    사용하여이 좋아하는 텍스트 편집기를 편집 : 예를 들어,

     nano ~/.rvm/scripts/fetch
    

    라인 (56) 및 (58) (물론, RVM의 다른 버전에 따라 달라질 수 있습니다)에서 시작하기 두 줄을 볼 수 있습니다

     fetch_command="curl ...
    

    간단하게, 곱슬 곱슬 한 후 -k 추가 저장하고 다시 시도하십시오.

  4. ==============================

    4.당신은 http://curl.haxx.se/ca/cacert.pem에서 CA 인증서를 다운로드하여 컬-CA-번들 new.crt 파일에 추가해야합니다.

    당신은 http://curl.haxx.se/ca/cacert.pem에서 CA 인증서를 다운로드하여 컬-CA-번들 new.crt 파일에 추가해야합니다.

    이 파일의 사용 위치를 확인하는 방법은 다음과 같습니다

       $ curl-config --ca
    
       /usr/share/curl/curl-ca-bundle.crt
    

    백업 당신의 컬-CA-bundle.crt 파일 :

    $ cp /usr/share/curl/curl-ca-bundle.crt /usr/share/curl/curl-ca-bundle.crt.old
    

    그럼 당신은 사용하여 두 파일을 연결하려면 :

    $ cat cacert.pem /usr/share/curl/curl-ca-bundle.crt >> curl-ca-bundle-new.crt
    
  5. ==============================

    5.아마도이 모든 복잡한 솔루션이 필요 이더니 이제 모든 먼저 RVM하고 문제가 해결 될 것이다 업그레이드하기 만하면됩니다 :

    아마도이 모든 복잡한 솔루션이 필요 이더니 이제 모든 먼저 RVM하고 문제가 해결 될 것이다 업그레이드하기 만하면됩니다 :

    $ rvm get stable
    $ rvm reload
    $ rvm install ruby-1.9.3-p194
    
  6. ==============================

    6.당신은 컬의 인증서 확인 (나는 안)을 비활성화하는 마음을하지 않는 경우 :

    당신은 컬의 인증서 확인 (나는 안)을 비활성화하는 마음을하지 않는 경우 :

    echo insecure > ~/.curlrc
    
  7. ==============================

    7.를 CentOS 5.6 (최종)에 나는 RVM 1.9.2을 설치에 문제가 있었다 오류 :

    를 CentOS 5.6 (최종)에 나는 RVM 1.9.2을 설치에 문제가 있었다 오류 :

    curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    More details here: http://curl.haxx.se/docs/sslcerts.html
    
    curl performs SSL certificate verification by default, using a "bundle"
     of Certificate Authority (CA) public keys (CA certs). The default
     bundle is named curl-ca-bundle.crt; you can specify an alternate file
     using the --cacert option.
    If this HTTPS server uses a certificate signed by a CA represented in
     the bundle, the certificate verification probably failed due to a
     problem with the certificate (it might be expired, or the name might
     not match the domain name in the URL).
    If you'd like to turn off curl's verification of the certificate, use
     the -k (or --insecure) option.
    ERROR: There was an error, please check /usr/local/rvm/log/ruby-1.9.2-p290/*.log. Next we'll try to fetch via http.
    Trying http:// URL instead.
    
    curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    More details here: http://curl.haxx.se/docs/sslcerts.html
    
    curl performs SSL certificate verification by default, using a "bundle"
     of Certificate Authority (CA) public keys (CA certs). The default
     bundle is named curl-ca-bundle.crt; you can specify an alternate file
     using the --cacert option.
    If this HTTPS server uses a certificate signed by a CA represented in
     the bundle, the certificate verification probably failed due to a
     problem with the certificate (it might be expired, or the name might
     not match the domain name in the URL).
    If you'd like to turn off curl's verification of the certificate, use
     the -k (or --insecure) option.
    ERROR: There was an error, please check /usr/local/rvm/log/ruby-1.9.2-p290/*.log
    ERROR: There has been an error while trying to fetch the source.  
    Halting the installation.
    ERROR: There has been an error fetching the ruby interpreter. Halting the installation.
    

    다음은 문제를 해결하기 위해 나를 도와 행동의 목록입니다

    $ curl-config --ca # show path to the certificate
    /usr/local/share/curl/curl-ca-bundle.crt
    $ cd /usr/local/share/curl/ # go to that path
    $ cp curl-ca-bundle.crt curl-ca-bundle.crt.bak # backup certificate
    $ curl http://curl.haxx.se/ca/cacert.pem -o curl-ca-bundle.crt # download new
    $ rvm install 1.9.2 # bingo it works
    

    BTW 컬 버전 ( '$ 컬 -V'수표) 컬 7.18.0입니다

  8. ==============================

    8.나는 루비 1.9.2-p290을 설치하기와 같은 문제를 건너 왔어요했다. 있는 컬을 실행하고 컬 인스턴스 내 시스템 (OS X 스노우 레오파드 (Snow Leopard))에 MAMP의 설치에서 오는 것을 실현 후, 나는는 / usr / 빈 / 컬의 시스템 기본값을 사용하는 내 PATH 변수를 재구성. 이 버전, 컬 7.19.7을 사용하여, 나는 RVM와 루비의 최신 버전을 설치 아무런 문제가 없었다.

    나는 루비 1.9.2-p290을 설치하기와 같은 문제를 건너 왔어요했다. 있는 컬을 실행하고 컬 인스턴스 내 시스템 (OS X 스노우 레오파드 (Snow Leopard))에 MAMP의 설치에서 오는 것을 실현 후, 나는는 / usr / 빈 / 컬의 시스템 기본값을 사용하는 내 PATH 변수를 재구성. 이 버전, 컬 7.19.7을 사용하여, 나는 RVM와 루비의 최신 버전을 설치 아무런 문제가 없었다.

  9. ==============================

    9.내가 문제 RVM을 사용하여 1.9.2을 설치했다, 여기 내 솔루션입니다 :

    내가 문제 RVM을 사용하여 1.9.2을 설치했다, 여기 내 솔루션입니다 :

    나는 여전히 파일을 가지고 오류를 발견하지 있지만 설치는 성공을했다

  10. ==============================

    10.당신에게 도로시 감사 - Win7에 환경에 대한 다음과 같은 약간의 수정과 나를 위해 일한이 조리법 :

    당신에게 도로시 감사 - Win7에 환경에 대한 다음과 같은 약간의 수정과 나를 위해 일한이 조리법 :

    이 문제와 다른 사람을 위해 -

    설치는 다운로드 (CURL 오류)에 시도 할 때 여전히 오류가 발생하지만, 추출물을 시도하여 다시 시작됩니다. 타르가 이미 src 폴더에 압축을 푼 때문에 추출 오류가 발생합니다. 3 단계에서 권한이 올바르게 설정되었는지 구성 YAML의 다음 단계는 오류없이 작동해야 설치가 더 문제없이 완료해야합니다. (만약 설치를 통해 Cygwin에서 / bash는, 당신은 'GCC'와 같은 C 컴파일러를 추가 설치 옵션 Cygwin에서 기본 코어에 명령 tput을 'ncurses를'()와 '메이크업'을 추가해야합니다.)

  11. ==============================

    11.

    $ sudo apt-get install curl
    
    $ curl -L https://get.rvm.io | bash -s stable --ruby   with ruby
    
    $ curl -L https://get.rvm.io | bash -s stable --rails   with rails
    
  12. from https://stackoverflow.com/questions/6414232/curl-certificate-error-when-using-rvm-to-install-ruby-1-9-2 by cc-by-sa and MIT license