I have been attempting to check out Ruby on Rails after reading "Rolling with Ruby on Rails" on O''riely''s onlamp.com http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html I''m having difficuly running the "gem install rails --remote" command. I''m behind a corporate firewall and proxy that uses authentication. My server is running Windows 2003. I''ve got MySQL 4.1.9 and Ruby 1.8.2 (I honestly am shooting in the dark so I downloaded rubygems0.8.4 and rails0.9.4; I''m not sure what else to do). I was able to get the command to use the proxy by setting a temporary environment variable http_proxy=<server_name> but now I need to pass the proxy my credentials so that it will allow a connection. By the way, what type of connection is this program trying to establish? FTP? Is there any way to download the required files and do a local install? I found that I can run the above command with a local flag instead of --remote. Thanks, Chris
* Qolinar <qolinar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [0148 14:48]:> I''m having difficuly running the "gem install rails --remote" command.> By the way, what type of connection is this program trying to establish? FTP?http (rubygems can handle http or ftp urls). But it can''t do proxy auth, unfortunately.> Is there any way to download the required files and do a local > install? I found that I can run the above command with a local flag > instead of --remote.Yes, just grab the gems and then ''gem install foobar.gem'' will do it. you''ll need: rake actionpack actionmailer activerecord rails - grab them from http://gems.rubyforge.org/gems/ -- ''Oh, wait you''re serious. Let me laugh even harder.'' -- Bender Rasputin :: Jack of All Trades - Master of Nuns
If you are on a Windows network, and you''re trying to go through a Microsoft proxy server, it may be configured to require NTLM authentication. This is relatively unsupported in the open source world. If this is the case, there is a little known shim that is very helpful. If your proxy is named abcproxy, then Start/Run and enter \\abcproxy. You''ll see an mspclnt folder. Install the software from there, and enable it. Then get your web browser running with proxy turned off in the browser. The shim snags Winsock calls and routes them through the proxy. Kevin Kleinfelter Programming Manager, Atlanta / IT Lead, Wells Fargo Projects Regulus Group, LLC 770-806-2476 -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Qolinar Sent: Wednesday, January 26, 2005 9:42 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] proxy authentication I have been attempting to check out Ruby on Rails after reading "Rolling with Ruby on Rails" on O''riely''s onlamp.com http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html I''m having difficuly running the "gem install rails --remote" command. I''m behind a corporate firewall and proxy that uses authentication. My server is running Windows 2003. I''ve got MySQL 4.1.9 and Ruby 1.8.2 (I honestly am shooting in the dark so I downloaded rubygems0.8.4 and rails0.9.4; I''m not sure what else to do). I was able to get the command to use the proxy by setting a temporary environment variable http_proxy=<server_name> but now I need to pass the proxy my credentials so that it will allow a connection. By the way, what type of connection is this program trying to establish? FTP? Is there any way to download the required files and do a local install? I found that I can run the above command with a local flag instead of --remote. Thanks, Chris _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Wow! I finally got this working. I had to: 1. download and run setup.rb fro rubygems 2. download, run install.rb and gem install actionmailer.gem 3. download, run install.rb and gem install actionpack.gem 4. download, run install.rb and gem install activerecord.gem 5. download, run install.rb and gem install rake.gem Then I was able to get "gem install rails" to work properly. I''m now able to run "rails cookbook" (as per the onlamp article http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html ) Anyone have any idea why this was so difficult for me besides the fact that I''m on a M$ server? :) On Wed, 26 Jan 2005 09:41:32 -0500, Qolinar <qolinar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have been attempting to check out Ruby on Rails after reading > "Rolling with Ruby on Rails" on O''riely''s onlamp.com > > http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html > > I''m having difficuly running the "gem install rails --remote" command. > I''m behind a corporate firewall and proxy that uses authentication. My > server is running Windows 2003. I''ve got MySQL 4.1.9 and Ruby 1.8.2 (I > honestly am shooting in the dark so I downloaded rubygems0.8.4 and > rails0.9.4; I''m not sure what else to do). I was able to get the > command to use the proxy by setting a temporary environment variable > http_proxy=<server_name> but now I need to pass the proxy my > credentials so that it will allow a connection. > > By the way, what type of connection is this program trying to establish? FTP? > > Is there any way to download the required files and do a local > install? I found that I can run the above command with a local flag > instead of --remote. > > Thanks, > > Chris >
Qolinar wrote:> > Wow! I finally got this working. I had to: > > 1. download and run setup.rb fro rubygems > 2. download, run install.rb and gem install actionmailer.gem > 3. download, run install.rb and gem install actionpack.gem > 4. download, run install.rb and gem install activerecord.gem > 5. download, run install.rb and gem install rake.gem > > Then I was able to get "gem install rails" to work properly. I''m now > able to run "rails cookbook" (as per the onlamp article > http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html ) > > Anyone have any idea why this was so difficult for me besides the fact > that I''m on a M$ server? :)It shouldn''t be that difficult (although, congrats on finding a workaround!). Basically, you downloaded the "gems" (ruby packages, similar to jar files) manually and then installed them. This bypassed the need to get through your proxy server. Curt> On Wed, 26 Jan 2005 09:41:32 -0500, Qolinar <qolinar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I have been attempting to check out Ruby on Rails after reading > > "Rolling with Ruby on Rails" on O''riely''s onlamp.com > > > > http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html > > > > I''m having difficuly running the "gem install rails --remote" command. > > I''m behind a corporate firewall and proxy that uses authentication. My > > server is running Windows 2003. I''ve got MySQL 4.1.9 and Ruby 1.8.2 (I > > honestly am shooting in the dark so I downloaded rubygems0.8.4 and > > rails0.9.4; I''m not sure what else to do). I was able to get the > > command to use the proxy by setting a temporary environment variable > > http_proxy=<server_name> but now I need to pass the proxy my > > credentials so that it will allow a connection. > > > > By the way, what type of connection is this program trying to > establish? FTP? > > > > Is there any way to download the required files and do a local > > install? I found that I can run the above command with a local flag > > instead of --remote. > > > > Thanks, > > > > Chris > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 >
* Qolinar <qolinar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [0127 18:27]:> I noticed that the rails.zip came with actionmailer, actionpack and > actionrecord as seen under \rails\vendor > > However, I already downloaded the most recent versions of each. I > unzipped them and then ran the install.rb for each one. Many commands > scrolled up the screen. I was able to track down that each one > installed files into \ruby\lib\ruby\site_ruby\1.8 but I''m still unable > to get the gem install rails command to work.Not sure what the zipped files are, maybe someone else can tell you. Assuming they''re the installers, you''ve probably got rails now then :) All gems gains you over installing the tarball is the ''rails'' command and slightly less painful upgrades.> > I''m trying to find documentation as to where to put the zip''d files > > and the *.gem files but I''m not having much success. Plus everytime I > > try to install one of the above, I get the following: > > > > C:\ruby>"C:\ruby\bin\ruby.exe" "C:\ruby\bin\gem" install railsDid you not see the line in the mail below? That should have been C:\ruby>"C:\ruby\bin\ruby.exe" "C:\ruby\bin\gem" install rails-0.9.5.gem (if that does''nt find the other gems in the local folder, do them in the order rake activerecord actionpack actionmailer rails )> > > > On Wed, 26 Jan 2005 16:10:49 +0000, Dick Davies > > <rasputnik-ogHSZ3ARDZIOXkKaSkYkkl6hYfS7NtTn@public.gmane.org > wrote: > > > * Qolinar <qolinar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > [0148 14:48]: > > > > I''m having difficuly running the "gem install rails --remote" command. > > > > > > > By the way, what type of connection is this program trying to establish? FTP? > > > > > > http (rubygems can handle http or ftp urls). > > > But it can''t do proxy auth, unfortunately. > > > > > > > Is there any way to download the required files and do a local > > > > install? I found that I can run the above command with a local flag > > > > instead of --remote. > > > > > > Yes, just grab the gems and then ''gem install foobar.gem'' will do it.-- ''My life, and by extension everyone else''s, is meaningless.'' -- Bender Rasputin :: Jack of All Trades - Master of Nuns
On Wed, 26 Jan 2005 09:41:32 -0500, Qolinar <qolinar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I''m having difficuly running the "gem install rails --remote" command. > I''m behind a corporate firewall and proxy that uses authentication. My > server is running Windows 2003.> I was able to get the > command to use the proxy by setting a temporary environment variable > http_proxy=<server_name> but now I need to pass the proxy my > credentials so that it will allow a connection.The underlying problem is that gem uses open-uri which doesn''t support proxy authentication. I recently sent a patch for open-uri to both rubygems-developers and ruby-dev that adds basic proxy authentication. You may try searching the appropriate list archives for it. Note that the current version of rubygems uses a more recent version of open-uri than in the standard library so that''s the one you absolutely need to patch if you want it to work. -- Neil Kohl nakohl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
For dealing with NTLM authenticated proxies, you may want to try out apserver. A simple python script you configure with your NTLM login details. It then acts as a non-authenticating proxy on your local PC, forwarding your requests with all the NTLM headers in place. http://apserver.sf.net On Wed, 26 Jan 2005 21:52:16 -0500, Neil Kohl <nakohl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Wed, 26 Jan 2005 09:41:32 -0500, Qolinar <qolinar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I''m having difficuly running the "gem install rails --remote" command. > > I''m behind a corporate firewall and proxy that uses authentication. My > > server is running Windows 2003. > > > I was able to get the > > command to use the proxy by setting a temporary environment variable > > http_proxy=<server_name> but now I need to pass the proxy my > > credentials so that it will allow a connection. > > The underlying problem is that gem uses open-uri which doesn''t support > proxy authentication. I recently sent a patch for open-uri to both > rubygems-developers and ruby-dev that adds basic proxy authentication. > You may try searching the appropriate list archives for it. > > Note that the current version of rubygems uses a more recent version > of open-uri than in the standard library so that''s the one you > absolutely need to patch if you want it to work. > > -- > Neil Kohl > nakohl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cheers Koz