does install any log4r.rb
no error messages except for "gem install log4r":
Attempting local installation of 'log4r'
Local gem file not found: log4r*.gem
Attempting remote installation of 'log4r'
Successfully installed log4r, version 1.0.5
Installing RDoc documentation for log4r-1.0.5...
src/log4r/config.rb:4:0: Unrecognized directive 'nodoc'
....
lots of similar messages
does install any log4r.rb
no error messages except for "gem install log4r":
Attempting local installation of 'log4r'
Local gem file not found: log4r*.gem
Attempting remote installation of 'log4r'
Successfully installed log4r, version 1.0.5
Installing RDoc documentation for log4r-1.0.5...
src/log4r/config.rb:4:0: Unrecognized directive 'nodoc'
....
lots of similar messages
> How are you checking to see if log4r is installed? Try this one if
> you don't mind:
>
> require 'rubygems'
> require 'log4r'
> ObjectSpace.each_object(Class) do |k|
> p k if k.to_s =~ /Log/
> end
>
require 'log4r'
failed.
Did you also do "require 'rubygems'"?
log4r.rb and the dir log4r should be in
/usr/local/lib/ruby/site_ruby/1.8
No. It should be under the gem installation directory. If you do:
gem environment, you'll see which directory that is.
This is a weird one I haven't seen. I appreciate you working through
the problem with me.
Thanks!
Chad
···
On Sun, 26 Sep 2004 05:24:27 +0900, benny <listen@marcrenearns.de> wrote:
no I thought this was only for "on the fly installation".
I really don't want to include the whole rubygems thing
everywhere I need a gem-package
That's life, I'm afraid. It's the price for having the convenience of
RubyGems. Of course, RG could have been designed/implemented
differently, not needing that extra require, but I believe the right
choice was made. If RG is a standard part of Ruby one day, it will no
longer be necessary.
If you object to the keyboarding hassle, set your environment variable
RUBYOPT=rubygems
If you object to the run-time overhead, rest assured that it is fairly
light, I believe.
[...]
but my previous installation also installed into
/usr/local/lib/ruby/site_ruby/1.8
a log4r.rb and the dir log4r, so that I could do a simple
require 'log4r' in my scripts
why doesn't this work anymore?
It's changed in the latest version. It worked before by installing
library stubs which load the gem for you. However, that solution is
fragile, misleading, and pretty ugly, I reckon. After you require
'rubygems' now, any "require" statement will search your site_ruby
directory as well as your installed gems. It's a more elegant and
robust solution, with the associated "hassle".
Cheers,
Gavin
···
On Monday, September 27, 2004, 12:44:31 AM, benny wrote:
That happens RubyGems has been in positive flux for a while, but
0.8 was a very important release, in that the changes you are noticing
shouldn't have to change again.
thank you for your effort
No problem.
Gavin
···
On Monday, September 27, 2004, 4:49:26 AM, benny wrote: