Welcome to Working With Rails


Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
gems installation "offline:
6 Posts
gems installation "offline:

show us:

gem environment gem list

--local just restrict searching gems for a local repository

try to install via

gem install ./package.gem --local

@amit - i downloaded the gem and ran the command... i got an error which says not found in local repository

download gem from

http://www.tmtm.org/en/mysql/ruby/ or http://rubyforge.vm.bytemark.co.uk/gems/

after that go to project dir in cmd type gem install or

gem install --local

It will install gem in your m/c

I'd seen this page before - http://www.tmtm.org/en/mysql/ruby/ ... it has instructions for installation on Linux machines, but not for Windows... Any help on that?

Just go to the "gem's homepage":http://www.tmtm.org/en/mysql/ruby/, download the package, transfer it to your offline host, and follow the installation instructions.

More generally (ie. for other gems) you can use:

gem search -rd gem_name

To find out the details of the gem's homepage, and then proceed as above. Sometimes the install instructions are in the tarball itself, in a README or INSTALL file.

Any idea how to install gems "offline"? I need to install the mysql gem but the comp does not have net access..

6 Posts
Login to add your message