views:

50

answers:

1

First let me say I cannot do gem install, I don't know why. Probably because I live in China and the firewall random things.

So I have to locally install gems. For example, i want to install this gem riddle. But this gem downloads as a tar or zip and when i open it it is a folder not a .gem file.

So what to do?

+3  A: 

You can do gem build whatever.gemspec inside of the directory that you untar/unzip -- that will produce a .gem file, then do gem install whatever.gem`.

Ben
Thanks.And this gem install whatever.gmebut that hangs for me and does nothing
Sam
WARNING: RubyGems 1.2+ index not found for: RubyGems will revert to legacy indexes degrading performance.Bulk updating Gem source index for: http://gems.rubyforge.org/That is the error i get
Sam
BTW - I just fixed the error in the comment above. Use a proxy or change your connection to a different source. This probably won't affect people in the 1st world, But I'm in China and this was absolutely a nightmare.
Sam