混帐击给sh.exe:红宝石:命令未找到 [英] Git Bash giving sh.exe: ruby: command not found
问题描述
我在Windows Vista商业版使用Git猛砸。我试图安装管理平台。基本上,第4步,我需要我安装打捆作为依赖安装(的 http://www.redmine.org/projects/redmine/wiki/RedmineInstall )。我从 https://rubygems.org/pages/download 下载rubygems-2.2.2.zip。然后,我解压缩文件的文件夹我的桌面上。
I am using Git Bash on Windows Vista Business. I am trying to install Redmine. Basically on step 4, I need to get RubyGem installed before I install the bundler as part of the dependency install (http://www.redmine.org/projects/redmine/wiki/RedmineInstall). I downloaded rubygems-2.2.2.zip from https://rubygems.org/pages/download. Then I unzipped the file a folder on my desktop.
在Git猛砸,我输入红宝石的setup.rb
,我得到 sh.exe:红宝石:命令未找到
。它说的是有关 PATH
环境?如果是这样,我怎么有这么了Git的Bash会看到安装文件并运行它?
In Git Bash, I typed ruby setup.rb
, I get sh.exe: ruby: command not found
. Is it something related to the PATH
environment? If so, how do I include it so that Git Bash will see the setup file and run it?
红宝石1.9.3- P545已安装。
Ruby 1.9.3- p545 is already installed.
在此先感谢。
推荐答案
如果您已经安装了红宝石,你必须包括正确的路径。
If you already installed ruby, you have to include correct path.
右键单击我的电脑
,点击属性
,进入高级系统设置
左侧导航,点击环境变量...
按钮,进入系统变量
下面,选择路径
,点击修改
和路径进入的开头: C:\\ Ruby200 \\斌;
(请注意,这里你应该指出红宝石可执行文件的路径如果你使用Ruby的Windows安装程序,然后在上面提到的路径是正确的安装红宝石)
Right click My Computer
, click Properties
, go to Advanced System Settings
left navigation, click on Environment Variables...
button, go to System Variables
below, select Path
, click Edit
and in the beginning of the path enter: C:\Ruby200\bin;
(Please note that in here you should indicate the ruby executable path. In case you installed ruby using Ruby installer for windows then the above mentioned path is correct).
这篇关于混帐击给sh.exe:红宝石:命令未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!