ruby bundle install require: no such files to load error

本秂侑毒 提交于 2019-11-30 08:33:00

I have the same question with yours, I searched a lot, but no one is the solution, at last, I asked co-worker in my company, he just ran

gem list

to list the local gems, we found there's no bundler gem, so he ran

gem install bundler

then he ran

bundle install

OK, it worked.

Are you in the directory where your gemfile is located? I believe your current directory needs to be there.

Once Gemfile.lock is created, whenever you run bundle install, Bundler reads this file rather than Gemfile to work out the dependencies of the application and installs from it.

try check Gemfile/Gemfile.lock what is need to install

Make sure you're inside your application's directory before you bundle install. Because it will find the GemFile and check what gem needs to install

Run the following command :

sudo apt-get install rubygems build-essential

It should work like a charm.

I had this same problem (exact same output) and it is solved for me by simply installing the package 'rails'.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!