dyld: Symbol not found: __cg_jpeg_resync_to_restart

突然手贱跑了一下brew update,java环境就GG了,

dyld: Symbol not found: __cg_jpeg_resync_to_restart

Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO

Expected in: /usr/local/lib/libJPEG.dylib

in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO

 

网上搜索了一下,感觉这种问题都可能出现在各个地方,QT,啥啥的之类,我这次影响到java环境,基本的问题处理方式都是没发现指定的文件,ln引用一下就OK,下面是处理方式,其他的各自找文件引用一下

 

cd /usr/local/lib
mv libjpeg.dylib libjpeg.dylib.backup
ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libJPEG.dylib libJPEG.dylib
mv libtiff.dylib libtiff.dylib.backup
ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libTIFF.dylib libTIFF.dylib
mv libpng.dylib libpng.dylib.backup
ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libPng.dylib libPNG.dylib
 

你可能感兴趣的:(错误解决)