我试图在OSX 10.10.1上通过cabal安装Yi-Editor。起初我得到yi: can't load .so/.DLL for:
错误,由export DYLD_LIBRARY_PATH=/opt/local/lib
修复。但是现在我得到了另一个没有在FAQ中描述的错误:
[1 of 1] Compiling Main
( src/executable/Main.hs, dist/build/yi/yi-tmp/Main.o )
Linking dist/build/yi/yi ...
ld: couldn't dlopen() /usr/lib/libdtrace.dylib:
dlopen(/usr/lib/libdtrace.dylib, 1):
Symbol not found: _sqlite3_intarray_bind
Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
Expected in: /opt/local/lib/libsqlite3.dylib
in /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
for architecture x86_64
collect2: error: ld returned 1 exit status
Failed to install yi-0.11.1
cabal: Error: some packages failed to install:
yi-0.11.1 failed during the building phase. The exception was:
ExitFailure 1
解决!
似乎是' DYLD_LIBRARY_PATH'将其设置为默认值并使用' DYLD_FALLBACK_LIBRARY_PATH'代替。