我正在尝试在我的工作站中安装RVM。 但在我的工作网络中,通过代理来访问互联网。此代理最终会根据内部安全策略阻止某些URL。
我将向网络管理员请求有关被阻止的URL的请求,以便他们可以为一组工作站取消阻止它们。 这非常重要,因为政策需要不断更新。
我需要知道安装尝试下载和阻止的URL。
当我尝试安装RVM时,尝试下载档案。被阻止的人在我的电脑中损坏了。我可以看到输出中的消息抱怨校验和错误。
e.g。
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 :(得分: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
答案 1 :(得分: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'