我之前在我的 OS X 10.9.5 系统上自定义安装了 Python 和 Homebrew。我现在正在尝试安装 CMake,但遇到了各种错误,例如:
cd: /usr/local/src: No such file or directory
当尝试执行时brew update
,brew doctor
报告许多错误,例如:
Warning: The /usr/local directory is not writable.
Warning: Python is installed at /Library/Frameworks/Python.framework
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Warning: You have unlinked kegs in your Cellar
Python
Warning: You have uncommitted modifications to Homebrew
我该如何解决这些问题,还是最好从头开始并重做一切?如果是这样,这是如何完成的?
我对 UNIX 安装的了解很差,我怀疑我做错了什么,导致某处出现故障。
答案1
目录中存在一些冲突是造成这种情况的原因。
$ /opt/cmake/bin/cmake-版本
借助上述命令,您可以尝试Cmake是否已正确下载。否则尝试安装在不同的位置。