[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Can't use local gem, 1.8.6, IntelliJ

Henrik Rasmussen

3/1/2008 10:25:00 AM

Hi
The objective:
--------------
I am trying to use log4r.

What I do:
----------
I write:

require 'log4r'

What happens:
-------------
, but get this message:

in `require': no such file to load -- log4r (LoadError)

The setting:
------------
I am using 1.8.6 and the IntelligJ ruby plugin. Version 1.8.6 should
include log4r.
When I run gems list it is in the list.

* * *** * *** * *
* * * * * * * *
*** ** * *** * *
* * * * *
* * *** *** * * *

Please help.
--
Posted via http://www.ruby-....

2 Answers

Todd Benson

3/1/2008 10:37:00 AM

0

On Sat, Mar 1, 2008 at 4:24 AM, Henrik Rasmussen <herasmus69@hotmail.com> wrote:
> Hi
> The objective:
> --------------
> I am trying to use log4r.
>
> What I do:
> ----------
> I write:
>
> require 'log4r'
>
> What happens:
> -------------
> , but get this message:
>
> in `require': no such file to load -- log4r (LoadError)
>
> The setting:
> ------------
> I am using 1.8.6 and the IntelligJ ruby plugin. Version 1.8.6 should
> include log4r.
> When I run gems list it is in the list.
>
> * * *** * *** * *
> * * * * * * * *
> *** ** * *** * *
> * * * * *
> * * *** *** * * *
>
> Please help.

If it is not a path issue, you might need to do this...

require 'rubygems'
require 'log4r'

Todd

Henrik Rasmussen

3/1/2008 2:15:00 PM

0

Thanks.

It turned out to be path issue.

Anyway, the way Ruby uses modules, require and includes is a bit
confusing to me.
--
Posted via http://www.ruby-....