Forum How do I...?

PHP MacOSX Mamp

lindm
Just began trying out Prince and am testing it on my MacOSX system with MAMP installed for PHP. Running from command line works perfect but my end solution would be php which I am trying to get to work. Get the following error from my php page.


Failure
array(4) {
  [0]=>
  array(1) {
    [0]=>
    string(47) ": Symbol not found: __cg_jpeg_resync_to_restart"
  }
  [1]=>
  array(1) {
    [0]=>
    string(130) "ferenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO"
  }
  [2]=>
  array(1) {
    [0]=>
    string(55) "pected in: /Applications/MAMP/Library/lib/libJPEG.dylib"
  }
  [3]=>
  array(1) {
    [0]=>
    string(0) ""
  }
}


Don't know enough to interpret this. Anyone know?
mikeday
Looks like a dynamic linking issue, as MAMP seems to be bringing in its own version of libjpeg. I'm not sure what is the best fix for it. Perhaps changing the configuration of MAMP, or environment variables such as LD_LIBRARY_PATH. Alternatively, we could release a statically linked Prince binary for MacOS X instead.
killroyboy
mikeday wrote:
Alternatively, we could release a statically linked Prince binary for MacOS X instead.


This would be ideal as I am running into the same problem.
nehalem
I use MAMP too, and would like to start using prince with it. Is there anything in the works for this?
mikeday
I have raised this issue on the MAMP forum.
mikeday
A response from the MAMP developers:
yes, MAMP changes the environment variable $DYLD_LIBRARY_PATH. Check the file:

/Applications/MAMP/Library/bin/envvars

and try out if commenting out the two uncommented lines will work for you.
nehalem
I will try it and see if that works...