我試圖根據here中描述的指導安裝自制軟件。安裝家庭衝煮導軌3.2
我有curl和rvm,並且想要在我的獅子1.7.4上安裝rails 1.9.3並且安裝了Xcode 4.3.2和開發者命令行工具。
看來我需要libksba,它需要我用來命令brew install libksba
。 所以我需要Home Brew。
我按照說明進行操作,並使用 /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
[~]$
因此,這意味着基本上是釀造未安裝正確。我是否必須改變它正在尋找的路徑?我曾經有MacPorts,我完全刪除,所以應該沒有衝突。請幫忙!!!非常感謝!這是一個很棒的社區。
UPDATE:
我時間一年加工回來,因爲我覺得我做了一件極其錯誤的。現在我仍然有安裝問題,但似乎更常見。
我安裝使用
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
給了我這個錯誤 「釀造」 的任何命令自制:
[~]$ brew
/usr/local/bin/brew:6:in `require': no such file to load -- pathname (LoadError)
from /usr/local/bin/brew:6
有什麼建議?謝謝你們!
我得到了同樣的問題,我甚至嘗試刪除自制程序,並重新開始,但像brew命令--prefix返回相同的ostruct錯誤 – johnmartirano
我知道,似乎brew命令本身有麻煩。我希望有人可以幫助。謝謝你讓我知道我不是唯一的。 – gothic12345
我的情況很奇怪,因爲我不得不升級xcode(我沒有默認的系統紅寶石,它是自制軟件需要的),我也在雪豹 – johnmartirano