MAMP : dyld: Symbol not found: __cg_jpeg_resync_to

2019-01-18 23:29发布

问题:

I'm trying to run cacti on my Mac running OS X 10.9.3. I'm using MAMP 3.0.5.

In the cacti control panel, I've got the following error message :

dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /Applications/MAMP/Library/lib/libJPEG.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO.

回答1:

You need to go on /Applications/MAMP/Library/bin and rename envvars to _envvars and apache will start !



回答2:

You can try this one, it works for me.

cd /Applications/MAMP/Library/lib 
rm libjpeg.dylib  ln -s
/System/Library/Frameworks/ImageIO.framework/Resources/libJPEG.dylib libJPEG.dylib

Reference: You can see more in this article.



回答3:

I think it is MAMP but not cacti cause the problem

Here is a simple way to solve the problem. Just comment out several lines in the /Applications/MAMP/Library/bin/envvars file. Here is the Link.

The original question is : ffmpeg MAMP “dyld: Library not loaded” error

This question has even detailed answers about reasons of the error. But I think the solution above works effectively.

Conflict between dynamic linking priority in OSX?



标签: mamp cacti