经过8个小时左右的挖掘并解决了许多其他的谜团,我现在肯定会被困住。
当我跑
时 lame /.../disa.mp3 /.../disa3.wav --decode -b 16 -m m
通过终端(OSX Maverics)它工作正常,但当我尝试通过PHP做同样的事情时,我得到一个错误(结果中的int(5))。所以我在我的2>&1
命令中添加了exec
。现在我明白了:
dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
Referenced from: /opt/local/bin/lame
Reason: Incompatible library version: lame requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 `
除非:
,否则这会有所帮助$ otool -L /opt/local/lib/libiconv.2.dylib
/opt/local/lib/libiconv.2.dylib:
/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
所以是的,lame无法加载libiconv因为它认为libiconv是7.0.0而libiconv认为它是8.0.0
有什么想法吗?