Installing a gem locally (RubyForge.org unreachable)

P

Phrogz

I'm trying to get a coworker set up, and rubygems isn't working,
because rubyforge.org is down[1].

I have the .gem file on my machine. How can I tell rubygems "Hey, the
gem is sitting right here in this very directory! Install from this!"?

[1] Tracing route to rubyforge.org [66.92.150.242]
over a maximum of 30 hops:

1 <10 ms <10 ms <10 ms 69.46.18.1
2 <10 ms <10 ms <10 ms 69.46.31.77
3 1 ms 1 ms 1 ms 38.112.240.53
4 2 ms 2 ms 2 ms 66.28.4.141
5 11 ms 11 ms 12 ms 66.28.4.154
6 31 ms 30 ms 30 ms 154.54.10.130
7 30 ms 30 ms 31 ms 205.171.21.101
8 32 ms 31 ms 33 ms 205.171.8.154
9 30 ms 37 ms 31 ms 205.171.8.222
10 30 ms 37 ms 38 ms 205.171.251.14
11 30 ms 31 ms 30 ms 65.126.30.174
12 * * * Request timed out.
 
P

Phrogz

Just as I posted this, rubyforge.org seems to be back up again. So
crisis averted.

But the original question I've still wondered for a while now: How do
you ask RubyGems to install a supplied .gem file?
 
D

Damphyr

Jagged said:
gem install rails -l (that is an "el")
Well, this is the correct way, but you can also run 'gem install ' on
the directory you have the gem file (the dirty lazy way :) ).
gem looks for a local file before going "overseas".
Cheers,
V.-
--
http://www.braveworld.net/riva

____________________________________________________________________
http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.
 
P

Phrogz

Does that assume that there is a "rails.gem" file in the current
directory? In the gems library folder? Somewhere else?
 
E

Ezra Zygmuntowicz

Does that assume that there is a "rails.gem" file in the current
directory? In the gems library folder? Somewhere else?

One unambigous way to install a .gem file locally is to cd into the
dir where the .gem file is and spell it out:

gem install mygem.gem

This always seems to work for me.
Cheers-
-Ezra Zygmuntowicz
Yakima Herald-Republic
WebMaster
http://yakimaherald.com
509-577-7732
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top