I installed Snow Leopard and things have been going great, after a few re-installs. But now when I go to run cucumber, I get the error below, and I can't find anything conclusive through Google searches. Has anyone run into this, or maybe have some troubleshooting steps to try?
我安装了Snow Leopard,经过几次重新安装后,事情进展顺利。但是现在当我去运行黄瓜时,我得到了下面的错误,我无法通过谷歌搜索找到任何结论。有没有人碰到这个,或者可能有一些故障排除步骤尝试?
$ cucumber features
dyld: NSLinkModule() error
dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
Referenced from: /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.10.0/lib/RMagick2.bundle
Reason: no suitable image found. Did find:
/opt/local/lib/libfreetype.6.dylib: can't map
/usr/local/lib/libfreetype.6.dylib: mach-o, but wrong architecture
Trace/BPT trap
2 个解决方案
#1
0
You should check if rmagick is the correct version and compiled correctly for your new osx.
你应该检查rmagick是否是正确的版本,并为你的新osx正确编译。
#2
0
It resulted that the .dylib file was in /usr/X11/lib/libfreetype.6.dylib
结果是.dylib文件位于/usr/X11/lib/libfreetype.6.dylib中
so it was just matter of copying it from there, or make a symbolic link:
所以只需要从那里复制它,或者做一个符号链接:
cd /opt/local/lib/
ln -s /usr/X11/lib/libfreetype.6.dylib
#1
0
You should check if rmagick is the correct version and compiled correctly for your new osx.
你应该检查rmagick是否是正确的版本,并为你的新osx正确编译。
#2
0
It resulted that the .dylib file was in /usr/X11/lib/libfreetype.6.dylib
结果是.dylib文件位于/usr/X11/lib/libfreetype.6.dylib中
so it was just matter of copying it from there, or make a symbolic link:
所以只需要从那里复制它,或者做一个符号链接:
cd /opt/local/lib/
ln -s /usr/X11/lib/libfreetype.6.dylib