rubyinstaller devkit安装错误rake aborted

时间:2016-05-20 11:58:24

标签: ruby-on-rails ruby

我正在尝试安装rubyinstaller。之后

git clone https://github.com/oneclick/rubyinstaller.git

并进入目录rubinstaller并输入命令

rake devkit sfx=1

我收到消息

/home/leon/rubyinstaller/sandbox/extract_utils/7za.exe" e -y 
"downloads/7z920.msi" -o"sandbox/extract_utils" "_7z.sfx" > NUL 2>&1
rake aborted!
Command failed with status (126): ["/home/leon/rubyinstaller/sandbox/extract_...]
/home/leon/rubyinstaller/rake/extracttask.rb:72:in `seven_zip_get'
/home/leon/rubyinstaller/recipes/extract_utils/extract_utils.rake:45:in `block (2 levels) in <top (required)>'
/home/leon/.rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in `eval'
/home/leon/.rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => devkit => devkit:build => devkit:msys => devkit:msys:extract => extract_utils => extract_utils:extract_utils
(See full trace by running task with --trace)

任何想法? 我正在使用UBUNTU 17.3

1 个答案:

答案 0 :(得分:0)

如果你正在使用类似unix的系统,比如Ubuntu或OSX,你肯定应该看一下RVM或Rbenv。就个人而言,我更喜欢安装了Ruby Build插件的Rbenv。

请查看此链接以安装Rbenv:https://github.com/rbenv/rbenv#installation

确保已安装必要的依赖项:https://github.com/rbenv/ruby-build/wiki#suggested-build-environment

然后将Ruby Build安装为Rbenv插件:https://github.com/rbenv/ruby-build#installing-as-an-rbenv-plugin-recommended

之后,您可以轻松安装所需的版本:https://github.com/rbenv/ruby-build#using-rbenv-install-with-rbenv