Mac重装Homebrew,彻底删除brew软件

    今天在编译eos源码的时候一直 如下错误。

fatal: destination path ‘mongo-cxx-driver’ already exists and is not an empty directory.

    Unable to clone MongoDB C++ driver at this time.

    Exiting now.

    我猜想可能跟我通过brew手动安装了一些库有关,因而我尝试清除掉所有brew已经安装的软件来解决这个问题,具体操作如下:

 

删除brew库

cd `brew –prefix`

$ rm -rf Cellar

$ brew prune

$ rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew

$ rm -rf ~/Library/Caches/Homebrew

 

重装brew

 

ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

 

/********************************

******************************************/

 

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2018年4月14日
下一篇 2018年4月14日

相关推荐