Written December 1, 2007 in apple, symfony

Getting this error?

dyld: NSLinkModule() error
dyld: Library not loaded: /Users/severin/Dev/Projects/MAMP_1.7_src/lib/libltdl.3.dylib
Referenced from: /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/mcrypt.so
Reason: image not found
Trace/BPT trap

You need to either execute this: export DYLD_LIBRARY_PATH=/Applications/MAMP/Library/lib:${DYLD_LIBRARY_PATH} in your shell window before running a PHP script from the command line (but be warned that this may break lots of other software you use from the command line, like vim) or you need to wrap /Applications/MAMP/bin/php5/bin/pear and /Applications/MAMP/bin/php5/bin/symfony in something that looks like this:

#!/bin/bash
export DYLD_LIBRARY_PATH=/Applications/MAMP/Library/lib:${DYLD_LIBRARY_PATH}
/Applications/MAMP/bin/php5/bin/pear_bin
export DYLD_LIBRARY_PATH='';

Related:

2 comments on ' Symfony and MAMP 1.7 '

  1. I bought MacBook and install MAMP 1.7.
    I tried to use “pear install” command but I met this error .

    This entry helps me ;) Now, I can use pear install.

    Thank you for your good information!

Trackbacks/Pingbacks

Leave a comment

name (req'd)

email (req'd)

website