Problem with require in Ruby

0

I am studying for the book "Ruby learn to program in the most amusing Language" of the author "Lucas Souza" editor "House of the code".

In my requirements file when I try to run the following error:

Traceback (most recent call last):
  6: from loja_virtual.rb:1:in '<main>'
  5: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in
     

require' 4: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in rescue in require '         3: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in    require' 2: from /var/lib/gems/2.5.0/gems/active_file-0.0.2.3/lib/active_file.rb:3:in '         1: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_reqDoes anyone   here knows how to fix or what is it?

Thank you so much.uire.rb:59:in 'require'
/usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
     

'require': can not load such file - FileUtils (LoadError)

Any help is valid and thank you in advance.

    
asked by anonymous 01.08.2018 / 22:16

1 answer

0

The solution was to access the file "active_file.rb, in the directory /var/lib/gems/2.5.0/gems/active_file-0.0.2.3/lib/active_file.rb"

and change the second line require "FileUtils to require fileutils

This solved my problem. I hope I have helped.

    
02.08.2018 / 16:54