Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Justin Bailey
RE: How to install Rails with RubySSPI [ reply ]  
2006-11-15 16:19
You probably need to set the environment variable RUBYOPT so ruby gems are required automatically. It's one of the options you can pick when installing with the one click installer. At the command line you can type this to do it:

RUBYOPT=-rubygems

If that is already set, I think the gem is not installed correctly. Try reinstalling.

By: Laurent Bois
RE: How to install Rails with RubySSPI [ reply ]  
2006-11-15 15:14
OK,

After several tries (even with Ruby 1.9) i finally chose to reinstall everything :
I use the Ruby 1.8.5 One Cick Installer :
http://rubyforge.org/frs/download.php/12751/ruby185-21.exe

Then nistalled manually the rubysspi.

Copy of spa.rb to ruby_site.

Now i get the error :

ruby -rspa 'C:\Local\ruby\bin\gem' install rails

c:/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- rubysspi/proxy_auth (LoadError)
from c:/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
in `require'
from C:\Local\ruby\lib\ruby\site_ruby/spa.rb:18

Any idea?

By: Laurent Bois
How to install Rails with RubySSPI [ reply ]  
2006-11-15 10:49
Hi,

I'm working on Windows XP
I've installed Ruby 1.8.5
Then i downloaded the .gem for rubysspi
I set GEM_HOME and RUBYLIB env. var

I install the rubysspi (locally):
gem install /path/to/rubysspi-xxx.gem

Once installed , i copy the spa.rb file from rubysspi gem folder to my RUBY_HOME/lib/site_ruby/1.8 (this lib path is set in my RUBYLIB)

I set the HTTP_PROXY env variable

Then i do not succeed in installing rails
The command i'd like to run is

ruby -rspa 'path/to/gem.cmd' install rails

But i could not find the gem command in under Ruby Home root path!!!
How proceed

Any help is welcome

PS: I'm behind an authorized NTLM Proxy/firewall in my company and like to be able to install remote gems and especially Rails