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



/********************************
* 本文来自CSDN博主"爱踢门"
* 转载请标明出处 : http://blog.csdn.net/itleaks
******************************************/

猜你喜欢

转载自blog.csdn.net/itleaks/article/details/80366968