LoginSignup
1
0

More than 3 years have passed since last update.

rails 初心者によるrails 6.0.1で新しくプロジェクトを立ち上げ

Last updated at Posted at 2019-11-11

途中までは下記の記事を参考に

https://qiita.com/yuitnnn/items/b45bba658d86eabdbb26
https://webird-programming.tech/archives/194

途中までは問題なく進めることはできたのですが、
bundle install --path vendor/bundle

の段階で躓きました。そんな時は下記のコードを入力してからもう一度トライ!
$bundle config --local build.mysql2 "--with-cppflags=-I/usr/local/opt/openssl/include"
$ bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib"

Webpackerのダウンロードも忘れずに!

bundle exec rails webpacker:install

webpackerをインストールしないとrails 6はどうやらうまくいかないようです。
あとは

bundle exec rails db:createをしてmysqlを使えるようにしましょう!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0