Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Can't use local gem, 1.8.6, IntelliJ

Reply
Thread Tools

Can't use local gem, 1.8.6, IntelliJ

 
 
Henrik Rasmussen
Guest
Posts: n/a
 
      03-01-2008
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-forum.com/.

 
Reply With Quote
 
 
 
 
Todd Benson
Guest
Posts: n/a
 
      03-01-2008
On Sat, Mar 1, 2008 at 4:24 AM, Henrik Rasmussen <(E-Mail Removed)> 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

 
Reply With Quote
 
 
 
 
Henrik Rasmussen
Guest
Posts: n/a
 
      03-01-2008
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-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with new windows opening in IntelliJ on MetaCity/Gnome/RH 8.0 Roger Levy Java 0 02-26-2004 08:19 PM
Is there an equivalent (freeware) for Intellij IDEA IDE ? Multicoder4002 Java 3 02-16-2004 02:25 PM
ant ftp and Intellij matt Java 3 01-16-2004 06:37 PM
JSP and IntelliJ IDEA 3 chirs Java 1 12-01-2003 03:55 PM
IDE reviews (IntelliJ, Eclipse, JBuilder) Gena Java 5 08-04-2003 04:46 PM



Advertisments