Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The problem comes from the mysql2 gem missing the dynamic library from MySQL.</p> <p>A cleaner solution than <code>install_name_tool ...</code> would need to update your <code>DYLD_LIBRARY_PATH</code> to add MySQL libs to it. To do so, update your <code>~/.bash_profile</code> to add the MySQL library folder :</p> <p><code>export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"</code></p> <p>Note: You might want to update the MySQL location based on your install</p> <p>This should keep things clean but also ensure that any gem or code requiring MySQL dynamic libraries will find them.</p> <p>Reference : <a href="http://lightyearsoftware.com/2011/02/mysql-5-5-on-mac-os-x/" rel="noreferrer">http://lightyearsoftware.com/2011/02/mysql-5-5-on-mac-os-x/</a></p> <p><strong>Reference Update July 2012:</strong> A change in OS X 10.8 makes the easy method above less elegant. If you set that variable, every time you run a setuid or setgid program, you get this warning on stderr:</p> <pre><code>dyld: DYLD_ environment variables being ignored because main executable (...) is setuid or setgid </code></pre> <p>Ruby developers using Phusion Passenger Standalone will see this message displayed in their console every five seconds. It gets really irritating, very fast.</p> <p>I have filed a bug with Apple. It’s also at OpenRadar.</p> <p>In the meantime, there is also a third way to fix the client library path problem that doesn’t require setting DYLD_LIBRARY_PATH (working around this 10.8 issue) or hacking .bundle files with install_name_tool:</p> <pre><code>$ brew install mysql </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload