今天在编译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)"
/********************************
* 本文来自CSDN博主"爱踢门"
* 转载请标明出处:http://blog.csdn.net/itleaks
******************************************/