1
1

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.

Vagrantのbundle installでエラー

Posted at

Vagrantで仮想環境作るぜ!の際にありがちなエラー

  1. bundle installがうまくいかない、、、
  2. rails s, cコマンドができない、、、

bundle install

gem install json
gem install bcrypt
gem install nokogiri
とかnative extentsionがなんちゃらとか言われる。

###原因
Vagrantで作った仮想環境とローカル環境の共有フォルダ上にgemをインストールしようとすると怒られるので、パスを変更すればうまくいくかもしれない。

$ bundle install --path vendor/bundle
ではなく
$ bunlde install --path /sample_app_name/vendor/bundle

詳しくはこちらを参考に♡

rails s, c

require: cannot load such file -- bundler/setup (LoadError)みたいに怒られる時

$ rake rails:update:bin

1
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?