powerpc ibook g4 上的 rvm 安装失败

发布于 2025-01-01 10:22:38 字数 581 浏览 0 评论 0原文

我正在尝试在运行 10.4 的 g4 ibook 上安装 ruby​​ 版本管理器,但当我尝试运行第一个命令时,我立即收到两条错误消息:

$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
bash: line 6: set: errtrace: invalid option name
bash: line 13: conditional binary operator expected

我对 ruby​​、rails 很陌生,对命令行也相当缺乏经验。我做了一些搜索,发现其他人在使用 rvm 在 powerpc 上安装特定版本的 ruby​​ 时遇到问题,但没有其他人首先在安装 rvm 时遇到问题的例子。

这看起来像是 powerpc 问题吗?或者我在这里缺少一些简单的命令行?

我还搜索了这些特定的错误消息,但尚未找到任何解决方案。哦,我还应该补充一点,我安装了 xcode,还安装了 macports,因为我认为这可能有帮助......但事实并非如此。

I am trying to install ruby version manager on a g4 ibook running 10.4 but I receive two error messages right off the bat when I try to run the first command:

$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
bash: line 6: set: errtrace: invalid option name
bash: line 13: conditional binary operator expected

I am new to ruby, rails, and fairly inexperienced with the command line too. I've done a bit of searching and have seen other people having problems installing a specific version of ruby on a powerpc using rvm, but no other examples of someone having a problem installing rvm first of all.

Does this seem like a powerpc issue? Or is there something simple with the command line that I am missing here?

I have also searched on these specific error messages but haven't found any solutions yet. Oh and I should also add that I have xcode installed and I also installed macports because I thought that might help...but it hasn't.

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

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

发布评论

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

评论(1

智商已欠费 2025-01-08 10:22:38

出现错误的最可能原因是您的 bash 版本太旧,无法与任何相对较新的 RVM 版本一起使用。另外,现在能够在 G4 上轻松编译 rubies 的可能性非常低。您可能最终需要从源代码编译许多工具和库,而您必须从命令行进行这些操作。找到既支持您的架构又仍然可供下载的库版本的正确组合可能并不像听起来那么容易。 OS X 上的大部分 ruby​​ 编译都依赖于 Xcode 附带的库。因此,您可能也会遇到麻烦,因为 rubies 现在需要更新的库,这些库可以通过可安装在您的系统上的 Xcode 版本提供。

您可以尝试升级 bash 版本和/或使用更旧版本的 RVM,不过,我不记得 RVM 曾经在 10.4 上运行过。或者,您可以尝试从源代码编译所有内容,包括 Ruby。您也许可以使用 Ruby 1.8.6,或许 1.8.7,但更高版本的可能性很小。

祝你好运=/

The most probable cause of the error you're getting is your bash version is far too old to be used with any relatively new RVM version. Also, the likelihood of you being able to easily compile rubies on a G4 now is very low. You'll likely end up needing to compile many tools and libraries from source which you'll have to do from the command-line. Finding the right combination of library versions that both support your arch and are still available for download might not be as easy as it sounds. Much of the ruby compilation on OS X depends on libraries that come with Xcode. So, you might hit a wall there too with rubies now requiring newer libraries that can be provided with a version of Xcode that can be installed on your system.

You can try upgrading your bash version and/or use a much older version of RVM, although, I don't remember RVM ever working on 10.4. Or, you can try to compile everything from source, including Ruby. You'll might be able to get Ruby 1.8.6, maybe 1.8.7 working but anything higher is very unlikely.

Good luck =/

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