Created
March 6, 2017 23:13
-
-
Save chriswessells/4310e53e7cf6d433ba9ca73e8c1be951 to your computer and use it in GitHub Desktop.
Script that will fix dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /opt/local/lib/libJPEG.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Trace/BPT trap: 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# script to fix errors after installing spidermonkey javascript engine on OS X and you get errors | |
# | |
cd /usr/local/lib | |
sudo rm libgif.dylib | |
sudo ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libGIF.dylib libGIF.dylib | |
sudo rm libjpeg.dylib | |
sudo ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libJPEG.dylib libJPEG.dylib | |
sudo rm libtiff.dylib | |
sudo ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libTIFF.dylib libTIFF.dylib | |
sudo rm libpng.dylib | |
sudo ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libPng.dylib libPng.dylib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment