http://conceptspace.wikidot.com/forum/t-154517/rails101-getting-started-with-rad-ruby-on-rails#post-483414 On windwos, we could not find a way to execute `gem --version` on windows. The weird thing is this is happening while we are able call ''gem --version'' on DOS directly. Of course there is no problem on Linux. -- Posted via http://www.ruby-forum.com/.
Matt Jones
2009-May-19 14:33 UTC
Re: IRB fails to call some shell commands only on Windows
Have you tried invoking gem as `gem.bat --version` in IRB? There''s a special case in the config.gem installation code for win32, so I''d guess that that might solve your problem... --Matt Jones On May 19, 6:32 am, Umur Ozkul <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> http://conceptspace.wikidot.com/forum/t-154517/rails101-getting-start... > > On windwos, we could not find a way to execute > `gem --version` > on windows. > > The weird thing is this is happening while we are able call ''gem > --version'' on DOS directly. > > Of course there is no problem on Linux. > -- > Posted viahttp://www.ruby-forum.com/.
Umur Ozkul
2009-May-19 15:53 UTC
Re: IRB fails to call some shell commands only on Windows
Matt Jones wrote:> Have you tried invoking gem as `gem.bat --version` in IRB? There''s a > special case in the config.gem installation code for win32, so I''d > guess that that might solve your problem... > > --Matt Jones > > On May 19, 6:32�am, Umur Ozkul <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Yes, I tried. gem.bat itself is invoking but the calls it makes are resulting all in errors. Basically, in IRB, we could not call any "gem installed" commands in Windows. e.g. gem, rails, rake The mystery is as they are available in Shell, why they do result in error called from IRB? So far 4 other people complained me of the same thing. I am inclined to conclude that nobody uses IRB on Windows :) -- Posted via http://www.ruby-forum.com/.
Matt Jones
2009-May-21 02:47 UTC
Re: IRB fails to call some shell commands only on Windows
Could you provide more details on how gem "gets an error"? I just tried it (including installing gems from IRB) and it worked fine. This isn''t the first heisenbug that I''ve seen with Ruby and Windows... (for instance, see http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/36be3d7767f66300/9b14c8774d0a5159 ) Thanks, --Matt Jones On May 19, 11:53 am, Umur Ozkul <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Matt Jones wrote: > > Have you tried invoking gem as `gem.bat --version` in IRB? There''s a > > special case in the config.gem installation code for win32, so I''d > > guess that that might solve your problem... > > > --Matt Jones > > > On May 19, 6:32 am, Umur Ozkul <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > Yes, I tried. > > gem.bat itself is invoking but the calls it makes are resulting all in > errors. > Basically, in IRB, we could not call any "gem installed" commands in > Windows. > > e.g. gem, rails, rake > > The mystery is as they are available in Shell, why they do result in > error called from IRB? > > So far 4 other people complained me of the same thing. > > I am inclined to conclude that nobody uses IRB on Windows :) > -- > Posted viahttp://www.ruby-forum.com/.
I discovered the problem after running a rails template on Windows. After seeing the problem I opened IRB and failed to call rails, rake and gem from there. Tried on a few other windows machines to fail the same way. The error is "Invalid Exacutable Format" You can try the template: rails your_app -m http://tinyurl.com/cs-active-scaffold Which is from the rails tutorial http://conceptspace.wikidot.com/rails101:introduction PS. I am an Ubuntu user. I am just trying to know how to keep cross- platform On May 21, 4:47 am, Matt Jones <al2o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Could you provide more details on how gem "gets an error"? I just > tried it (including installing gems from IRB) and it worked fine. This > isn''t the first heisenbug that I''ve seen with Ruby and Windows... (for > instance, seehttp://groups.google.com/group/rubyonrails-talk/browse_thread/thread/... > ) > > Thanks, > > --Matt Jones > > On May 19, 11:53 am, Umur Ozkul <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > Matt Jones wrote: > > > Have you tried invoking gem as `gem.bat --version` in IRB? There''s a > > > special case in the config.gem installation code for win32, so I''d > > > guess that that might solve your problem... > > > > --Matt Jones > > > > On May 19, 6:32 am, Umur Ozkul <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > > Yes, I tried. > > > gem.bat itself is invoking but the calls it makes are resulting all in > > errors. > > Basically, in IRB, we could not call any "gem installed" commands in > > Windows. > > > e.g. gem, rails, rake > > > The mystery is as they are available in Shell, why they do result in > > error called from IRB? > > > So far 4 other people complained me of the same thing. > > > I am inclined to conclude that nobody uses IRB on Windows :) > > -- > > Posted viahttp://www.ruby-forum.com/.
If you successfully run rails your_app -m http://tinyurl.com/cs-active-scaffold on your windows then I would say that everybody I''ve met has a wrong installation! On May 25, 10:21 pm, umuro <umur.oz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I discovered the problem after running a rails template on Windows. > After seeing the problem I opened IRB and failed to call rails, rake > and gem from there. Tried on a few other windows machines to fail the > same way. The error is "Invalid Exacutable Format" > > You can try the template: > rails your_app -mhttp://tinyurl.com/cs-active-scaffold > > Which is from the rails tutorialhttp://conceptspace.wikidot.com/rails101:introduction > > PS. I am an Ubuntu user. I am just trying to know how to keep cross- > platform > > On May 21, 4:47 am, Matt Jones <al2o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Could you provide more details on how gem "gets an error"? I just > > tried it (including installing gems from IRB) and it worked fine. This > > isn''t the first heisenbug that I''ve seen with Ruby and Windows... (for > > instance, seehttp://groups.google.com/group/rubyonrails-talk/browse_thread/thread/... > > ) > > > Thanks, > > > --Matt Jones > > > On May 19, 11:53 am, Umur Ozkul <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > > > > Matt Jones wrote: > > > > Have you tried invoking gem as `gem.bat --version` in IRB? There''s a > > > > special case in the config.gem installation code for win32, so I''d > > > > guess that that might solve your problem... > > > > > --Matt Jones > > > > > On May 19, 6:32 am, Umur Ozkul <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > > > Yes, I tried. > > > > gem.bat itself is invoking but the calls it makes are resulting all in > > > errors. > > > Basically, in IRB, we could not call any "gem installed" commands in > > > Windows. > > > > e.g. gem, rails, rake > > > > The mystery is as they are available in Shell, why they do result in > > > error called from IRB? > > > > So far 4 other people complained me of the same thing. > > > > I am inclined to conclude that nobody uses IRB on Windows :) > > > -- > > > Posted viahttp://www.ruby-forum.com/.
Matt Jones
2009-May-26 15:18 UTC
Re: IRB fails to call some shell commands only on Windows
Now I understand. Yep, that''s a known issue with templates: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2531 --Matt Jones On May 25, 4:21 pm, umuro <umur.oz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I discovered the problem after running a rails template on Windows. > After seeing the problem I opened IRB and failed to call rails, rake > and gem from there. Tried on a few other windows machines to fail the > same way. The error is "Invalid Exacutable Format" > > You can try the template: > rails your_app -mhttp://tinyurl.com/cs-active-scaffold > > Which is from the rails tutorialhttp://conceptspace.wikidot.com/rails101:introduction > > PS. I am an Ubuntu user. I am just trying to know how to keep cross- > platform > > On May 21, 4:47 am, Matt Jones <al2o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Could you provide more details on how gem "gets an error"? I just > > tried it (including installing gems from IRB) and it worked fine. This > > isn''t the first heisenbug that I''ve seen with Ruby and Windows... (for > > instance, seehttp://groups.google.com/group/rubyonrails-talk/browse_thread/thread/... > > ) > > > Thanks, > > > --Matt Jones > > > On May 19, 11:53 am, Umur Ozkul <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > > > > Matt Jones wrote: > > > > Have you tried invoking gem as `gem.bat --version` in IRB? There''s a > > > > special case in the config.gem installation code for win32, so I''d > > > > guess that that might solve your problem... > > > > > --Matt Jones > > > > > On May 19, 6:32 am, Umur Ozkul <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > > > Yes, I tried. > > > > gem.bat itself is invoking but the calls it makes are resulting all in > > > errors. > > > Basically, in IRB, we could not call any "gem installed" commands in > > > Windows. > > > > e.g. gem, rails, rake > > > > The mystery is as they are available in Shell, why they do result in > > > error called from IRB? > > > > So far 4 other people complained me of the same thing. > > > > I am inclined to conclude that nobody uses IRB on Windows :) > > > -- > > > Posted viahttp://www.ruby-forum.com/.
Umur Ozkul
2009-May-26 19:53 UTC
Re: IRB fails to call some shell commands only on Windows
Matt Jones wrote:> Now I understand. Yep, that''s a known issue with templates: > https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2531 > > --Matt JonesRelief to know that. I added warnings to http://conceptspace.wikidot.com/ and debugged the template to be free of commands almost. Finally I could achieve a running Windows version I guess. -- Posted via http://www.ruby-forum.com/.