2014-10-16 329 views
8

我试图安装和运行使用下面的命令DDD以下是从酿造配置我的输出:DDD运行所在Mac OS X 10.7.5

HOMEBREW_VERSION: 0.9.5 
ORIGIN: https://github.com/Homebrew/homebrew 
HEAD: 7a427a6528c0aa123a43d3adf1c5944ab622c27e 
Last commit: 2 hours ago 
HOMEBREW_PREFIX: /usr/local 
HOMEBREW_CELLAR: /usr/local/Cellar 
CPU: dual-core 64-bit penryn 
OS X: 10.7.5-i386 
Xcode: 4.6.3 
CLT: 4.6.0.0.1.1365549073 
LLVM-GCC: build 2336 
Clang: 4.2 build 425 
X11: 2.6.5 => /usr/X11 
System Ruby: 1.8.7-358 
Perl: /usr/bin/perl 
Python: /usr/bin/python 
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 

其下方是酿造医生我的输出:

Warning: Some directories in /usr/local/share/man aren't writable. This can happen if you "sudo make install" software that isn't managed by Homebrew. If a brew tries to add locale information to one of these directories, then the install will fail during the link step. You should probably chown them: 

/usr/local/share/man/de 
/usr/local/share/man/de/man1 
/usr/local/share/man/mann 

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 

Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. The following tools exist at both paths: 

dot 

Consider setting your PATH so that /usr/local/bin occurs before /usr/bin. Here is a one-liner: 

echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile 

这些酿酒医生警告我应该尝试纠正吗?我所有其他的brew安装程序都很好,所以有点不愿意开始使用这些文件。谢谢!

回答

2

所以我想的Mac OS X 10.7.5。附带XQuartz(仅10.8及更高版本,不包含安装)。

下面是最终为我工作:

的unbrewed dylibs,头文件,.PC文件和静态库是由非自制软件安装的R放在那里,所以我卸载[R使用以下命令:

rm -rf /Library/Frameworks/R.framework /Applications/R.app \ 
/usr/bin/R /usr/bin/Rscript 

我然后卸载DDD,无关联的LessTif,和卸载的LessTif:

brew uninstall ddd 
brew unlink lesstif 
brew uninstall lesstif 

接着,我安装TCL-TK:

brew tap homebrew/dupes 
brew install tcl-tk 

然后我建的LessTif从源与BREW安装:

brew install --build-from-source lesstif 

我重新链接的LessTif:

brew unlink lesstif && brew link lesstif 

最后,我安装DDD:

brew install ddd 

它成功了!我不知道它的其中一个步骤是关键的一步,但我猜它是:

brew install --build-from-source lesstif 

我仍然不知道这两个有什么不同:

brew install --build-from-source lesstif 
brew install lesstif 

我还查找以下目录和文件:

/opt/X11/lib/libSM.6.dylib exist 

但它们在我的电脑上不存在。

@new-host:~$ cd ~ 
@new-host:~$ cd /opt 
-bash: cd: /opt: No such file or directory 

相反,我发现X11的文件在这里:

@new-host:/usr/X11$ cd ~ 
@new-host:~$ cd /usr/X11/lib 
@new-host:/usr/X11/lib$ ls 
... 
libSM.6.dylib 
... 

我想我可以使用某种符号链接的解决了这个问题,但不能完全肯定。

最后,那些未被引用的dylib,头文件,.pc文件和静态库被放置在那里,但是没有自制的R安装。但我不确定是否有任何方法可以安全地删除它们,以便消除酿造医生的警告。 (我可能必须和他们一起生活)。

的R安装过程中由三个苹果包:

org.r-project.R.x86_64.fw.pkg 
org.r-project.R.x86_64.GUI.pkg 
org.r-project.x86_64.tcltk.x11 

%的R网站(http://cran.r-project.org/doc/manuals/r-release/R-admin.html#Uninstalling-under-OS-X):您可以使用pkgutil --unlink(而不是由狮子或更高版本支持),如果你想删除自己的文件或pkgutil --forget Apple安装程序可以在不删除文件的情况下(在并行安装多个R版本时对R框架有用)或在删除文件后忘记该软件包

卸载Tcl/Tk组件(安装在/usr/local下)不是sim PLE。您可以通过

pkgutil --files org.r-project.x86_64.tcltk.x11 

有点太吓人列出它安装在终端中的文件对我来说,处理那些去除,从而将与brew doctor警告居住。很高兴ddd终于奏效。