Forum: Ruby Installing FileUtils

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
56c8db2891b2d2714ff22be005859285?d=identicon&s=25 Alex DeCaria (deke)
on 2009-02-21 02:26
My current version of Ruby 1.8.6 (on Windows) doesn't seem to include
the FileUtils library (if I type require 'fileutils' in IRB I get
"false").  How can I download and install this library?
6e366eb5a71be2bad7f383d42aeb4788?d=identicon&s=25 Justin Collins (Guest)
on 2009-02-21 02:32
(Received via mailing list)
Alex DeCaria wrote:
> My current version of Ruby 1.8.6 (on Windows) doesn't seem to include
> the FileUtils library (if I type require 'fileutils' in IRB I get
> "false").  How can I download and install this library?
>
'false' from require just means that it was already loaded. You would
get a LoadError if you didn't have the library.

irb(main):001:0> require 'fileutils'
=> true
irb(main):002:0> require 'fileutils'
=> false
irb(main):003:0> require 'bob'
LoadError: no such file to load -- bob
    from (irb):3:in `require'
    from (irb):3


-Justin
56c8db2891b2d2714ff22be005859285?d=identicon&s=25 Alex DeCaria (deke)
on 2009-02-21 02:44
Justin Collins wrote:
> Alex DeCaria wrote:
>> My current version of Ruby 1.8.6 (on Windows) doesn't seem to include
>> the FileUtils library (if I type require 'fileutils' in IRB I get
>> "false").  How can I download and install this library?
>>
> 'false' from require just means that it was already loaded. You would
> get a LoadError if you didn't have the library.
>
> irb(main):001:0> require 'fileutils'
> => true
> irb(main):002:0> require 'fileutils'
> => false
> irb(main):003:0> require 'bob'
> LoadError: no such file to load -- bob
>     from (irb):3:in `require'
>     from (irb):3
>
>
> -Justin

Thanks!

Alex
This topic is locked and can not be replied to.