$rails 伺服器
<程式碼>/Library/Ruby/Gems/2.0.0/gems/mysql2-0.3.17/lib/mysql2.rb:8:in `require': dlopen(/Library/Ruby/Gems/2.0.0 /gems/mysql2-0.3.17/lib/mysql2/mysql2.bundle, 9): 函式庫未載入: libmysqlclient.18.dylib (LoadError) 引自:/Library/Ruby/Gems/2.0.0/gems/mysql2-0.3.17/lib/mysql2/mysql2.bundle 原因:在/Library/Ruby/Gems/2.0.0/gems/mysql2-0.3.17/lib/mysql2/mysql2.bundle 中使用受限二進位檔案- /Library/Ruby/Gems/ 中的相對rpath libmysqlclient.18 .dylib 不安全2.0.0/gems/mysql2-0.3.17/lib/mysql2/mysql2.bundle 來自 /Library/Ruby/Gems/2.0.0/gems/mysql2-0.3.17/lib/mysql2.rb:8:in `' 來自 /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require' 來自 /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require 中的區塊(2 級)' 來自 /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `each' 來自 /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `block in require' 來自 /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `each' 來自 /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61: 在 `require' 中 來自 /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.6/lib/bundler.rb:134:in `require' 來自 /Users/xxzyjy/zzetao/xxzedu/config/application.rb:7:in ` ' 來自 /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:78:in `require' 來自 /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:78:in `伺服器中的區塊' 來自 /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `tap' 來自 /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `server' 來自 /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:39:in `run_command!' 來自 /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands.rb:17:in ` ' 來自 bin/rails:4: 在 `require' 中 來自 bin/rails:4:in ` '
OSX 10.11 吧? 試試這個