Alright I now know what the issue is. The RHEL computer that I
am doing a remote installation of ruby on rails is not connected to
the internet. The rubygems points it's repository to rubygem.org.
What I need to do is download the gems associated with rails
installation into a file then create a local file on the RHEL
machine and put those gems into that file. Then I need to change
rubygem's default repository to point to the local repository.
I'm not sure which gems need to be in the repository for a nice
clean ruby on rails installation.
Thanks, I'll see what I can do but I do not think I have
privileges to install ruby and rubygems on my current station,
which is a windows computer anywho.
But anyways, where is gems/cache I cannot find that file, I
looked in the rubygems directory and could not find it.
and if I do not need to create a local repository, then (since
i've already downloaded the rails gem) can't I just move the rails
gem somewhere into the rubygems directory and then do a gem install
Sorry, one last question I swear.. Where do the .gem files go? I
gauntlet_rubygems.rb rbconfig rubygems ubygems.rb
libruby-static.a ruby rubygems.rb
inside rubygems i have lots of .rb files and folders 'commands',
'ext' and 'package'
inside ruby i have:
1.8 gem gems site_ruby vendor_ruby
which are all folders.
inside gem and gems i basically have the same thing that is in
the rubygems directory above.
Also, when I put those gem files in some local folder next to
gems, when I do a 'gem install..' won't it still look to
rubygems.org for the gems? So don't I still have to change
something so that it knows where to look for the gems? If so
All the necessary gems are downloaded and are in the directory
this is where we moved the downloaded ruby file (later used to
install ruby) and the downloaded rubygems file (used to
successfully install rubygems-1.3.6).
the installed rubygems1.3.6 is in /usr/local/lib/rubygems
I am receiving a new error when I try to install rails
if i type ' gem install rails ' I get this error:
[root@doss4100rh1 gems]# gem install rails ERROR: http://rubygems.org/ does not appear to
be a repository
ERROR: could not find gem rails locally or in a repository
before it never said 'could not find gem rails locally or in a
if I type 'gem install -l rails -i gems' I get this error:
[root@doss4100rh1 opt]# gem install -l rails -i gems ERROR: Error
actionpack requires rack (~> 1.1.0, runtime)
I noticed that in /usr/local/lib/rubygems/commands there is a
file sources_command.rb and with this you can add a source, but
that source must be a URI... not a directory.
Is there anyway I can get rails to know where to look for these
gems, what other directories can I put these gems into?
I could put them on a localhost server and add a source pointing
to the localhost URI... but this causes problems too because I do
not have rails installed on this windows computer and do not have
permissions to do so. Unless there is a way to start up a server
with just ruby, which is installed on the machine that I am trying
to get rails onto, then I'm pretty much stuck on this as well.
Any other ideas of where to put these .gem files or anything,
I've been playing around with it a little so far, not luck yet.
New problem again (by the way, I really appreciate you hanging
in there with me, thanks a lot)
Rails is finally installed, I installed with that command when
inside the /opt directory, but first I had to install rack-1.1.0
This is great, I created the an application. Although I know I'm
missing the sqlite gem. But my fear is that I'm missing a lot more
gems. When I looked at the rails gem dependencies on this site it
gave me the 5 or so dependencies that are shown in the paragraph
below. When I looked on my computer from home, there are many many
more gems. But I only wnat the ones I need.
inside /opt , where all the gems I installed are, if I do ' ls
actionmailer-2.3.8.gem rubygems-1.3.6 #folder
gems #folder rake-0.8.7.gem
Hello_World#rails_application ruby #folder
Other than this list, and the database gem, are there any
ohh and mongrel I want to get that too.
But other than those, any others that will be necessarily for
clean and smooth development?