2012-10-31 169 views
0

我試圖按照here所描述的步驟重新安裝Nokogiri的依賴關係。我以前nokogiri工作正常,但不得不刪除macports在我的mac上留出空間。運行`brew install時失敗

運行到錯誤的第一步:

$ brew install libxml2 libxslt 
Warning: Your Xcode (3.2.2) is outdated 
Please install Xcode 3.2.6. 
==> Downloading ftp://xmlsoft.org/libxml2/libxml2-2.8.0.tar.gz 
Warning: Failed to create the file 
Warning: /Library/Caches/Homebrew/libxml2-2.8.0.tar.gz 
                     0.0% 
curl: (23) Failed writing body (0 != 1448) 
Error: Download failed: ftp://xmlsoft.org/libxml2/libxml2-2.8.0.tar.gz 

任何想法如何解決這一問題?

Xcode版本的警告是否有意義?

回答

4

上面的相關信息似乎是Warning: Failed to create the file

試圖手動創建/Library/Caches/Homebrew/libxml2-2.8.0.tar.gz文件,並得到Permission denied錯誤。

更改的文件夾的所有權轉讓給我的用戶名:組

sudo chown <username>:<group> /Library/Caches/Homebrew/ 

隨着這種變化,在brew install一步成功的工作!

注意:brew install mongodb error: Cowardly refusing to `sudo brew install' Mac OSX Lion的答案有助於解決問題。

+2

我不得不使用chown -R,因爲只是使用chown on/Library/Caches/Homebrew /正在給我權限被拒絕 -/Library/Caches/Homebrew/Formula/error – Paras