Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get MySQL-python working on my mac. I have to put this line in the terminal to fix an error, specifically " image not found". The source of this line tells me I should put it in my .profile for it to stick permanently.

I'm interested in learning what actually caused the error in the first place instead of just a quick fix. What exactly does this line do?

export DYLD_LIBRARY_PATH=”$DYLD_LIBRARY_PATH:/usr/local/mysql/lib/
share|improve this question

migrated from Mar 22 '13 at 8:40

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

It appends /usr/local/mysql/lib/ to the DYLD_LIBRARY_PATH environment variable


          This is a colon separated list of directories  that  contain  libraries.  The  dynamic  linker
          searches  these  directories before it searches the default locations for libraries. It allows
          you to test new versions of existing libraries.

          For each library that a program uses, the dynamic linker looks for it  in  each  directory  in
          DYLD_LIBRARY_PATH  in  turn.  If  it still can't find the library, it then searches DYLD_FALL-

          Use the -L option to otool(1).  to discover the frameworks and shared libraries that the  exe-
          cutable is linked against.

PS: presumably you've lost a closing double quote char somewhere

share|improve this answer
Thanks! While I was researching this, I came across a couple places that are supposedly similar with .profile, such as bash_profile and bash_rc. Is there a place where I can read up on the differences of these files? – Wesley Mar 22 '13 at 2:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .