1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ruby On Rails 初心者がWindows向けにサンプルを作ってみた時にハマったことを共有

1
Posted at

はじめまして、wattak777と申します。

Ruby On Railsを自宅のPCに入れて遊んでみようとインストールを行い、その後サンプルアプリを作ってみたのですがエラーが発生したので、それを対処した話です。

1.インストール

ここ を参考にしたのですが、記事当時は2.4.2だったのですが、下記のようにバージョンが進み、Devkitも追加されておりました。

install.jpg
ここ によるとDevkit推奨とされていたのでDevkitありをインストールしました。

その後のrailsのインストールは先ほど紹介したページのまま行い、サンプル作成時にsqlite3のエラーが出るかも、といった記載があったのでこれについては ここ にある「sqlite3ライブラリをインストール」にある2つの手順(gem install sqlite3とサイトからdll、toolsをコピペ)で行いました。

2.サンプル作成時のエラー

作りたいディレクトリまで移動して「rails s」を実行したのですが、以下のエラーメッセージが…。


C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configurati
on.rb:91:in `rescue in load': Webpacker configuration file not found xxx/sample/
config/webpacker.yml. Please run rails webpacker:install Error: No such file or
directory @ rb_sysopen - xxx/sample/config/webpacker.yml (RuntimeError)

解決方法はなんてことはない ここ にある方法をそのまま使いました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?