Ubuntu and Log4r

Hi Forum.

Not sure where this issue belongs… but anyhow: My Log4r ain’t working

1 . I installed ruby-1.8.5 from source in /usr/src. (based on some blog
recomendation…)
2. I installed rybygems-0.8.11 in /usr/src/

Both are working - I did a ‘sudo gem install log4r’ and the package
installed itself.

3 . But using Log4r inside my ruby scripts is NOT working.

When I search for the Log4r files, I find them in
/usr/local/lib/ruby/gems/1.8/gems/log4r-1.0.5/

And from here I do not know how to proceed? I haven’t been arond linux
in years … :-/ Anyone want to help me?

/jansenh

jansenh wrote:

When I search for the Log4r files, I find them in
/usr/local/lib/ruby/gems/1.8/gems/log4r-1.0.5/

Ubuntu shares with Mandriva an idiotic “–prefix bug”. Not sure if the
bug’s
on the Ruby side or the Linux side. Heres’ the workaround:

$ ll /usr/local/lib/ruby
lrwxrwxrwx 1 root root 13 Sep 13 20:13 /usr/local/lib/ruby ->
/usr/lib/ruby/

I just used ln -s to link the one folder to the other.

BTW Ubuntu had so many other Ruby problems I switched to Mandriva. For,
uh,
less of them. :wink:

Phlip wrote:

/usr/lib/ruby/

I just used ln -s to link the one folder to the other.

BTW Ubuntu had so many other Ruby problems I switched to Mandriva. For, uh,
less of them. :wink:

configure and build and install ruby with --prefix=/usr
then rm /usr/bin/ruby
then ln -s /usr/bin/ruby-1.8 /usr/bin/ruby

then install gems
then use gems to install whatever gems you need.

Reid T. wrote:

configure and build and install ruby with --prefix=/usr

Are you implying one passes the --prefix argument to all three of the
configure, make, and make install commands?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs