From: Stefano Crocco Date: 2008-02-01T07:48:09+09:00 Subject: Re: how do you install a local gem? Alle Thursday 31 January 2008, 7stud -- ha scritto: > Stefano Crocco wrote: > > Alle Thursday 31 January 2008, 7stud -- ha scritto: > >> I get the error: > >> > >> $ gem install -r wxruby > >> > >> If it is a local file, do I just cd to the directory the file is in and > >> type: > >> > >> $ gem install wxruby > >> > >> ??? > > > > In linux, you simply do: > > > > gem install gem_file.gem > > /Users/me/Desktop/wxruby-1.9.4-universal-darwin.gem.tar > > > > What I find strange is the name of the file you downloaded, since the > > extension should be .gem, not .gem.tar. Did you get it from rubyforge? > > From > > the rubyforge wxruby page, I could download a file called> > > wxruby-1.9.4-universal-darwin.gem > > > > Of course, being on linux, I can't try to install it. > > > > I hope this helps > > > > Stefano > > Thanks for the response. This is the file I downloaded: > > http://rubyforge.org/frs/download.php/30865/wxruby-1.9.4.tar.gz > > I think OS X automatically unzips a file after I download it producing: > > /Users/me/Desktop/wxruby-1.9.4-universal-darwin.gem.tar This seems even more strange. The file wxruby-1.9.4.tar.gz is not the gem version, so, even if the file was automatically unzipped, it should be called wxruby-1.9.4.tar If you want to use rubygems, you should download this file: http://rubyforge.org/frs/download.php/30889/wxruby-1.9.4-universal-darwin.gem then use gem install wxruby-1.9.4-universal-darwin.gem Stefano