[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Beginners' question: trouble with "gem install ClothRed"

Adriano Ferreira

4/11/2007 12:47:00 PM

Hi.

I tried to experiment with ClothRed, but as I am very new to Ruby and
gems, I am having some trouble getting it right.

First, I am using Ruby on Cygwin. I installed gems by downloading the
tarball and executing "setup.rb". That seemed to worked alright.

Then I tried
$ gem install ClothRed

and I discovered I was missing the network configuration, because I am
behind an authenticating proxy. So I wrote .gemrc into my home
directory. Like this:

# ~/.gemrc

gem: --http-proxy http://username:password@squid-proxy:3128/

and then I did

$ gem install ClothRed
Successfully installed ClothRed, version 0.1.0
Installing ri documentation for ClothRed-0.1.0...
File not found: lib

But

$ irb
irb(main):001:0> require "ClothRed"
LoadError: no such file to load -- ClothRed
from (irb):1:in `require'
from (irb):1

Any advice? What I am doing wrong?

Best regards,
Adriano Ferreira.

4 Answers

Peter Szinek

4/11/2007 12:58:00 PM

0

> Any advice? What I am doing wrong?

try to require 'rubygems' first.

HTH,
Peter


http://www.rubyra... :: Ruby and Web2.0 blog
http://s... :: Ruby web scraping framework
http://rubykitch... :: The indexed archive of all things Ruby


Phillip Gawlowski

4/11/2007 1:03:00 PM

0

Adriano Ferreira wrote:
> $ gem install ClothRed
> Successfully installed ClothRed, version 0.1.0
> Installing ri documentation for ClothRed-0.1.0...
> File not found: lib
>
> But
>
> $ irb
> irb(main):001:0> require "ClothRed"
> LoadError: no such file to load -- ClothRed
> from (irb):1:in `require'
> from (irb):1
>
> Any advice? What I am doing wrong?

The problem is with the gem. Gonna fix it now.

Oh, and ClothRed won't be too useful for you, currently ;)

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan....

Rule of Open-Source Programming #37:

Duplicate effort is inevitable. Live with it.

Adriano Ferreira

4/11/2007 1:11:00 PM

0

On 4/11/07, Phillip Gawlowski <cmdjackryan@googlemail.com> wrote:
> Adriano Ferreira wrote:
> > $ gem install ClothRed
> > Successfully installed ClothRed, version 0.1.0
> > Installing ri documentation for ClothRed-0.1.0...
> > File not found: lib
> >
> > But
> >
> > $ irb
> > irb(main):001:0> require "ClothRed"
> > LoadError: no such file to load -- ClothRed
> > from (irb):1:in `require'
> > from (irb):1
> >
> > Any advice? What I am doing wrong?

On 4/11/07, Peter Szinek <peter@rubyrailways.com> wrote:
> > Any advice? What I am doing wrong?
>
> try to require 'rubygems' first.
>

I tried after thinking for a while.

$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'clothred'
LoadError: no such file to load -- clothred
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from (irb):2

>
> The problem is with the gem. Gonna fix it now.

Ok. Thanks.

> Oh, and ClothRed won't be too useful for you, currently ;)

That's fine. I like the idea of converting HTML to Textile and would
like to see this library growing up.

Cheers,
Adriano.

Phillip Gawlowski

4/11/2007 1:40:00 PM

0

Adriano Ferreira wrote:

>> Oh, and ClothRed won't be too useful for you, currently ;)
>
> That's fine. I like the idea of converting HTML to Textile and would
> like to see this library growing up.

I'd appreciate any feedback, really.

A new .gem has been uploaded to rubyforge.

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan....

Rule of Open-Source Programming #1:

Don't whine unless you are going to implement it yourself.