[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Another problem with -> LoadError: no such file to load

Doan, Alex

5/27/2008 5:38:00 PM

Require 'file/tail'=20

-----Original Message-----
From: Csongor [mailto:csgyuricza@gmail.com]=20
Sent: Tuesday, May 27, 2008 1:34 PM
To: ruby-talk ML
Subject: Another problem with -> LoadError: no such file to load

I am trying to install and use the file-tail gem, but it's just not
working.

This is the gem I'm trying to use:
http://file-tail.rubyforge.org/doc/classes/File...

And this is what happens:

=3D=3D=3D Installing gem =3D=3D=3D

csongors-mac:~ csgyuricza$ sudo gem install file-tail Successfully
installed file-tail-1.0.3
1 gem installed
Installing ri documentation for file-tail-1.0.3...
Installing RDoc documentation for file-tail-1.0.3...

=3D=3D=3D Verifying gem path =3D=3D=3D

csongors-mac:~ csgyuricza$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.1.1
- RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [i686-darwin9.2.2]
- INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /opt/local/bin/ruby
- RUBYGEMS PLATFORMS:
- ruby
- x86-darwin-9
- GEM PATHS:
- /opt/local/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources =3D> true
- :verbose =3D> true
- :benchmark =3D> false
- :backtrace =3D> false
- :bulk_threshold =3D> 1000
- REMOTE SOURCES:
- http://gems.rub...

csongors-mac:~ csgyuricza$ ls -ltr /opt/local/lib/ruby/gems/1.8/gems/
total 0
drwxr-xr-x 6 root admin 204 May 13 18:08 progressbar-0.0.3
drwxr-xr-x 13 root admin 442 May 13 18:09 mysql-2.7 drwxr-xr-x 12
root admin 408 May 19 13:33 rake-0.8.1
drwxr-xr-x 5 root admin 170 May 19 13:33 activesupport-2.0.2
drwxr-xr-x 10 root admin 340 May 19 13:33 activerecord-2.0.2
drwxr-xr-x 10 root admin 340 May 19 13:33 actionpack-2.0.2
drwxr-xr-x 9 root admin 306 May 19 13:33 actionmailer-2.0.2
drwxr-xr-x 7 root admin 238 May 19 13:33 activeresource-2.0.2
drwxr-xr-x 16 root admin 544 May 19 13:33 rails-2.0.2
drwxr-xr-x 7 root admin 238 May 19 13:50 sqlite3-ruby-1.2.1
drwxr-xr-x 4 root admin 136 May 21 10:46 selenium-0.7
drwxr-xr-x 6 root admin 204 May 21 10:52 Selenium-1.0.9
drwxr-xr-x 12 root admin 408 May 27 09:58 file-tail-1.0.3 =
=3D=3D=3D=3D=3D GEM
IS HERE

=3D=3D=3D Trying to use gem =3D=3D=3D

csongors-mac:~ csgyuricza$ irb
>> require 'rubygems'
=3D> false
>> require 'Selenium'
=3D> true
>> require 'progressbar'
=3D> true
>> require 'file-tail'
LoadError: no such file to load -- file-tail
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from (irb):6
>>

=3D=3D=3D=3D=3D=3D

Any idea why this is happening?

Ruby and gems versions are:

csongors-mac:~ csgyuricza$ ruby -v
ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-darwin9.2.2] csongors-mac:~
csgyuricza$ gem -v
1.1.1



1 Answer

Csongor

5/27/2008 5:50:00 PM

0

On May 27, 10:37 am, "Doan, Alex" <alex.d...@wachovia.com> wrote:
> Require 'file/tail'
>
> -----Original Message-----
> From: Csongor [mailto:csgyuri...@gmail.com]
> Sent: Tuesday, May 27, 2008 1:34 PM
> To: ruby-talk ML
> Subject: Another problem with -> LoadError: no such file to load
>
> I am trying to install and use the file-tail gem, but it's just not
> working.
>
> This is the gem I'm trying to use:http://file-tail.rubyforge.org/doc/classes/File...
>
> And this is what happens:
>
> === Installing gem ===
>
> csongors-mac:~ csgyuricza$ sudo gem install file-tail Successfully
> installed file-tail-1.0.3
> 1 gem installed
> Installing ri documentation for file-tail-1.0.3...
> Installing RDoc documentation for file-tail-1.0.3...
>
> === Verifying gem path ===
>
> csongors-mac:~ csgyuricza$ gem env
> RubyGems Environment:
>   - RUBYGEMS VERSION: 1.1.1
>   - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [i686-darwin9.2.2]
>   - INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
>   - RUBY EXECUTABLE: /opt/local/bin/ruby
>   - RUBYGEMS PLATFORMS:
>     - ruby
>     - x86-darwin-9
>   - GEM PATHS:
>      - /opt/local/lib/ruby/gems/1.8
>   - GEM CONFIGURATION:
>      - :update_sources => true
>      - :verbose => true
>      - :benchmark => false
>      - :backtrace => false
>      - :bulk_threshold => 1000
>   - REMOTE SOURCES:
>      -http://gems.rub...
>
> csongors-mac:~ csgyuricza$ ls -ltr /opt/local/lib/ruby/gems/1.8/gems/
> total 0
> drwxr-xr-x   6 root  admin  204 May 13 18:08 progressbar-0.0.3
> drwxr-xr-x  13 root  admin  442 May 13 18:09 mysql-2.7 drwxr-xr-x  12
> root  admin  408 May 19 13:33 rake-0.8.1
> drwxr-xr-x   5 root  admin  170 May 19 13:33 activesupport-2.0.2
> drwxr-xr-x  10 root  admin  340 May 19 13:33 activerecord-2.0.2
> drwxr-xr-x  10 root  admin  340 May 19 13:33 actionpack-2.0.2
> drwxr-xr-x   9 root  admin  306 May 19 13:33 actionmailer-2.0.2
> drwxr-xr-x   7 root  admin  238 May 19 13:33 activeresource-2.0.2
> drwxr-xr-x  16 root  admin  544 May 19 13:33 rails-2.0.2
> drwxr-xr-x   7 root  admin  238 May 19 13:50 sqlite3-ruby-1.2.1
> drwxr-xr-x   4 root  admin  136 May 21 10:46 selenium-0.7
> drwxr-xr-x   6 root  admin  204 May 21 10:52 Selenium-1.0.9
> drwxr-xr-x  12 root  admin  408 May 27 09:58 file-tail-1.0.3  ===== GEM
> IS HERE
>
> === Trying to use gem ===
>
> csongors-mac:~ csgyuricza$ irb
> >> require 'rubygems'
> => false
> >> require 'Selenium'
> => true
> >> require 'progressbar'
> => true
> >> require 'file-tail'
> LoadError: no such file to load -- file-tail
>         from
> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 27:in `gem_original_require'
>         from
> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 27:in `require'
>         from (irb):6
>
> ======
>
> Any idea why this is happening?
>
> Ruby and gems versions are:
>
> csongors-mac:~ csgyuricza$ ruby -v
> ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-darwin9.2.2] csongors-mac:~
> csgyuricza$ gem -v
> 1.1.1

That works - thank you for replying so quickly.