rubgems in user directory - HELP!

I'm trying to install ruby on rails to a host server that I don't have root access to. The server already has ruby.

I've followed the info on these two pages for installing rubygems in a non-root user directory: http://rubygems.org/read/chapter/3 http://wiki.rubyonrails.com/rails/pages/HowToUseMultipleGemRepositories

rubygems appears to be installed correctly but when I do "gem install rails" I get this error:

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)     Permission denied - connect(2)(Errno::EACCES)

I've changed my $PATH to include the gem installation dir, I have my $RUBYLIB set to /home/geminstall/lib/ruby/site_ruby/1.8, and have set the $GEM_HOME path to my gem repository.

is it possible to be completely unable to install ROR on a hosting company server because of lack of permissions? or am I missing something?

please help!

If you just need a different version of rails than your host provides you are better off to just install rails (or freeze it) into your application’s vendor/rails directory.

It is possible to get your own version of Rubygems up and running on a shared host. Here’s what I did on Textdrive a while back.

http://www.stevelongdo.com/articles/2006/08/31/installing-a-patched-rubygems-on-textdrive

actually, the host (aplus.net) has no rails or rubygems installed, only ruby, and I don't have access to it's dir (and the host offers no help or support for installing ror)

I'm limited to my /home/myusername level

I was getting the typical: ..../bin/gem:9:in `require': no such file to load -- rubygems (LoadError)

when trying to do "gem install rails", until I set the RUBYLIB path to /home/geminstall/lib/ruby/site_ruby/1.8 and now I'm getting this strange error:

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)     Permission denied - connect(2)(Errno::EACCES)

which I can't seem to find anyone else getting in this situation. I can't seem to get past this point.

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)

Permission denied - connect(2)(Errno::EACCES)

I would imagine that you are unable to connect to the gemserver either because of permissions or some sort of network/firewall configuration on the host.

Fortunately you can copy the gems from your local repository up to the rubygems that you have installed on your hosting provider.

that's a good point, I'll just try copy my gems from my hard drive.

thanks Steve!