缺少必需的包裹吗? -包括libyaml [英] Missing Required Packages? - Including libyaml

查看:159
本文介绍了缺少必需的包裹吗? -包括libyaml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感觉我的计算机存在一些严重问题,并且100%反对我安装rails/ruby​​/rvm及其它上的其余部分.否则我就是不称职的:)

I feel like my computer has some deep seated issues and is 100% against me installing rails/ruby/rvm and the rest on it. Or I'm just incompetent :)

我已经安装了rvm和ruby,没有问题.这是我当前的设置(从终端登录):

I have installed rvm and ruby without issues. Here is my current setup (Log from Terminal):

Mac-mini:rubygems-1.8.25 Riley$ rvm -v

rvm 1.18.15 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

Mac-mini:rubygems-1.8.25 Riley$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.2.1]

但是导轨有点不同.

Mac-mini:rubygems-1.8.25 Riley$ rails -v
/Users/Jamie/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Rails 3.2.12

所以我尝试安装libyaml:

So I try to install libyaml:

rvm pkg install libyaml
rvm reinstall all --force

但是我得到了:

Missing required packages: autoconf, automake, libtool, pkg-config, apple-gcc42, libyaml, readline, libxml2, libxslt, libksba, openssl, curl-ca-bundle, sqlite.

为黄色输出,尽管它表示安装成功.好吧,那我就再检查一下吧.

as yellow output, despite it saying the install was successful. Okay, so then I check on rails again.

Mac-mini:rubygems-1.8.25 Riley$ rails -v
/Users/Jamie/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Rails 3.2.12

太好了.它不起作用.因此,我尝试安装Homebrew,使我的生活更轻松.

Great. Its not working. So I try installing Homebrew to make my life a little easier.

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

已安装.很好.

Mac-mini:API Riley$ brew help
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0

嗯?而且,所有brew操作都会发生这种情况,只是要清楚一点.

Huh? And that happens on all brew actions, just to be clear.

现在,这就是我最近几个小时一直在面对的问题.我一直在努力解决这一问题,并且不断收到新的错误.我尝试完全删除Triple R(RVM,Rails和Ruby)并重新安装,但似乎没有进行大量的谷歌搜索和调试工作.我只是不知道该怎么办了.我没有任何进展.我已经在其他几台计算机上安装了Triple R,但是这台计算机只是拒绝与我合作.

Now, this is just what I've been facing in the last few hours. I've been trying to get this going for a few days now and I keep getting new errors. I've tried completely removing the Triple R (RVM, Rails and Ruby) and reinstalling and no amount of googling and debugging has seemed to work. I just don't know what to do anymore. I haven't made any progress. I've installed the Triple R on a few other computers, but this computer is just refusing to work with me.

非常感谢您帮助我的计算机上运行Triple R.

Help to get the Triple R working on my computer would be GREATLY appreciated.

谢谢

推荐答案

问题源于我安装Ruby.显然,如在此答案中所述,XCode命令行中不再包含"GCC的非LLVM版本"工具.

The problem stemmed from my installation of Ruby. Apparently, as stated in this answer, "a non-LLVM version of GCC" is no longer included in the XCode command line tools.

通过以下方式安装ruby:

Installing ruby with:

rvm install ruby --with-gcc=clang

工作正常,尽管花费了我一周的调试和重新安装时间,但我还是在大约10分钟内安装了RVM,Ruby和Rails.

Worked and I installed RVM, Ruby and Rails within about 10 minutes, despite it taking me a week of debugging and reinstalling otherwise.

这篇关于缺少必需的包裹吗? -包括libyaml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆