自從我升級OSX 10.11,我不能用我的Rails應用程序使用MySQL了:導軌上OSX 10.11埃爾卡皮坦:庫未加載:libmysqlclient.18.dylib
$ rails s
/Users/josh/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require': dlopen(/Users/josh/.rvm/gems/[email protected]/gems/mysql2-0.3.20/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError)
Referenced from: /Users/josh/.rvm/gems/[email protected]/gems/mysql2-0.3.20/lib/mysql2/mysql2.bundle
Reason: image not found - /Users/josh/.rvm/gems/[email protected]/gems/mysql2-0.3.20/lib/mysql2/mysql2.bundle
from /Users/josh/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/josh/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/josh/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
我發現其他職位約類似的問題,但我太初學者在這方面,由於解決版本的改變等
正在工作。完善!謝謝。 –
它的工作完全謝謝 –
有一點需要注意的是,如果你在虛擬環境中使用Python,你可能需要重新創建它或改變路徑,因爲它可能仍然指的是/ usr/lib版本,不存在。 –