Hello, I found this message in the archive and i wondered if anybody has a solution?! I do this $>gem install rails --remote Attempting remote installation of ''rails'' Updating Gem source index for: http://gems.rubyforge.org The, the program hangs completely. I see 0 network or CPU activity, and after about 1/2 an hour, i killed it. Ctrl-C or other means don''t work, i have to shut down the dos prompt. I did uninstall and re-install Ruby, and i am able to install gems manually - but then they don''t do the dependencies... The same thing happens when i just type "gems update" - it gets stuck after "Updating Gem source index for: http://gems.rubyforge.org"... Thanks for any help Nik
On 5/29/05, nikolaus heger <nikster-ee4meeAH724@public.gmane.org> wrote:> I found this message in the archive and i wondered if anybody has a solution?!I''ve observed this (gems update/install freezing) on Windows XP Pro (SP2, with all the latest security fixes) too. Sometimes it works but it''s always slower than under all unix platforms I''ve tried it it on. I have no fix. -- David Vincelli
Where you behind a proxy when you did that? On 5/29/05, nikolaus heger <nikster-ee4meeAH724@public.gmane.org> wrote:> Hello, > > I found this message in the archive and i wondered if anybody has a solution?! > > I do this > $>gem install rails --remote > Attempting remote installation of ''rails'' > Updating Gem source index for: http://gems.rubyforge.org > > The, the program hangs completely. I see 0 network or CPU activity, and after > about 1/2 an hour, i killed it. Ctrl-C or other means don''t work, i have to shut > down the dos prompt. > > I did uninstall and re-install Ruby, and i am able to install gems manually - > but then they don''t do the dependencies... > > The same thing happens when i just type "gems update" - it gets stuck after > "Updating Gem source index for: http://gems.rubyforge.org"... > > Thanks for any help > > Nik > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- http://deezsombor.blogspot.com
On May 30, 2005, at 15:15, Dee Zsombor wrote:> Where you behind a proxy when you did that?No, no proxy. I also tried it on the Mac - no problems over the same internet connection. I think this rules out any funky network configuration issues. Killing ZoneAlarm did not help either. I did not uninstall it though... I am using Windows XP SP2 with all the latest fixes installed. Nik> On 5/29/05, nikolaus heger <nikster-ee4meeAH724@public.gmane.org> wrote: >> Hello, >> >> I found this message in the archive and i wondered if anybody has a >> solution?! >> >> I do this >> $>gem install rails --remote >> Attempting remote installation of ''rails'' >> Updating Gem source index for: http://gems.rubyforge.org >> >> The, the program hangs completely. I see 0 network or CPU activity, >> and after >> about 1/2 an hour, i killed it. Ctrl-C or other means don''t work, i >> have to shut >> down the dos prompt. >> >> I did uninstall and re-install Ruby, and i am able to install gems >> manually - >> but then they don''t do the dependencies... >> >> The same thing happens when i just type "gems update" - it gets stuck >> after >> "Updating Gem source index for: http://gems.rubyforge.org"... >> >> Thanks for any help >> >> Nik >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > -- > http://deezsombor.blogspot.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
That''s strange! As workaround I would suggest a local gem install using the cached gems, since you have already downloaded packages for the mac. On 5/31/05, nikolaus heger <nikster-ee4meeAH724@public.gmane.org> wrote:> > On May 30, 2005, at 15:15, Dee Zsombor wrote: > > > Where you behind a proxy when you did that? > > No, no proxy. > > I also tried it on the Mac - no problems over the same internet > connection. I think this rules out any funky network configuration > issues. > > Killing ZoneAlarm did not help either. I did not uninstall it though... > > I am using Windows XP SP2 with all the latest fixes installed. > > Nik > > > On 5/29/05, nikolaus heger <nikster-ee4meeAH724@public.gmane.org> wrote: > >> Hello, > >> > >> I found this message in the archive and i wondered if anybody has a > >> solution?! > >> > >> I do this > >> $>gem install rails --remote > >> Attempting remote installation of ''rails'' > >> Updating Gem source index for: http://gems.rubyforge.org > >> > >> The, the program hangs completely. I see 0 network or CPU activity, > >> and after > >> about 1/2 an hour, i killed it. Ctrl-C or other means don''t work, i > >> have to shut > >> down the dos prompt. > >> > >> I did uninstall and re-install Ruby, and i am able to install gems > >> manually - > >> but then they don''t do the dependencies... > >> > >> The same thing happens when i just type "gems update" - it gets stuck > >> after > >> "Updating Gem source index for: http://gems.rubyforge.org"... > >> > >> Thanks for any help > >> > >> Nik > >> _______________________________________________ > >> Rails mailing list > >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > > > > > > -- > > http://deezsombor.blogspot.com > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > >-- http://deezsombor.blogspot.com
Hi *, I have exactly the same problem with the freezing gem installer on my two XP SP2 machines but everything works fine with Ubuntu and FC3.> That''s strange! As workaround I would suggest a local gem installI did a local install - that worked. But when I try to use webrick with a demo app , I always get a connection timeout (it seems that webrick can''t bind to a socket). So I confiured Apache (without fcgi at first) and a simple "Hello World" worked. But as soon as I started to use ActiveRecord which tries to connect to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs. This makes me think that there''s maybe a conflict between the networking implementation of the latest Ruby distribution and a fully patched XP SP2 - as everything that uses networking seems to hang ??! I remember reading something about one of the hotfixes this year (or was it in SP2 ...) limited the functionality of "RAW-sockets".... Any ideas ? Max
Do you perhaps have the windows XP firewall turned on? It might be silently blocking netwrok traffic (IIRC the firewall first appeared in SP2). On 6/15/05, Maximilian Schoefmann <schoefma-iTXTfpxOz/5YiKXMg8wJIg@public.gmane.org> wrote:> Hi *, > > I have exactly the same problem with the freezing gem installer on my two XP > SP2 machines but everything works fine with Ubuntu and FC3. > > > That''s strange! As workaround I would suggest a local gem install > > I did a local install - that worked. But when I try to use webrick with a demo > app , I always get a connection timeout (it seems that webrick can''t bind to > a socket). > So I confiured Apache (without fcgi at first) and a simple "Hello World" > worked. But as soon as I started to use ActiveRecord which tries to connect > to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs. > > This makes me think that there''s maybe a conflict between the networking > implementation of the latest Ruby distribution and a fully patched XP SP2 - > as everything that uses networking seems to hang ??! > I remember reading something about one of the hotfixes this year (or was it in > SP2 ...) limited the functionality of "RAW-sockets".... > > Any ideas ? > > Max > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- sam http://www.magpiebrain.com/
Could you connect to MySql with other tools? For exapmle phpmyadmin or via mysql comand line tool? On 6/15/05, Maximilian Schoefmann <schoefma-iTXTfpxOz/5YiKXMg8wJIg@public.gmane.org> wrote:> Hi *, > > I have exactly the same problem with the freezing gem installer on my two XP > SP2 machines but everything works fine with Ubuntu and FC3. > > > That''s strange! As workaround I would suggest a local gem install > > I did a local install - that worked. But when I try to use webrick with a demo > app , I always get a connection timeout (it seems that webrick can''t bind to > a socket). > So I confiured Apache (without fcgi at first) and a simple "Hello World" > worked. But as soon as I started to use ActiveRecord which tries to connect > to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs. > > This makes me think that there''s maybe a conflict between the networking > implementation of the latest Ruby distribution and a fully patched XP SP2 - > as everything that uses networking seems to hang ??! > I remember reading something about one of the hotfixes this year (or was it in > SP2 ...) limited the functionality of "RAW-sockets".... > > Any ideas ? > > Max > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- http://deezsombor.blogspot.com
>Do you perhaps have the windows XP firewall turned on? It might be >silently blocking netwrok traffic (IIRC the firewall first appeared in >SP2). > >No. Thats the first thing I checked. And in all of these cases, ruby hangs completely. I cannot quit both webrick and the gem installer with Ctrl-C - I have to kill the ruby process manually (on both machines). I have already tried to re-install ruby several times. The next thing I''ll try is installing an old version of ruby.>On 6/15/05, Maximilian Schoefmann <schoefma-iTXTfpxOz/5YiKXMg8wJIg@public.gmane.org> wrote: > > >>Hi *, >> >>I have exactly the same problem with the freezing gem installer on my two XP >>SP2 machines but everything works fine with Ubuntu and FC3. >> >> >> >>>That''s strange! As workaround I would suggest a local gem install >>> >>> >>I did a local install - that worked. But when I try to use webrick with a demo >>app , I always get a connection timeout (it seems that webrick can''t bind to >>a socket). >>So I confiured Apache (without fcgi at first) and a simple "Hello World" >>worked. But as soon as I started to use ActiveRecord which tries to connect >>to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs. >> >>This makes me think that there''s maybe a conflict between the networking >>implementation of the latest Ruby distribution and a fully patched XP SP2 - >>as everything that uses networking seems to hang ??! >>I remember reading something about one of the hotfixes this year (or was it in >>SP2 ...) limited the functionality of "RAW-sockets".... >> >>Any ideas ? >> >>Max >>_______________________________________________ >>Rails mailing list >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>http://lists.rubyonrails.org/mailman/listinfo/rails >> >>
>Could you connect to MySql with other tools? For exapmle phpmyadmin >or via mysql comand line tool? > >Yes, I use it for many other projects.>On 6/15/05, Maximilian Schoefmann <schoefma-iTXTfpxOz/5YiKXMg8wJIg@public.gmane.org> wrote: > > >>Hi *, >> >>I have exactly the same problem with the freezing gem installer on my two XP >>SP2 machines but everything works fine with Ubuntu and FC3. >> >> >> >>>That''s strange! As workaround I would suggest a local gem install >>> >>> >>I did a local install - that worked. But when I try to use webrick with a demo >>app , I always get a connection timeout (it seems that webrick can''t bind to >>a socket). >>So I confiured Apache (without fcgi at first) and a simple "Hello World" >>worked. But as soon as I started to use ActiveRecord which tries to connect >>to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs. >> >>This makes me think that there''s maybe a conflict between the networking >>implementation of the latest Ruby distribution and a fully patched XP SP2 - >>as everything that uses networking seems to hang ??! >>I remember reading something about one of the hotfixes this year (or was it in >>SP2 ...) limited the functionality of "RAW-sockets".... >> >>Any ideas ? >> >>Max >>_______________________________________________ >>Rails mailing list >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>http://lists.rubyonrails.org/mailman/listinfo/rails >> >>
Is there anyone on this list able to use gems or run Rails ActiveRecord on Windows XP2 / latest patches installed? If so, please let us know. Maybe we can narrow down the possibilities somewhat. I have XP2 / latest fixes and ZoneAlarm (which I blame for everything even though in the end it''s usually not it''s fault). Gems does not install with ZoneAlarm completely shut down, either. That makes it unlikely that ZA is to blame - however, ZA installs some system level drivers so it''s not impossible that ZA still interferes even when shut down. Maximilian, do you have ZoneAlarm installed? If not, which firewall / virus protection are you using? I can rule out any proxy or general internet connection issues since both my Mac and my Win machine go through the same NAT and it works fine on Mac. I also don''t have any other connectivity issues on Windows. Nik On Jun 17, 2005, at 5:18, Maximilian Schöfmann [c] wrote:> >> Could you connect to MySql with other tools? For exapmle phpmyadmin >> or via mysql comand line tool? >> >> > Yes, I use it for many other projects. > >> On 6/15/05, Maximilian Schoefmann <schoefma-iTXTfpxOz/5YiKXMg8wJIg@public.gmane.org> wrote: >> >> >>> Hi *, >>> >>> I have exactly the same problem with the freezing gem installer on >>> my two XP >>> SP2 machines but everything works fine with Ubuntu and FC3. >>> >>> >>> >>>> That''s strange! As workaround I would suggest a local gem install >>>> >>>> >>> I did a local install - that worked. But when I try to use webrick >>> with a demo >>> app , I always get a connection timeout (it seems that webrick can''t >>> bind to >>> a socket). >>> So I confiured Apache (without fcgi at first) and a simple "Hello >>> World" >>> worked. But as soon as I started to use ActiveRecord which tries to >>> connect >>> to my MySQL (or PostgreSQL - I tried both) server - the rails app >>> hangs. >>> >>> This makes me think that there''s maybe a conflict between the >>> networking >>> implementation of the latest Ruby distribution and a fully patched >>> XP SP2 - >>> as everything that uses networking seems to hang ??! >>> I remember reading something about one of the hotfixes this year (or >>> was it in >>> SP2 ...) limited the functionality of "RAW-sockets".... >>> >>> Any ideas ? >>> >>> Max >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >>> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Works fine for me on my XP Pro laptop. I just checked Windows Update and found no outstanding patches at all. I then ran "gem update --rdoc" and got the new version of PayPal downloaded and installed without a problem. I''m running SP2, ZoneAlarm, AVG AntiVirus and one or two other things as well. Regards Dave M. On 6/26/05, nikolaus heger <nikster-ee4meeAH724@public.gmane.org> wrote:> Is there anyone on this list able to use gems or run Rails ActiveRecord > on Windows XP2 / latest patches installed?
I also had a problem installing rails, with a process that seemed to hang. I managed to install it after I updated gem. So after installation of ruby I ran gem update -system After this update - I now have 0.8.10 - gem install rails worked without any problems. Boris -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of nikolaus heger Sent: zondag 26 juni 2005 11:27 To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Windows gems installer stuck [u] Is there anyone on this list able to use gems or run Rails ActiveRecord on Windows XP2 / latest patches installed? If so, please let us know. Maybe we can narrow down the possibilities somewhat. I have XP2 / latest fixes and ZoneAlarm (which I blame for everything even though in the end it''s usually not it''s fault). Gems does not install with ZoneAlarm completely shut down, either. That makes it unlikely that ZA is to blame - however, ZA installs some system level drivers so it''s not impossible that ZA still interferes even when shut down. Maximilian, do you have ZoneAlarm installed? If not, which firewall / virus protection are you using? I can rule out any proxy or general internet connection issues since both my Mac and my Win machine go through the same NAT and it works fine on Mac. I also don''t have any other connectivity issues on Windows. Nik On Jun 17, 2005, at 5:18, Maximilian Schöfmann [c] wrote:> >> Could you connect to MySql with other tools? For exapmle phpmyadmin >> or via mysql comand line tool? >> >> > Yes, I use it for many other projects. > >> On 6/15/05, Maximilian Schoefmann <schoefma-iTXTfpxOz/5YiKXMg8wJIg@public.gmane.org> wrote: >> >> >>> Hi *, >>> >>> I have exactly the same problem with the freezing gem installer on >>> my two XP >>> SP2 machines but everything works fine with Ubuntu and FC3. >>> >>> >>> >>>> That''s strange! As workaround I would suggest a local gem install >>>> >>>> >>> I did a local install - that worked. But when I try to use webrick >>> with a demo app , I always get a connection timeout (it seems that >>> webrick can''t bind to a socket). >>> So I confiured Apache (without fcgi at first) and a simple "Hello >>> World" >>> worked. But as soon as I started to use ActiveRecord which tries to >>> connect to my MySQL (or PostgreSQL - I tried both) server - the >>> rails app hangs. >>> >>> This makes me think that there''s maybe a conflict between the >>> networking implementation of the latest Ruby distribution and a >>> fully patched XP SP2 - as everything that uses networking seems to >>> hang ??! >>> I remember reading something about one of the hotfixes this year (or >>> was it in >>> SP2 ...) limited the functionality of "RAW-sockets".... >>> >>> Any ideas ? >>> >>> Max >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >>> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Hello all. I have two tables: Document and Author. A Document has to have an Author. I want to search Documents that have a specific Author name. I know how to do the search by the id (foreign key), but I want also to do the search by the author''s name (another column in the authors table). Can anyone tell me how to do this? Here is the code I use to search by author id: @documents = Document.find(:all, :conditions => ["author_id=(?)", author_id]) And the model classes: class Document < ActiveRecord::Base belongs_to :author end class Author < ActiveRecord::Base has_many :documents end Thanks for your answers, Hugo
nikolaus heger wrote:> Is there anyone on this list able to use gems or run Rails ActiveRecord > on Windows XP2 / latest patches installed? > > If so, please let us know. Maybe we can narrow down the possibilities > somewhat.I have Windows XP SP2 latest with Kerio Personal Firewall, F-Prot and ClamWin. I''ve got Gems and Rails installed on four or five machines, Linux and Windows, behind my main firewall and have never had a problem. Could it be a PATH issue with spaces? My Ruby install is at "C:\programs\ruby" and my PATH variable has "C:\programs\ruby\bin" in it.