Kernel_Require.Rb:55:In 'Require': Cannot Load Such File Error

Error kernel_require.rb:55:in `require': cannot load such file when trying to run ruby program

You use

gem 'activerecord'

in the gemfile.

require 'active_support/all'

is used in the program.

It's slightly annoying when gems do this, but you can't always assume the files you require have the same name as in the Gemfile.

after bundle install error kernel_require.rb:55:in `require': cannot load such file -- bundler (LoadError)

Perhaps, you missed install gem bundler, try to install it first:

gem install bundler

then run bundle install again

kernel_require.rb:55:in `require': cannot load such file -- pry-byebug (LoadError)

Spaces in the file path to the project cause problems, apparently. I edited the offending folder and rspec then worked as intended.

How fix this error: kernel_require.rb:45:in `require': cannot load such file?

I fix this following the hint of @Dogbert.

At execute.rb code it's necessary replace:

require 'lib/my_class'

for:

require_relative 'lib/my_class'

How fix this error: kernel_require.rb:45:in `require': cannot load such file?

I fix this following the hint of @Dogbert.

At execute.rb code it's necessary replace:

require 'lib/my_class'

for:

require_relative 'lib/my_class'


Related Topics



Leave a reply



Submit