ruby - rails server 啟動報錯,內詳
伊谢尔伦
伊谢尔伦 2017-04-24 09:10:19
0
1
656

$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 `
'
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

全部回覆(1)
左手右手慢动作

OSX 10.11 吧? 試試這個

sudo install_name_tool -change libmysqlclient.18.dylib \
  /usr/local/mysql/lib/libmysqlclient.18.dylib \
  /Library/Python/2.7/site-packages/_mysql.so
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板