I was playing with Mac::Glue tonight, working on getting it ready for release, and I tried to create a glue for iPhoto.
iPhoto was not happy with this, and quit on me. The crash log said something about bad symbols in dyld. I eventually traced this to DYLD_LIBRARY_PATH, which I have set for OpenOffice.org and some other things; not in the GUI, only in the shell, so iPhoto starts fine from clicking on its icon, but not from opening from the command line etc.
It turns out that this path is used before dyld looks at the program's paths. I don't want that. I changed my .bash_profile to use DYLD_FALLBACK_LIBRARY_PATH instead, and it works fine now.