【问题标题】:What’s the best way to remove these files yet retrieve them should an issue arise?如果出现问题,删除这些文件但检索它们的最佳方法是什么?
【发布时间】:2016-01-05 19:53:46
【问题描述】:

如果出现问题,删除这些文件但检索它们的最佳方法是什么?我正在尝试解决 Homebrew 问题,但终端中出现了以下警告。 python.framework 我不太关心,因为我知道我把它放在那里。至于其他文件,我不知道他们是如何到达那里的。他们看起来并不熟悉。 如果你站在我的立场上,你会如何让这些警告消失?

Warning: Python is installed at /Library/Frameworks/Python.framework
Homebrew only supports building against the System-provided Python or a
brewed Python. In particular, Pythons installed to /Library can interfere
with other software installs.

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib

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.
Unexpected header files:
/usr/local/include/fakemysql.h
/usr/local/include/fakepq.h
/usr/local/include/fakesql.h
/usr/local/include/itcl.h
/usr/local/include/itcl2TclOO.h
/usr/local/include/itclDecls.h
/usr/local/include/itclInt.h
/usr/local/include/itclIntDecls.h
/usr/local/include/itclMigrate2TclCore.h
/usr/local/include/itclTclIntStubsFcn.h
/usr/local/include/mysqlStubs.h
/usr/local/include/odbcStubs.h
/usr/local/include/pqStubs.h
/usr/local/include/tcl.h
/usr/local/include/tclDecls.h
/usr/local/include/tclOO.h
/usr/local/include/tclOODecls.h
/usr/local/include/tclPlatDecls.h
/usr/local/include/tclThread.h
/usr/local/include/tclTomMath.h
/usr/local/include/tclTomMathDecls.h
/usr/local/include/tdbc.h
/usr/local/include/tdbcDecls.h
/usr/local/include/tdbcInt.h
/usr/local/include/tk.h
/usr/local/include/tkDecls.h
/usr/local/include/tkPlatDecls.h

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/tcl.pc
/usr/local/lib/pkgconfig/tk.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a

【问题讨论】:

  • 您知道这些文件最初是如何到达那里的吗?这可能是相关的......
  • 我很困惑复制其他地方不起作用?
  • 我下载了 python,所以这并不神秘。至于其他文件,我不认识它们,所以我不能确定它是否是我过去下载的。
  • 请参阅我重新编辑的帖子,以尽量简洁明了。你会怎么做才能消除这些警告?

标签: python terminal warnings homebrew


【解决方案1】:

你和我一样是新手,你正在尝试做奥登项目。您浏览教程并下载 Home Brew 并运行 brew doctor 但您遇到了我在上面发现的类似警告。这就是我所做的......

我创建了一个 word 文档并复制并粘贴了所有警告,以便我知道文件的来源。然后我在桌面上创建了一个名为“back_up”的文件夹,然后继续将文件移动到桌面上的该文件夹。有关在终端 http://www.macworld.com/article/2080814/master-the-command-line-copying-and-moving-files.html 中移动文件的帮助,请参阅此处

在我移动文件并在我的 word 文档中注明我将它们移动到桌面上名为“back_up”的文件后,我按照指示修剪了所有符号链接。我跑了 brew doctor ,现在我“准备好酿造”了。我想如果这一切都击中了粉丝,我将拥有原始文件并且能够将它们移回没有问题。

就删除 python 框架或您下载的任何语言而言;看到这个 - How to uninstall Python 2.7 on a Mac OS X 10.6.4?

【讨论】: