ubuntu and Log4r

J

jansenh

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
 
P

Phlip

jansenh said:
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. ;-)
 
R

Reid Thompson

Phlip said:
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. ;-)
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.
 
P

Phlip

Reid said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top