Jack Eccleshall
Jack Eccleshall

Reputation: 625

Trying to Run Ruby script in terminal but get ERROR

I am trying to run a ruby script to rename some files but I get the following error:

Eccleshall$ ruby rename.rb
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- ftools (LoadError)
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from rename.rb:45:in `<main>'

Thanks for the help.

Upvotes: 0

Views: 398

Answers (1)

Geo
Geo

Reputation: 96957

Change to script to say:

require "fileutils"

instead of

require "ftools"

ftools has been deprecated.

Upvotes: 3

Related Questions