Raspberry Pi に Rails を インストール
概要
Raspberry Pi に Rails をインストールしようとしたところ、コアダンプしてしまうエラーが起こったのでその対処法。
環境
コマンド
bundleなしでアプリケーションを作成
アプリケーション名はhogeapp
とします。
rails new hogeapp -B
config/boot.rb の編集
hogeappディレクトリからみて、config/boot.rb
を編集します。
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
を
# require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
こうします。
bundle
cd hogeapp
bundle
Yay! You’re on Rails!
サーバーを起動します。
rails s -b 0.0.0.0