无法安装依赖锄头的宝石
我似乎无法在我的鞋子应用程序中安装 twitter gem。
当我尝试...
Shoes.setup do
gem 'twitter'
end
require 'twitter'
我得到
hoe requires RubyGems version >= 1.3.1
这是鞋子还是锄头中的错误吗? 关于解决方法有什么想法吗?
I can't seem to install the twitter gem in my shoes app.
When I try...
Shoes.setup do
gem 'twitter'
end
require 'twitter'
I get
hoe requires RubyGems version >= 1.3.1
Is this a bug in Shoes or Hoe? Any ideas on a work-around?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
或者
这还取决于您的 rubygems 现在使用的版本 - 有时您无法直接更新到 1.3.5; 您必须先更新到 1.3.1,然后才能升级到最新版本。
此外,通常建议第一次从源代码安装 rubygems,并使用上述命令进行更新。
or
It also depends on what version your rubygems is on right now - sometimes you can't update directly to 1.3.5; you have to update to 1.3.1 before upgrading to the latest one.
Furthermore, it is generally recommended to install rubygems from source the first time, and update it using the above commands.
//@John Topley:RubyGems可能不知道Shoes,但是Shoes有自己处理RubyGems的方式。 它将它们复制/安装到自己的目录中,有人告诉我这是因为 Shoes 包含自己的 Ruby 解释器
@ John Topley: RubyGems may not be aware of Shoes, but Shoes has its own way of handling RubyGems. It copies/installs them to its own directory, I've been told this is because Shoes includes its own Ruby interpreter
昨天我在使用 Rails 应用程序时遇到了这个问题。 解决方案是从源代码下载并安装 RubyGems 1.3.1。 我使用了命令:
wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
I had this exact problem yesterday with a Rails application. The solution was to download and install RubyGems 1.3.1 from source. I used the command:
wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz