I am evaluating RubyMine but am getting the following rake issue... C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path'': can''t find executable rake for rake-0.8.7 (Gem::Exception) There are many web pages (through Google) that discuss this, and several recommend applying a patch and link to a .patch file (0001-version-bundled-gems-during-installation.patch). This file opens in TortoiseUDiff but the problem is... How to apply the patch? Everyone seems to assume that the world and his dog actually know how to apply the patch and yet I guess there must be many Newbies like me that have no idea. I am an experienced and seasoned developer but totally new to Ruby. Any help gratefully accepted. Kind Regards Steve -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I havent use rubymine, but please try using th console to see if it is a rubymine issue, if is not, i can help you if you post the output form the console when you try run the rake tast. Also try calling rake with --trace at the end to get more info on the error. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks for the reply. Here''s a console example... ==C:\Ruby192\bin>rake --help --trace C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path'': can''t find executable r ake for rake-0.8.7 (Gem::Exception) from C:/Ruby192/bin/rake:19:in `<main>'' == The various articles I have read on the subject suggest that Ruby 1.9.2 installs an incompatible version of Rake. I downloaded Rake 0.8.7 and installed it by... ==C:\Ruby192\bin>gem install --remote rake Successfully installed rake-0.8.7 1 gem installed Installing ri documentation for rake-0.8.7... Installing RDoc documentation for rake-0.8.7... == But when I run rake (above) it doesn''t work. I also downloaded rake-0.8.7.zip and unzipped it to a folder structure, but could not see how to install it. I also downloaded rake-0.8.7.gem and attempted to install it as below... ==C:\Ruby192\bin>gem install c:\download\rake-0.8.7.gem Successfully installed rake-0.8.7 1 gem installed Installing ri documentation for rake-0.8.7... Installing RDoc documentation for rake-0.8.7... C:\Ruby192\bin>rake --help C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path'': can''t find executable r ake for rake-0.8.7 (Gem::Exception) from C:/Ruby192/bin/rake:19:in `<main>'' == Running rake --help --trace doesn''t produce anything extra (presumably because rake itself is not being executed). So now I''ve run out of ideas :( Kind Regards Steve -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> > Running rake --help --trace doesn''t produce anything extra (presumably > because rake itself is not being executed). > > So now I''ve run out of ideas :( > > Kind Regards > SteveIs this your only ruby in the system? run gem environment to see where are your gems been installed. go to the directory where rake is and try running it from there to see if there is a problem in your path(the windows environment variable) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
OK. I checked these things. gem environment says:- ==C:\Users\Steve>cd \ruby192 C:\Ruby192>gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [i386-mingw32] - INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1 - RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/Ruby192/bin - RUBYGEMS PLATFORMS: - ruby - x86-mingw32 - GEM PATHS: - C:/Ruby192/lib/ruby/gems/1.9.1 - C:/Users/Steve/.gem/ruby/1.9.1 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org/ ==The first path is where I installed Ruby, the second seems to contain C:\Users\Steve\.gem\specs\rubygems.org%80 Running from the first path we see... ==C:\Ruby192\bin>dir rake* Volume in drive C is OS Volume Serial Number is 007E-ED7B Directory of C:\Ruby192\bin 03/10/2010 19:01 393 rake 03/10/2010 19:01 153 rake.bat 2 File(s) 546 bytes 0 Dir(s) 137,588,604,928 bytes free C:\Ruby192\bin>rake --help --version C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path'': can''t find executable r ake for rake-0.8.7 (Gem::Exception) from C:/Ruby192/bin/rake:19:in `<main>'' ==At one point (as mentioned earlier) I downloaded rake-0.8.7.zip and I unzipped it to a folder to try and install from there. If I try running Rake from that folder I get... ==C:\rake-0.8.7\bin>rake --help --version C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path'': can''t find executable r ake for rake-0.8.7 (Gem::Exception) from C:/Ruby192/bin/rake:19:in `<main>'' ==Looking at my PATH I can see two entries for Ruby the first of which is correct and the second does not exist. The second one was where I initially installed Ruby but when I had these problems I uninstalled Ruby, deleted that directory, and installed again choosing the default directories. My PATH follows... ==Path=C:\Program Files\amzi\amzi_9-0-2\bin;C:\Program Files\Common Files\Roxio Sh ared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\12.0\DLLShared\;c:\windows\system32;C:\Program Files\TortoiseSVN\bin;C:\Program Files\QuickTime\QTSystem\;C:\Ruby192\bin;C:\Pro gram Files\Ruby192\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Li ve;C:\Program Files\Java\jdk1.6.0\bin;C:\Development_Tools\apache-maven-2.2.1\bi n;C:\Development_Tools\apache-ant-1.8.1\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW ==Hopefully this might provide some more useful insight that takes us forward? Finally, is there supposed to be a rake.exe somewhere? Because there is no such file on the system. At least Windows 7 search says there is not. Thanks for continuing to help, Kind Regards Steve -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Steve, were you able to find a solution for this? I am dealing with the same exact error. It says rake-0.8.7 installed fine but I get an error that it can''t find the executable. Thanks, Kevin On Oct 3, 1:32 pm, Steve Mills <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> OK. I checked these things. > > gem environment says:- > ==> C:\Users\Steve>cd \ruby192 > > C:\Ruby192>gem environment > RubyGems Environment: > - RUBYGEMS VERSION: 1.3.7 > - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [i386-mingw32] > - INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1 > - RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe > - EXECUTABLE DIRECTORY: C:/Ruby192/bin > - RUBYGEMS PLATFORMS: > - ruby > - x86-mingw32 > - GEM PATHS: > - C:/Ruby192/lib/ruby/gems/1.9.1 > - C:/Users/Steve/.gem/ruby/1.9.1 > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - REMOTE SOURCES: > -http://rubygems.org/ > ==> The first path is where I installed Ruby, the second seems to contain > C:\Users\Steve\.gem\specs\rubygems.org%80 > > Running from the first path we see... > ==> C:\Ruby192\bin>dir rake* > Volume in drive C is OS > Volume Serial Number is 007E-ED7B > > Directory of C:\Ruby192\bin > > 03/10/2010 19:01 393 rake > 03/10/2010 19:01 153 rake.bat > 2 File(s) 546 bytes > 0 Dir(s) 137,588,604,928 bytes free > > C:\Ruby192\bin>rake --help --version > C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path'': can''t find > executable r > ake for rake-0.8.7 (Gem::Exception) > from C:/Ruby192/bin/rake:19:in `<main>'' > ==> At one point (as mentioned earlier) I downloaded rake-0.8.7.zip and I > unzipped it to a folder to try and install from there. If I try running > Rake from that folder I get... > ==> C:\rake-0.8.7\bin>rake --help --version > C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path'': can''t find > executable r > ake for rake-0.8.7 (Gem::Exception) > from C:/Ruby192/bin/rake:19:in `<main>'' > ==> Looking at my PATH I can see two entries for Ruby the first of which is > correct and the second does not exist. The second one was where I > initially installed Ruby but when I had these problems I uninstalled > Ruby, deleted that directory, and installed again choosing the default > directories. My PATH follows... > ==> Path=C:\Program Files\amzi\amzi_9-0-2\bin;C:\Program Files\Common > Files\Roxio Sh > ared\DLLShared\;C:\Program Files\Common Files\Roxio > Shared\DLLShared\;C:\Program > Files\Common Files\Roxio > Shared\12.0\DLLShared\;c:\windows\system32;C:\Program > Files\TortoiseSVN\bin;C:\Program > Files\QuickTime\QTSystem\;C:\Ruby192\bin;C:\Pro > gram Files\Ruby192\bin;C:\Program Files\Common Files\Microsoft > Shared\Windows Li > ve;C:\Program > Files\Java\jdk1.6.0\bin;C:\Development_Tools\apache-maven-2.2.1\bi > n;C:\Development_Tools\apache-ant-1.8.1\bin > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW > ==> Hopefully this might provide some more useful insight that takes us > forward? > > Finally, is there supposed to be a rake.exe somewhere? Because there is > no such file on the system. At least Windows 7 search says there is not. > > Thanks for continuing to help, > Kind Regards > Steve > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Kevin. In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the problem went away. Kind Regards Steve -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
If you are going to develop in Rails3, I don''t think Ruby 1.9.1 is compatible Jason On Mon, Oct 18, 2010 at 6:06 AM, Steve Mills <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi Kevin. > > In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the > problem went away. > > Kind Regards > Steve > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Steve Mills wrote in post #955083:> Hi Kevin. > > In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the > problem went away. > > Kind Regards > SteveBad idea. Ruby 1.9.1 is not supposed to work reliably with Rails. Use 1.9.2 or 1.8.7. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser wrote in post #955129:> Bad idea. Ruby 1.9.1 is not supposed to work reliably with Rails. Use > 1.9.2 or 1.8.7.1.9.2 doesn''t work. 1.8.7 is too old to work with the tools I''m using. So far 1.9.1 is working with no problems. Like the person before me, I tried to get help as to why things didn''t work with 1.9.2 and got no answers. As I only have a limited time available, I have to figure something that works and so far I''ve had no problems with 1.9.1. However, I would like to use 1.9.2 if only it would work and there seems to be some big problems there. There are patches available to fix it but the authors assume that we all know how to apply a patch whereas newbies like myself haven''t a clue - yes we can download the patch, but we don''t know how to apply it. Any hints? :) Kind Regards Steve -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Steve Mills wrote in post #955200: [...]> There are patches available to fix it but the authors assume that we all > know how to apply a patch whereas newbies like myself haven''t a clue - > yes we can download the patch, but we don''t know how to apply it. > > Any hints? :)Learn how to apply a patch. ("man patch" would be helpful if you were on a *nix system; I''m not sure how to do it on Windows, though Google might help. But Windows isn''t great for Rails anyway; get a *nix VM if nothing else.) That wasn''t meant to be snarky: this is a fairly basic system maintenance task. If you can point me to a patch you''ve found, I may be able to be of more help.> > Kind Regards > SteveBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser wrote in post #955209:> Steve Mills wrote in post #955200: > [...] >If you can point me to a patch you''ve found, I may be > able to be of more help. >Thanks - I''m working both in Windows and Ubuntu - but Windows primarily because that''s where my Development Environment is - Ubuntu is just for learning. The patch was... 0001-version-bundled-gems-during-installation.patch Kind Regards Steve -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
P.S. I should also have mentioned I''m working with RubyMine to learn how to build Rails web apps. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Steve Mills wrote in post #955213:> Marnen Laibow-Koser wrote in post #955209: >> Steve Mills wrote in post #955200: >> [...] >>If you can point me to a patch you''ve found, I may be >> able to be of more help. >> > > Thanks - I''m working both in Windows and Ubuntu - but Windows primarily > because that''s where my Development Environment isThen move it. :)> - Ubuntu is just for > learning. > > The patch was... > > 0001-version-bundled-gems-during-installation.patchI didn''t mean the filename...I meant the content.> > Kind Regards > SteveBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Steve Mills wrote in post #955214:> P.S. I should also have mentioned I''m working with RubyMine to learn how > to build Rails web apps.Drop RubyMine, at least for now. You can go back to it later, but you should absolutely not be using an IDE for learning Rails. Just work with a good text editor (I like KomodoEdit) and a bunch of terminal windows. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
The content was... diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 266d717..0e9f39a 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -515,7 +515,7 @@ install?(:ext, :comm, :gem) do version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~ s}} or next version = version.split(%r"=\s*", 2)[1].strip[/\A([\''\"])(.*?)\1/, 2] puts "#{" "*30}#{name} #{version}" - open_for_install(File.join(destdir, "#{name}.gemspec"), $data_mode) do + open_for_install(File.join(destdir, "#{name}-#{version}.gemspec"), $data_mode) do <<-GEMSPEC Gem::Specification.new do |s| s.name = #{name.dump} -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Steve Mills wrote in post #955220:> The content was... > > diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb > index 266d717..0e9f39a 100755 > --- a/tool/rbinstall.rb > +++ b/tool/rbinstall.rb > @@ -515,7 +515,7 @@ install?(:ext, :comm, :gem) do > version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~ > s}} or next > version = version.split(%r"=\s*", 2)[1].strip[/\A([\''\"])(.*?)\1/, > 2] > puts "#{" "*30}#{name} #{version}" > - open_for_install(File.join(destdir, "#{name}.gemspec"), $data_mode) > do > + open_for_install(File.join(destdir, "#{name}-#{version}.gemspec"), > $data_mode) do > <<-GEMSPEC > Gem::Specification.new do |s| > s.name = #{name.dump}Then you probably want to use Git to apply it -- check out the docs for git-apply. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Unfortunately, I''m such a newbie to this, I don''t have git, don''t see why I need it when I use subversion for version control, and it doesn''t get automatically installed with Ruby. The information that led me to this patch was Ruby''s inability to recognise that Rake 0.8.7 had been installed. Apparently some file somewhere is pointing gem at some other version. Gem install of rake 0.8.7 says it has installed that version but when you try and run rake it says that version 0.8.7 is required and not present. It''s a pity that the only real clue is this patch and that someone couldn''t readily say what file is at fault and how to edit it. I''ll install git and investigate further if and when I find something that doesn''t work with 1.9.1. Meanwhile I think it''s poor that 1.9.2 was released with such a major bug that rake doesn''t work. Here I am trying to decide whether or not ruby on rails is as good as everyone makes out, and whether to adopt it and invest a great deal of time in it, and I''m put off by such hurdles at the very first step. I''m also learning .NET which has a lot going for it, but my web host doesn''t support .NET and does support Ruby on Rails hence my interest in it. Thanks very much for persisting with this issue and pushing me in the right direction :) Kind Regards Steve -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Steve Mills wrote in post #955228:> Unfortunately, I''m such a newbie to this, I don''t have git,Then get it.> don''t see > why I need it when I use subversion for version control,Because it''s a better VCS than Subversion is. Subversion uses a less powerful paradigm (centralized, whereas Git is decentralized) and has no real merging algorithm, which makes branching and merging needlessly difficult. See http://www.whygitisbetterthanx.com for more details. I don''t want to hijack this thread.> and it doesn''t > get automatically installed with Ruby.So? [...]> > It''s a pity that the only real clue is this patch and that someone > couldn''t readily say what file is at fault and how to edit it.The patch says exactly that. That''s what a patchfile is: a representation of what changes get made where. For> > I''ll install gitYou don''t need to *for this patch*. See my last post: you don''t need git to apply the patch. Just use the patch command. (But you should install git for development in general.)> and investigate further if and when I find something > that doesn''t work with 1.9.1. Meanwhile I think it''s poor that 1.9.2 was > released with such a major bug that rake doesn''t work.I don''t think that''s a 1.9.2 bug, but I could be wrong. I believe it''s a Rake issue.> > Here I am trying to decide whether or not ruby on rails is as good as > everyone makes out, and whether to adopt it and invest a great deal of > time in it, and I''m put off by such hurdles at the very first step.You can use Ruby 1.8.7 if you''d rather. But everything in Rails development is harder on Windows, or so I''m told (I personally stay as far away from Windows as I can). **** Also...I don''t know if it''s deliberate, but I get the impression of a somewhat hostile, combative attitude when I read your last couple of posts. I understand that getting a development environment set up can be difficult and sometimes frustrating, but you have to be willing to learn new tools. If I''m misreading your intent, then I apologize. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Repost of something that apparently got eaten.] Marnen Laibow-Koser wrote in post #955224:> Steve Mills wrote in post #955220: >> The content was... >> >> diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb >> index 266d717..0e9f39a 100755 >> --- a/tool/rbinstall.rb >> +++ b/tool/rbinstall.rb >> @@ -515,7 +515,7 @@ install?(:ext, :comm, :gem) do >> version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~ >> s}} or next >> version = version.split(%r"=\s*", 2)[1].strip[/\A([\''\"])(.*?)\1/, >> 2] >> puts "#{" "*30}#{name} #{version}" >> - open_for_install(File.join(destdir, "#{name}.gemspec"), $data_mode) >> do >> + open_for_install(File.join(destdir, "#{name}-#{version}.gemspec"), >> $data_mode) do >> <<-GEMSPEC >> Gem::Specification.new do |s| >> s.name = #{name.dump} > > Then you probably want to use Git to apply it -- check out the docs for > git-apply. >No, on second thought, you don''t need Git to apply the patch. Just use the patch command as I explained earlier.> Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Marnen. I''m never combative or hostile - that''s not my nature. However, when I''ve got a huge investment in one tool, I need to be convinced before switching horses because it always results in a lot of work to effectively get to where I already was with my favoured tool, and my time is spread thin along many platforms at this particular time. You have invested quite a bit of time in this reply, and I thank you for that. Kind Regards Steve -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
@steve Keep learning with rubymine, the thing is once you learn how easy rails is you will see that IDEs just get in the way , but you have to learn that by your self we cant tell you that, eventually you will see that for rails the only thing that a IDE is good for is to search for file quickly. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
just remove rake.gemspec and it will work. It worked for me at least. http://rubyforge.org/forum/forum.php?thread_id=48830&forum_id=37643 On Oct 3, 12:36 pm, Steve Mills <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am evaluating RubyMine but am getting the following rake issue... > > C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path'': can''t find > executable > rake for rake-0.8.7 (Gem::Exception) > > There are many web pages (through Google) that discuss this, and several > recommend applying a patch and link to a .patch file > (0001-version-bundled-gems-during-installation.patch). This file opens > in TortoiseUDiff but the problem is... > > How to apply the patch? > > Everyone seems to assume that the world and his dog actually know how to > apply the patch and yet I guess there must be many Newbies like me that > have no idea. > > I am an experienced and seasoned developer but totally new to Ruby. > > Any help gratefully accepted. > > Kind Regards > Steve > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Alexandr Kim wrote in post #960797:> just remove rake.gemspec and it will work. It worked for me at least. > > http://rubyforge.org/forum/forum.php?thread_id=48830&forum_id=37643Thanks for the tip - it worked! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.