Octave错误:dyld:未加载库:/usr/X11/lib/libfreetype.6.dylib

时间:2014-12-06 03:29:32

标签: octave x11

当我尝试打开Octave时,出现以下错误:

$ exec '/Applications/Octave.app/Contents/Resources/bin/octave'
dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib
  Referenced from: /Applications/Octave.app/Contents/Resources/bin/octave-3.4.0
  Reason: no suitable image found.  Did find:
    /usr/local/lib/libfreetype.6.dylib: mach-o, but wrong architecture
/Applications/Octave.app/Contents/Resources/bin/octave: line 68: 60135 Trace/BPT trap: 5       OCTAVE_HOME="${OCTAVE_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" FFLAGS="${FFLAGS}" LDFLAGS="${LDFLAGS}" DL_LDFLAGS="${DL_LDFLAGS}" SED="$SED" MAGICK_HOME="${ROOT}" FONTCONFIG_PATH="${ROOT}/etc/fonts" "${ROOT}/bin/octave-3.4.0" "$@"

[Process completed]

我不知道它是由我从OSX 10.9升级到10.10,重新安装XCode,还是用rbenv取代rvm(我在过去24小时内完成了所有这三项)引起的。重新安装Octave(通过和gnuplot安装(通过brew安装)无法解决此问题。如何解决此错误?

1 个答案:

答案 0 :(得分:0)

重新安装X11(XQuartz)解决了这个问题。