Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby rvm安装1.9.3-head:错误排序:无效选项--V_Ruby_Rvm - Fatal编程技术网

Ruby rvm安装1.9.3-head:错误排序:无效选项--V

Ruby rvm安装1.9.3-head:错误排序:无效选项--V,ruby,rvm,Ruby,Rvm,正在尝试在OSX Lion 10.7.3上安装ruby 1.9.3。在安装过程中,我收到以下错误: ruby-1.9.3-head - #installing sort: invalid option -- V Try `sort --help' for more information. sed: 1: "/"name": / {s/^.*".*": ...": extra characters at the end of p command Retrieving rubygems-

正在尝试在OSX Lion 10.7.3上安装ruby 1.9.3。在安装过程中,我收到以下错误:

ruby-1.9.3-head - #installing 
sort: invalid option -- V
Try `sort --help' for more information.
sed: 1: "/"name": / {s/^.*".*":  ...": extra characters at the end of p command
Retrieving rubygems-
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
The requested url does not exist: 'http://production.cf.rubygems.org/rubygems/rubygems-.tgz'
Trying ftp:// URL instead.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:15 --:--:--     0
curl: (56) response reading failed 
There was an error, please check /Users/jakenathan/.rvm/log/ruby-1.9.3-head/*.log
There has been an error while trying to fetch the source. 
Halting the installation.
ruby-1.9.3-head - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-head - #importing default gemsets (/Users/jakenathan/.rvm/gemsets/)
Install of ruby-1.9.3-head - #complete 

我没有macbook来测试这个。但是根据对for git hook的讨论,mac中的sort命令缺少'-V'选项

我建议你:

  • 由于尚未提供正在运行的RVM版本,请更新至最新版本。还可以尝试更新git
  • 发布错误日志文件内容

  • 这是RVM中的一个错误,通过此提交已修复:

    更新至最新的开发代码,包括:

    rvm get head
    
    这个问题将得到解决