[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

$GEM_HOM

Derek Smith

4/15/2009 11:25:00 PM

I am running cygwin with ruby version ruby 1.8.7 (2008-08-11 patchlevel
72) [i386-cygwin]

When I installed zipruby I noticed this:

make install
mkdir -p /usr/lib/ruby/gems/1.8/gems/gems/gems/zipruby-0.2.9/lib
/usr/bin/install -c -m 0755 zipruby.so
/usr/lib/ruby/gems/1.8/gems/gems/gems/zipruby-0.2.9/lib


Why do I have three gems subdirs? And where should all my gems be
centrally located and what should $GEM_HOME be? I would think it would
be one location for my situation...my home laptop used for ruby coding
for my night work apart from my full time job.

Also: I installed rubygems, but I am still seeing this below"

$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'zip/zip'
=> true
irb(main):003:0> require 'rubygems'
=> false
irb(main):004:0>

Smith@smith-laptop /usr/lib/ruby/gems/1.8/gems
$ gem list --local

*** LOCAL GEMS ***

appinstaller (0.0.1)
httparty (0.3.1)
rubygems-update (1.3.2, 1.3.1)
rubyzip (0.9.1)
tags4free (0.1.3)
ziplookup (1.0.0)


Smith@smith-laptop /usr/lib/ruby/gems/1.8/gems
$ echo $GEM_HOME
/usr/lib/ruby/gems/1.8/gems/gems


thank you!
--
Posted via http://www.ruby-....

3 Answers

Glen Holcomb

4/16/2009 1:38:00 PM

0

On Wed, Apr 15, 2009 at 5:24 PM, Derek Smith <derekbellnersmith@yahoo.com>w=
rote:

> I am running cygwin with ruby version ruby 1.8.7 (2008-08-11 patchlevel
> 72) [i386-cygwin]
>
> When I installed zipruby I noticed this:
>
> make install
> mkdir -p /usr/lib/ruby/gems/1.8/gems/gems/gems/zipruby-0.2.9/lib
> /usr/bin/install -c -m 0755 zipruby.so
> /usr/lib/ruby/gems/1.8/gems/gems/gems/zipruby-0.2.9/lib
>
>
> Why do I have three gems subdirs? And where should all my gems be
> centrally located and what should $GEM_HOME be? I would think it would
> be one location for my situation...my home laptop used for ruby coding
> for my night work apart from my full time job.
>
> Also: I installed rubygems, but I am still seeing this below"
>
> $ irb
> irb(main):001:0> require 'rubygems'
> =3D> true
> irb(main):002:0> require 'zip/zip'
> =3D> true
> irb(main):003:0> require 'rubygems'
> =3D> false
> irb(main):004:0>
>
> Smith@smith-laptop /usr/lib/ruby/gems/1.8/gems
> $ gem list --local
>
> *** LOCAL GEMS ***
>
> appinstaller (0.0.1)
> httparty (0.3.1)
> rubygems-update (1.3.2, 1.3.1)
> rubyzip (0.9.1)
> tags4free (0.1.3)
> ziplookup (1.0.0)
>
>
> Smith@smith-laptop /usr/lib/ruby/gems/1.8/gems
> $ echo $GEM_HOME
> /usr/lib/ruby/gems/1.8/gems/gems
>
>
> thank you!
> --
> Posted via http://www.ruby-....
>
>
I don't see a problem with having gems/gems/gems as long as all your gems
are there.
Also the behavior you are seeing in irb is perfectly normal. false just
means it didn't load rubygems (because it has already been loaded) it
doesn't mean there was an error, or that the load failed.

--=20
"Hey brother Christian with your high and mighty errand, Your actions speak
so loud, I can=92t hear a word you=92re saying."

-Greg Graffin (Bad Religion)

Eric Hodel

4/16/2009 6:16:00 PM

0


On Apr 15, 2009, at 16:24, Derek Smith wrote:

> I am running cygwin with ruby version ruby 1.8.7 (2008-08-11
> patchlevel
> 72) [i386-cygwin]
>
> When I installed zipruby I noticed this:
>
> make install
> mkdir -p /usr/lib/ruby/gems/1.8/gems/gems/gems/zipruby-0.2.9/lib
> /usr/bin/install -c -m 0755 zipruby.so
> /usr/lib/ruby/gems/1.8/gems/gems/gems/zipruby-0.2.9/lib
>
>
> Why do I have three gems subdirs? And where should all my gems be
> centrally located and what should $GEM_HOME be? I would think it
> would
> be one location for my situation...my home laptop used for ruby coding
> for my night work apart from my full time job.
>
> Smith@smith-laptop /usr/lib/ruby/gems/1.8/gems
> $ echo $GEM_HOME
> /usr/lib/ruby/gems/1.8/gems/gems


Typically it isn't set:

$ echo $GEM_HOME

$

Derek Smith

4/16/2009 10:25:00 PM

0

Glen Holcomb wrote:
> On Wed, Apr 15, 2009 at 5:24 PM, Derek Smith
> <derekbellnersmith@yahoo.com>wrote:
>
>>
>> irb(main):002:0> require 'zip/zip'
>> appinstaller (0.0.1)
>>
>>
>> thank you!
>> --
>> Posted via http://www.ruby-....
>>
>>
> I don't see a problem with having gems/gems/gems as long as all your
> gems
> are there.
> Also the behavior you are seeing in irb is perfectly normal. false just
> means it didn't load rubygems (because it has already been loaded) it
> doesn't mean there was an error, or that the load failed.
>
> --
> "Hey brother Christian with your high and mighty errand, Your actions
> speak
> so loud, I canâ??t hear a word youâ??re saying."
>
> -Greg Graffin (Bad Religion)


Ooops...meant to say rubyzip:

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


$ gem list --local

*** LOCAL GEMS ***

appinstaller (0.0.1)
httparty (0.3.1)
rubygems-update (1.3.2, 1.3.1)
rubyzip (0.9.1)
tags4free (0.1.3)
ziplookup (1.0.0)
--
Posted via http://www.ruby-....