2012-10-31 171 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