もくじ
いきさつ
gem 'mysql2'
buldle install
すると以下のエラー
ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [mysql2.bundle] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/yoshiyuki_sakamoto/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.5.2 for inspection. Results logged to /Users/yoshiyuki_sakamoto/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-14/2.4.0-static/mysql2-0.5.2/gem_make.out An error occurred while installing mysql2 (0.5.2), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.5.2'` succeeds before bundling.
xcode-selectてきなのを入れる必要があるっぽい?
とりあえず https://developer.apple.com/download/more/ から command line tools を入れる
Errno::EACCES: Permission denied @ rb_sysopen - /Users/yoshiyuki_sakamoto/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.5.2/CHANGELOG.md An error occurred while installing mysql2 (0.5.2), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.5.2'` succeeds before bundling.
エラーがかわった
なんか結局rootでやらんとあかんのかな
sudo bundle install
とりあえずinstallはできたが、、、.rbenv どうにかならないんかしら。