I''m trying to get Cygwin to run rails, but getting "No such file" errors. $ rails cart d:\server\ruby\bin\ruby.exe: No such file or directory -- /cygdrive/d/server/ruby/bin/rails (LoadError) $ ls -l /cygdrive/d/server/ruby/bin/ra* -rwx------+ 1 joshua None 438 Sep 21 17:52 /cygdrive/d/server/ruby/bin/rails -rwx------+ 1 joshua None 46 Sep 21 17:51 /cygdrive/d/server/ruby/bin/rails.cmd -rwx------+ 1 joshua None 426 Sep 7 13:25 /cygdrive/d/server/ruby/bin/rake -rwx------+ 1 joshua None 36 Sep 7 13:25 /cygdrive/d/server/ruby/bin/rake.cmd I''ve already changed the #! line to point to ruby in a way that seems more cygwin-friendly (and does, in fact, conjure ruby when typed in), but that leads me to the above. I''m not sure why it can''t find rails. Any thoughts? -- joshua
looks like a mix of cygwin and non-cygwin stuff. cygwin ruby would be in /usr/bin/ kfelkins@voltorb ~ $ which ruby /usr/bin/ruby kfelkins@voltorb ~ $ You probably need to uninstall the non-cygwin ruby if you want to use cygwin ruby. -Kelly On 9/21/05, Joshua Wehner <rails-AnsgPkSrJBbs2Lz0fTdYFQ@public.gmane.org> wrote:> > I''m trying to get Cygwin to run rails, but getting "No such file" errors. > > $ rails cart > d:\server\ruby\bin\ruby.exe: No such file or directory -- > /cygdrive/d/server/ruby/bin/rails (LoadError) > > $ ls -l /cygdrive/d/server/ruby/bin/ra* > -rwx------+ 1 joshua None 438 Sep 21 17:52 > /cygdrive/d/server/ruby/bin/rails > -rwx------+ 1 joshua None 46 Sep 21 17:51 > /cygdrive/d/server/ruby/bin/rails.cmd > > -rwx------+ 1 joshua None 426 Sep 7 13:25 /cygdrive/d/server/ruby/bin/rake > -rwx------+ 1 joshua None 36 Sep 7 13:25 > /cygdrive/d/server/ruby/bin/rake.cmd > > I''ve already changed the #! line to point to ruby in a way that seems > more cygwin-friendly (and does, in fact, conjure ruby when typed in), > but that leads me to the above. I''m not sure why it can''t find rails. > Any thoughts? > > > > -- joshua > _______________________________________________ > 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
I think you need to install Ruby Gems, then install Rails and its dependencies as Gems. Did you do that? Joshua Wehner wrote:> I''m trying to get Cygwin to run rails, but getting "No such file" errors. > > $ rails cart > d:\server\ruby\bin\ruby.exe: No such file or directory -- > /cygdrive/d/server/ruby/bin/rails (LoadError) > > $ ls -l /cygdrive/d/server/ruby/bin/ra* > -rwx------+ 1 joshua None 438 Sep 21 17:52 > /cygdrive/d/server/ruby/bin/rails > -rwx------+ 1 joshua None 46 Sep 21 17:51 > /cygdrive/d/server/ruby/bin/rails.cmd > > -rwx------+ 1 joshua None 426 Sep 7 13:25 > /cygdrive/d/server/ruby/bin/rake > -rwx------+ 1 joshua None 36 Sep 7 13:25 > /cygdrive/d/server/ruby/bin/rake.cmd > > I''ve already changed the #! line to point to ruby in a way that seems > more cygwin-friendly (and does, in fact, conjure ruby when typed in), > but that leads me to the above. I''m not sure why it can''t find rails. > Any thoughts? > > > > -- joshua > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- M. Edward (Ed) Borasky http://www.borasky-research.net/ http://borasky-research.blogspot.com/ http://pdxneurosemantics.com http://pdx-sales-coach.com http://algocompsynth.com
If you have problems getting "gem install rails" to work (i.e. something about "ubygems"), unset your RUBYOPT environment variable and start a new cygwin bash shell and try again. That bit me just yesterday. Definitely remove the windows ruby install from the PATH (or just rename the folder your win ruby install is sitting in). That way you don''t have to uninstall and can switch back to windows ruby relatively easily if need be. Once I did that and renamed RUBYOPT to RUBYOPT_IGNORE (instead of deleting it), gem install rails worked fine for me. On 9/22/05, M. Edward (Ed) Borasky <znmeb-2WxwdZd67h7R7s880joybQ@public.gmane.org> wrote:> > I think you need to install Ruby Gems, then install Rails and its > dependencies as Gems. Did you do that? > > Joshua Wehner wrote: > > > I''m trying to get Cygwin to run rails, but getting "No such file" > errors. > > > > $ rails cart > > d:\server\ruby\bin\ruby.exe: No such file or directory -- > > /cygdrive/d/server/ruby/bin/rails (LoadError) > > > > $ ls -l /cygdrive/d/server/ruby/bin/ra* > > -rwx------+ 1 joshua None 438 Sep 21 17:52 > > /cygdrive/d/server/ruby/bin/rails > > -rwx------+ 1 joshua None 46 Sep 21 17:51 > > /cygdrive/d/server/ruby/bin/rails.cmd > > > > -rwx------+ 1 joshua None 426 Sep 7 13:25 > > /cygdrive/d/server/ruby/bin/rake > > -rwx------+ 1 joshua None 36 Sep 7 13:25 > > /cygdrive/d/server/ruby/bin/rake.cmd > > > > I''ve already changed the #! line to point to ruby in a way that seems > > more cygwin-friendly (and does, in fact, conjure ruby when typed in), > > but that leads me to the above. I''m not sure why it can''t find rails. > > Any thoughts? > > > > > > > > -- joshua > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > M. Edward (Ed) Borasky > > http://www.borasky-research.net/ > http://borasky-research.blogspot.com/ > > http://pdxneurosemantics.com > http://pdx-sales-coach.com > http://algocompsynth.com > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Brock Weaver brockweaver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org /* you are not expected to understand this */ _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Kelly Felkins wrote:> looks like a mix of cygwin and non-cygwin stuff.[...]> You probably need to uninstall the non-cygwin ruby if you want to use > cygwin ruby.M. Edward (Ed) Borasky wrote: > I think you need to install Ruby Gems, then install Rails and its > dependencies as Gems. Did you do that? Ah, right. I was thinking of cygwin as "just another terminal window", but it''s really a separate environment sometimes. I had installed the point-n-click Ruby for Windows, and was trying to run the commands in cygwin. But cygwin''s directory structure is different, so it wasn''t finding the commands. I had changed the #! line in rails.cmd to "cygwin-flavor directory structure" but that wasn''t enough - ruby or something further upstream still couldn''t find itself. I will try to install Cygwin''s ruby... Thanks! -- joshua
As a side note, I frequently (every 10-20 requests) get segmentation faults and the core is dumped when running WEBrick under cygwin on XP. Anybody else experiencing this? I just downloaded and installed everything yesterday, so I''m assuming I have the latest available stable... $ ruby -v ruby 1.8.2 (2004-12-25) [i386-cygwin] $ gem -v 0.8.11 On 9/22/05, Joshua Wehner <joshua-AnsgPkSrJBbs2Lz0fTdYFQ@public.gmane.org> wrote:> > Kelly Felkins wrote: > > looks like a mix of cygwin and non-cygwin stuff. > [...] > > You probably need to uninstall the non-cygwin ruby if you want to use > > cygwin ruby. > > M. Edward (Ed) Borasky wrote: > > I think you need to install Ruby Gems, then install Rails and its > > dependencies as Gems. Did you do that? > > > Ah, right. I was thinking of cygwin as "just another terminal window", > but it''s really a separate environment sometimes. > > I had installed the point-n-click Ruby for Windows, and was trying to > run the commands in cygwin. But cygwin''s directory structure is > different, so it wasn''t finding the commands. > > I had changed the #! line in rails.cmd to "cygwin-flavor directory > structure" but that wasn''t enough - ruby or something further upstream > still couldn''t find itself. > > I will try to install Cygwin''s ruby... > > > Thanks! > > > > -- joshua > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Brock Weaver brockweaver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org /* you are not expected to understand this */ _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
To get rid of the segmentation faults, you have to do a source install of ruby (the binary one from cygwin has issues). However, to do a source install, you have to comment out some things referring to openssl stuff as there are some issues with it on windows as of the 0.9.8 version. Also some files need to have their #includes reordered to compile properly (they complain of a size_t() problem, which is rectified by putting the #include of various openssl related headers after the "normal" includes) At any rate, stick with it, it _will_ work eventually! Please contact me if you have problems building, as I had several today and it''s still relatively fresh... On 9/22/05, Brock Weaver <brockweaver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > As a side note, I frequently (every 10-20 requests) get segmentation > faults and the core is dumped when running WEBrick under cygwin on XP. > Anybody else experiencing this? > > I just downloaded and installed everything yesterday, so I''m assuming I > have the latest available stable... > > $ ruby -v > ruby 1.8.2 (2004-12-25) [i386-cygwin] > > $ gem -v > 0.8.11 > > > > On 9/22/05, Joshua Wehner <joshua-AnsgPkSrJBbs2Lz0fTdYFQ@public.gmane.org> wrote: > > > > Kelly Felkins wrote: > > > looks like a mix of cygwin and non-cygwin stuff. > > [...] > > > You probably need to uninstall the non-cygwin ruby if you want to use > > > cygwin ruby. > > > > M. Edward (Ed) Borasky wrote: > > > I think you need to install Ruby Gems, then install Rails and its > > > dependencies as Gems. Did you do that? > > > > > > Ah, right. I was thinking of cygwin as "just another terminal window", > > but it''s really a separate environment sometimes. > > > > I had installed the point-n-click Ruby for Windows, and was trying to > > run the commands in cygwin. But cygwin''s directory structure is > > different, so it wasn''t finding the commands. > > > > I had changed the #! line in rails.cmd to "cygwin-flavor directory > > structure" but that wasn''t enough - ruby or something further upstream > > still couldn''t find itself. > > > > I will try to install Cygwin''s ruby... > > > > > > Thanks! > > > > > > > > -- joshua > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > -- > Brock Weaver > brockweaver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > /* you are not expected to understand this */ >-- Brock Weaver brockweaver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org /* you are not expected to understand this */ _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails