Mysql rails s ができない
rails s ができない
エラー:
/Users/HO/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/mysql2-0.4.4/lib/mysql2.rb:31:in `require': dlopen(/Users/HO/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/mysql2-0.4.4/lib/mysql2/mysql2.bundle, 9): Library not loaded: /usr/local/lib/libmysqlclient.18.dylib (LoadError)
ーーーーー
結果:Error: mysql not installed
ーーーーー
コマンド:brew doctor
結果:
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
iojs
Warning: Your Xcode (7.3.1) is outdated.
Please update to Xcode 8.2 (or delete it).
Xcode can be updated from the App Store.
〜〜〜
(1) XcodeのCommand Line ToolsをUpdate
リンク:Sign in with your Apple ID - Apple Developer
10.12 OX verからしかインストール出来ないようなのでOSをアップデート
問題:disk spaceが足りない
解決:hard drive - Not enough storage for El Capitan; no way to free up space - Ask Different
(2)
mysql --version
mysql Ver 14.14 Distrib 5.5.49, for osx10.11 (x86_64) using EditLine wrapper
(4)Unexpected dylibs:を治す
コマンド:brew doctor
結果:
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib