因此,我正在OSX上运行火炬(参见下面粗体中的错误):
______ __ | Torch7
/_ __/__ ________/ / | Scientific computing for Lua.
/ / / _ \/ __/ __/ _ \ |
/_/ \___/_/ \__/_//_/ | https://github.com/torch
| http://torch.ch
th> package.cpath = package.cpath .. ";/usr/local/Cellar/jpeg/8d/lib/?.dylib"
[0.0000s]
th> require 'image'
true
[0.0120s]
th> image.lena();
/Users/<user>/torch/install/share/lua/5.1/trepl/init.lua:319: error loading module 'libjpeg' from file '/usr/local/Cellar/jpeg/8d/lib/libjpeg.dylib':
dlsym(0x7fd564000320, luaopen_libjpeg): symbol not found
warning: <libjpeg> could not be loaded (is it installed?)
[0.0229s]
th>特别是这一行:'/usr/local/Cellar/jpeg/8d/lib/libjpeg.dylib':dlsym(0x7fd564000320,luaopen_libjpeg)文件中的错误加载模块'libjpeg‘:符号找不到警告:无法加载(是否已安装?)
好像我没有正确的德利卜?如果是的话,我从哪里弄到的?
发布于 2015-02-09 00:39:01
当您的机器上安装了两个libjpeg,其中一个与另一个发生冲突时,就会发生这种情况。像这样启动火炬:
导出DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH 这是
希望它能解决这个问题。
https://stackoverflow.com/questions/28398705
复制相似问题