宝石什么都不做

发布于 2024-12-14 12:27:39 字数 557 浏览 3 评论 0原文

我想我把事情搞砸了一点:

我想玩一下 Ruby on Rails。我一年前安装了它,但从未使用过。到现在为止。

由于遇到一些问题,我想从全新安装开始。我卸载了 Rails gems(3.0.7 和 3.1.1),并按照本指南进行全新安装:http://eddorre.com/posts/rails-ultimate-install-guide-on-os-x-snow-leopard-using-rvm-homebrew-and-passenger

但现在 gem什么都不做 - 当我在终端中输入 gem install bundle 时,光标直接进入下一行。即使 gem listgem --help 也不起作用。我没有收到任何错误消息。

我不知道发生了什么。有些想法?

I guess I messed things up a little bit:

I wanted to play around with Ruby on Rails a little bit. I installed it a year ago but never used it. Till now.

Because of some problem a ran into I wanted to start from beginning with a fresh install. I uninstalled the Rails gems (3.0.7 and 3.1.1) and followed this guide for a fresh install: http://eddorre.com/posts/rails-ultimate-install-guide-on-os-x-snow-leopard-using-rvm-homebrew-and-passenger

But now gem does nothing - when I type gem install bundle in my terminal the cursor goes straight to the next line. Even gem list or gem --help doesn't work. I get no error messages.

I have no clue what happened. Some thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

旧情别恋 2024-12-21 12:27:39

我将完全重新安装 rvm:

rvm implode

并重新开始:

bash <<(curl -s https://rvm.beginrescueend.com/install/rvm)< /code>

如果您尝试恢复现有环境,rvm 的一些选项可能很有用:

调试 - 显示常见问题的信息以及其他信息

升级 - 允许您从一个版本的 ruby​​ 升级到另一个版本,
包括
半自动迁移您的宝石集。

清理 - 允许您删除过时的源文件夹/存档和
其他杂项
与rvm相关的数据。 Repair - 允许您修复环境的某些部分,例如包装器、环境文件和
和类似的文件(例如一般维护)。

I'll do a full reinstall of rvm:

rvm implode

and start again:

bash <<(curl -s https://rvm.beginrescueend.com/install/rvm)

If you try to recover the existing environment, there are some options to rvm that can be useful:

debug - show info plus additional information for common issues

upgrade - Lets you upgrade from one version of a ruby to another,
including
migrating your gemsets semi-automatically.

cleanup - Lets you remove stale source folders / archives and
other miscellaneous
data associated with rvm. repair - Lets you repair parts of your environment e.g. wrappers, env files and
and similar files (e.g. general maintenance).

惜醉颜 2024-12-21 12:27:39

既然您无论如何都想重新开始,我强烈建议您使用 RVM。执行“单用户安装”,这些 gem 问题应该完全消失。然后,如果您收到特定的错误消息,请发布该消息,以便我们可以继续处理。

Since you're trying to start over anyway, I would highly recommend that you use RVM. Do the "single user install" and these gem problems should disappear entirely. Then if you get a specific error message, post that so we have something to go on.

倾听心声的旋律 2024-12-21 12:27:39

请在控制台中运行此命令:

gem env

此命令将返回您的 gem 环境,并且还有一个更正:我猜它应该是“gem install bundler”而不是“gem install bundle” '。

Please run this command in your console:

gem env

This command will return your gem environment, and one more correction: I guess it should be 'gem install bundler' not 'gem install bundle'.

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