2013-04-11 2 views
1

내 워크 스테이션에 RVM을 설치하려고합니다. 하지만 내 작품의 네트워크에서는 인터넷을 통해 프록시에 연결됩니다. 이 프록시는 결국 내부 보안 정책에 따라 일부 URL을 차단합니다.출력하는 데 필요한 RVM 다운로드 URL

네트워크 관리자에게 워크 스테이션 그룹에 대한 차단을 해제 할 수 있도록 차단중인 URL에 대한 요청을해야합니다. 이 정책은 지속적으로 업데이트해야하기 때문에 매우 중요합니다.

내가 필요한 것은 설치가 다운로드하려고 시도하고 차단되는 URL을 알아야한다는 것입니다.

RVM을 설치하려고하면 아카이브를 다운로드하려고 시도합니다. 차단 된 컴퓨터는 내 컴퓨터에서 손상되었습니다. 출력에 불법 체크섬 오류 메시지가 표시됩니다.

 
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.0.0-p0, this may take a while depending on your cpu(s)... 
ruby-2.0.0-p0 - #downloading ruby-2.0.0-p0, this may take a while depending on your connection... 

    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
    0  0 0  0 0  0  0  0 --:--:-- 0:00:06 --:--:--  0 
100 3198 100 3198 0  0 532  0 0:00:06 0:00:06 --:--:-- 532 

Downloaded archive checksum did not match, archive was removed! 
If you wish to continue with not matching download add '--verify-downloads 2' after the command. 

There has been an error fetching the ruby interpreter. Halting the installation. 

RVM 설치에서 다운로드 한 URL의 존재 여부는 어떻게 확인할 수 있습니까? 아마 나는 보석류 묶는 사람에게도 이것을 필요로 할 것입니다.

미리 감사드립니다.

+0

이것이 도움이 될지 모르겠다 : https://rvm.io/workflow/proxy/, 내가 받아들이면, 일단 RVM을 설치하면 거기에서 그 프록시를 사용할 것이다. – fmendez

+1

또한 대부분의 버전은 github :'https : // github.com/wayneeseguin/rvm/archive /'에서 가져옵니다. 설치 프로그램을 살펴보십시오. https://github.com/wayneeseguin/rvm/blob/master/binscripts/rvm-installer – fmendez

+0

프록시 설정은 문제가 아닙니다. 프록시가 이미 구성되었습니다. 내가 필요한 것은 프록시를 통과하고있는 것을 보는 것입니다. –

답변

2

실행 :

rvm get head    # make sure you use latest rvm code 
rvm cleanup archives  # clean up all downloaded files so far 
rvm install 2.0.0 --debug # install with debug - it will show the downloaded urls 
+0

설치하는 중 rvm 명령이 아직 구성되지 않았습니다. 나는/usr/local/rvm 경로에 명령을 배치하고 실행했다. 생성 된 결과는 현재 모든 URL을 보여줍니다! 문제가 해결 된 것 같습니다 ... –

+0

그 차이점은 무엇입니까? 왜 RVM 설치 명령 대신이 명령을 실행하면 URL이 표시됩니까? –

+0

Github에서 루비 언어의 바이너리가 나오지 않습니다. 그들은 http://ftp.ruby-lang.org/pub에서 왔습니다. –

0

그것은 출력의 많은을 제공하지만, 그런 다음 --debug --trace 스위치와 함께 설치하는 경우 당신은 RVM은이 요청하는 URL을 포함하고있다 모든 참조 :

$ rvm install 2.0.0 --debug --trace 
# ... 
# a whole boatload of output 
# such as... 
+++ 1365712695.744278786 /scripts/functions/utility : __rvm_ruby_package_file() 569 > rvm_ruby_package_file=/ruby-2.0.0-rc2.tar.bz2 
+++ 1365712695.856579187 /scripts/functions/utility : __rvm_calculate_remote_file() 583 > __remote_file=https://rvm.io/binaries/ubuntu/12.10/i386/ruby-2.0.0-rc2.tar.bz2 
+++ 1365712695.948514158 /scripts/functions/utility : __rvm_remote_server_path_single() 592 > [[ -z https://rvm.io/binaries/ubuntu/12.10/i386/ruby-2.0.0-rc2.tar.bz2 ]] 
+++ 1365712696.053688755 /scripts/functions/utility : __rvm_remote_server_path_single() 597 > file_exists_at_url https://rvm.io/binaries/ubuntu/12.10/i386/ruby-2.0.0-rc2.tar.bz2 
+++ 1365712696.171561756 /scripts/functions/utility : file_exists_at_url() 714 > [[ -n https://rvm.io/binaries/ubuntu/12.10/i386/ruby-2.0.0-rc2.tar.bz2 ]] 
+++ 1365712696.266908604 /scripts/functions/utility : file_exists_at_url() 716 > unset curl 
+++ 1365712696.482119274 /scripts/functions/utility : file_exists_at_url() 717 > curl -slkL --max-time 3 --head https://rvm.io/binaries/ubuntu/12.10/i386/ruby-2.0.0-rc2.tar.bz2 
+++ 1365712696.512878217 /scripts/functions/utility : file_exists_at_url() 718 > GREP_OPTIONS= 
+++ 1365712696.732889205 /scripts/functions/utility : file_exists_at_url() 718 > grep -E 'HTTP/[0-9\.]+ 200 OK' 
+0

설치 프로그램에서 마지막으로 다운로드 한 파일이이 플래그가있는 경우에도 출력에 나타나지 않는 것 같습니다 ... 루비 소스를 다운로드하려고하고 있는데 어디에서 왔는지 알 수 없습니다. 어쩌면 기스 웁에서 나올지도 모르지. –

+0

@VictorDolirio 바이너리를 설치하지 않는 한 Github에서 오는 가능성이 큽니다. 내 답변의 스 니펫에서 볼 수 있듯이 바이너리는 http://rvm.io에서 다운로드됩니다. –