Beginners' question: trouble with "gem install ClothRed"


#1

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 F…


#2

Any advice? What I am doing wrong?

try to require ‘rubygems’ first.

HTH,
Peter

http://www.rubyrailways.com :: Ruby and Web2.0 blog
http://scrubyt.org :: Ruby web scraping framework
http://rubykitchensink.ca/ :: The indexed archive of all things Ruby


#3

Adriano F. wrote:

   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 :wink:


Phillip “CynicalRyan” Gawlowski
http://cynicalryan.110mb.com/

Rule of Open-Source Programming #37:

Duplicate effort is inevitable. Live with it.


#4

On 4/11/07, Phillip G. removed_email_address@domain.invalid wrote:

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 S. removed_email_address@domain.invalid 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:inrequire’
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 :wink:

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

Cheers,
Adriano.


#5

Adriano F. wrote:

Oh, and ClothRed won’t be too useful for you, currently :wink:

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.110mb.com/

Rule of Open-Source Programming #1:

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