繁体   English   中英

在Mac OS X上运行ddd

[英]Running ddd on Mac OS X

我尝试使用以下命令安装并运行ddd:

brew install libtool
brew link lesstif
brew install ddd

并在尝试运行ddd时收到以下错误消息:

cd@new-host:~$ ddd
dyld: Library not loaded: /opt/X11/lib/libSM.6.dylib
Referenced from: /usr/local/lib/libXm.2.dylib
Reason: image not found
Trace/BPT trap: 5

以下是我的brew配置输出:

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安装的程序都很好,因此有点不愿意开始处理这些文件。 谢谢!


编辑:在macOS 10.14.4上,我收到此错误:

Jamess-MacBook-Air:haskell-usaco james$ ddd
Error: Unresolved inheritance operation

Xt error (Unresolved inheritance operation).

Oops!  You have found a bug in DDD.

If you can reproduce this bug, please send a bug report
to <ddd@gnu.org>, giving a subject like

    DDD 3.3.12 (i386-apple-darwin18.0.0) gets Xt error

使用LLDB启动DDD会显示以下错误消息:

XIO:  fatal IO error 35 (Resource temporarily unavailable) on X server "/private/tmp/com.apple.launchd.cxF3NWNYqR/org.macosforge.xquartz:0"
      after 5 requests (5 known processed) with 0 events remaining

X11是从Homebrew和XQuartz网站安装的。

所以我认为Mac OS X 10.7.5。 XQuartz附带(仅10.8及更高版本,不随安装一起提供)。

这是最终为我工作的东西:

未酿造的dylib,头文件,.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

然后,我通过brew install从源代码构建了lesstif:

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安装包含三个Apple软件包:

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 (不受支持)如果您希望Apple Installer在不删除软件包的情况下忘记软件包而不删除其文件(在并行安装多个R版本时对R框架有用),或者在删除完之后,则删除它们的文件或pkgutil --forget档案

卸载Tcl / Tk组件(安装在/usr/local )并不简单。 您可以通过以下方式列出它在终端中安装的文件:

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

对于我来说,解决该移除问题有点太吓人了,因此它会随brew doctor警告一起出现。 很高兴ddd终于奏效了。

您需要安装XQuartz才能在/ opt / lib中获得这些X库。

http://xquartz.macosforge.org/landing/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM