今天在编译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

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

 

Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐