dyld: Symbol not found: __cg_jpeg_resync_to_restart
ããæ¥ï¼Macã§
$vagrant up
ãããã¨ãããï¼ãããªã¨ã©ã¼ãã§ãï¼
dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib Expected in: /usr/local/lib/libJPEG.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
ãã®ä»è²ã 触ã£ã¦ããï¼
$ open -a hogehoge
ãã¦ãåãã¨ã©ã¼ãã§ãï¼
åå
libJPEG.dylib
ã®__cg_jpeg_resync_to_restart
ã£ã¦ããé¢æ°ã使ç¨ããããã©ç¡ããããï¼
åå ã¯ï¼homebrewã§libJPEG
ãã¤ã³ã¹ãã¼ã«ãã¡ãã£ã¦ããã¨ã¿ããï¼
homebrewã§ã¤ã³ã¹ãã¼ã«ãããlibJPEG
ã¯__cg_jpeg_resync_to_restart
ãæããªãï¼
æ¬æ¥ã¯/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
ã使ããªãããããªãã£ã½ãï¼
homebrewã§å
¥ã£ã/usr/local/lib/libJPEG.dylib
ãå
ã«è¦ã¤ãã¦ãã¾ã£ã¦ï¼ãã®çµæï¼é¢æ°ããªãã¦ã¨ã©ã¼ã¿ãããªæãï¼
対ç
$brew uninstall jpeg
ããã§ãã¾ããããªãã£ãã
ln -s /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib /usr/local/lib/libJPEG.dylib
ãã¦ããããããã¨æã