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
Recursive Rails Nested Resources
Differencebetween a Constant and a Variable in Ruby
Ruby Sequel: Array Returned by Query Is Being Returned as a String Object, Not an Array Object
Fresh Rails App Defaulting to Postgres Instead of SQLite3
Rspec Matcher That Checks Collection to Include Item That Satisfies Lambda
Twitter::Error::Unauthorized in Postscontroller#Create - Invalid or Expired Token
Uml Sequence Diagram - How to Represent Method Arguments That Instantiate Objects
Openssl::Ssl::Sslcontext Sni Servername_Cb Not Working
Is /Etc/Irbrc Installed by Os X? Does Irb Read It
Passing Variables on the Command Line to a Cucumber Test
Enforce File Upload Size on Heroku
Uri::Invalidurierror (Uri Must Be Ascii Only)
Nokogiri Returning Values as a String, Not an Array