我正在尝试根据此处描述的指南安装自制软件。
我有 curl 和 rvm,并且想在我的 lion 1.7.4 上安装 rails 1.9.3,并安装 Xcode 4.3.2 和开发人员命令行工具。
看来我需要 libksba,这需要我使用 to 命令 brew install libksba
。所以我需要家酿。
我按照说明使用
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
输出以下内容:
$ /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
Press enter to continue
==> Downloading and Installing Homebrew...
==> Installation successful!
You should run `brew doctor' *before* you install anything.
Now type: brew help
[~]$
[~]$
[~]$ brew doctor
/usr/local/Library/Homebrew/tab.rb:1:in `require': no such file to load -- ostruct `(LoadError)`
from /usr/local/Library/Homebrew/tab.rb:1
from /usr/local/Library/Homebrew/bottles.rb:1:in `require'
from /usr/local/Library/Homebrew/bottles.rb:1
from /usr/local/Library/Homebrew/extend/pathname.rb:2:in `require'
from /usr/local/Library/Homebrew/extend/pathname.rb:2
from /usr/local/Library/Homebrew/global.rb:1:in `require'
from /usr/local/Library/Homebrew/global.rb:1
from /usr/local/bin/brew:10:in `require'
from /usr/local/bin/brew:10
[~]$
所以这基本上意味着 brew 没有正确安装。我是否必须更改它正在寻找的路径?我曾经有MacPorts,我完全删除了它,所以那里应该没有冲突。请帮忙!!!非常感谢!这是一个很棒的社区。
更新:
我时间机器倒退了一年,因为我认为我做错了什么。现在我仍然有安装问题,但它似乎更常见一些。
我使用安装自制软件
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
“brew”的任何命令都会给我这个错误:
[~]$ brew
/usr/local/bin/brew:6:in `require': no such file to load -- pathname (LoadError)
from /usr/local/bin/brew:6
有什么建议么?谢谢你们!