NetBeans 6.9 Ruby Gems 管理器
我正在将 NetBeans 6.9 用于我的 Ruby On Rails 应用程序。我对红宝石宝石管理器有疑问。我无法访问新宝石。错误是:宝石获取失败。以下是 gem 工具的输出: 错误:执行 gem 时... (Errno::ENOENT)。 Nu 这样的文件或目录。 C:/Users/{用户名}。
当我尝试从控制台安装 gems 时,我遇到了同样的问题(cyrylics 用户名)。通过像这样更改 gem.bat 解决了这个问题:
@ECHO OFF
SET _HOMEDRIVE=%HOMEDRIVE%
SET _HOMEPATH=%HOMEPATH%
SET HOMEDRIVE=C:
SET HOMEPATH=/WebServers/usr/local/Ruby/bin/
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"ruby.exe" "C:/WebServers/usr/local/Ruby/bin/gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"ruby.exe" "%~dpn0" %*
SET HOMEDRIVE=%_HOMEDRIVE%
SET HOMEPATH=%_HOMEPATH%@ECHO OFF
SET _HOMEDRIVE=%HOMEDRIVE%
SET _HOMEPATH=%HOMEPATH%
SET HOMEDRIVE=C:
SET HOMEPATH=/WebServers/usr/local/Ruby/bin/
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"ruby.exe" "C:/WebServers/usr/local/Ruby/bin/gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"ruby.exe" "%~dpn0" %*
SET HOMEDRIVE=%_HOMEDRIVE%
SET HOMEPATH=%_HOMEPATH%
但为什么这个问题仍然出现在IDE中......
I am using NetBeans 6.9 for my Ruby On Rails Applications. I have a problem with ruby gem manager. I can't access to new gem. The error is: Gems fetching failed. Follows output of the gem tool:
ERROR: while executing gem... (Errno::ENOENT).
Nu such file or directory. C:/Users/{username}.
I got the same problem(cyrylics user name) when I try to install gems from console. And this problem was solved by changing gem.bat like this:
@ECHO OFF
SET _HOMEDRIVE=%HOMEDRIVE%
SET _HOMEPATH=%HOMEPATH%
SET HOMEDRIVE=C:
SET HOMEPATH=/WebServers/usr/local/Ruby/bin/
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"ruby.exe" "C:/WebServers/usr/local/Ruby/bin/gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"ruby.exe" "%~dpn0" %*
SET HOMEDRIVE=%_HOMEDRIVE%
SET HOMEPATH=%_HOMEPATH%@ECHO OFF
SET _HOMEDRIVE=%HOMEDRIVE%
SET _HOMEPATH=%HOMEPATH%
SET HOMEDRIVE=C:
SET HOMEPATH=/WebServers/usr/local/Ruby/bin/
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"ruby.exe" "C:/WebServers/usr/local/Ruby/bin/gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"ruby.exe" "%~dpn0" %*
SET HOMEDRIVE=%_HOMEDRIVE%
SET HOMEPATH=%_HOMEPATH%
But why this problem stay in IDE...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论