无法安装依赖锄头的宝石

发布于 2024-07-27 20:50:55 字数 254 浏览 5 评论 0原文

我似乎无法在我的鞋子应用程序中安装 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

染柒℉ 2024-08-03 20:50:56
sudo gem install rubygems-update # install the latest (1.3.5 at the moment)

或者

sudo gem install rubygems-update -v 1.3.1 # or specifically 1.3.1

这还取决于您的 ruby​​gems 现在使用的版本 - 有时您无法直接更新到 1.3.5; 您必须先更新到 1.3.1,然后才能升级到最新版本。

此外,通常建议第一次从源代码安装 ruby​​gems,并使用上述命令进行更新。

sudo gem install rubygems-update # install the latest (1.3.5 at the moment)

or

sudo gem install rubygems-update -v 1.3.1 # or specifically 1.3.1

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.

破晓 2024-08-03 20:50:56

//@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

平安喜乐 2024-08-03 20:50:56

昨天我在使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文