Created
July 30, 2013 14:10
-
-
Save rodrigomaia/6113221 to your computer and use it in GitHub Desktop.
Erro do mysql não instalado pelo brew, com o rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Problema: | |
| mysql2.rb:8:in `require': dlopen(/Users/rodrigo/.rvm/gems/ruby-1.9.3-p0@atlas/gems/mysql2-0.3.13/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError) | |
| Referenced from: /Users/rodrigo/.rvm/gems/ruby-1.9.3-p0@atlas/gems/mysql2-0.3.13/lib/mysql2/mysql2.bundle | |
| Reason: image not found - /Users/rodrigo/.rvm/gems/ruby-1.9.3-p0@atlas/gems/mysql2-0.3.13/lib/mysql2/mysql2.bundle | |
| Solução: | |
| http://stackoverflow.com/questions/10557507/rails-mysql-on-osx-library-not-loaded-libmysqlclient-18-dylib | |
| no meu, resolveu isso aqui: | |
| MYSQL=/usr/local/mysql/bin | |
| export PATH=$PATH:$MYSQL | |
| export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment