Something suddenly went wrong in my ruby install. When installing Mongrel on my Windows XP laptop, it incorrectly tries to build it as a native extension. I don''t even get the selection where I can choose to install a compiled version. I would appreciate any help/links or similar, as I frankly don''t understand what''s going on and why I dont get the usual selection box. C:\>gem install mongrel Building native extensions. This could take a while... ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. c:/ruby/bin/ruby.exe extconf.rb install mongrel creating Makefile nmake ''nmake'' is not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1 for inspection. Results logged to c:/ruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out PS. for further investigation I have attached the output from running the gem install with --debug flag Attachments: http://www.ruby-forum.com/attachment/1046/gem-install-mongrel--debug.txt -- Posted via http://www.ruby-forum.com/.
On Nov 27, 2007 9:34 AM, Jesper R?nn-jensen <lists at ruby-forum.com> wrote:> Something suddenly went wrong in my ruby install. > > When installing Mongrel on my Windows XP laptop, it incorrectly tries to > build it as a native extension. I don''t even get the selection where I > can choose to install a compiled version. > > I would appreciate any help/links or similar, as I frankly don''t > understand what''s going on and why I dont get the usual selection box. >Two things: What version of RubyGems are you using? 0.9.5 shows some problems with mswin32 platform. It seems this is the problem, since there is a native build of fastthread for mswin32 (even that mongrel-mswin32 don''t require it). I suggest you revert to 0.9.4 until this issue get solved. Eric Hodel is working on it. -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi
Luis Lavena wrote:> > What version of RubyGems are you using? 0.9.5 shows some problems with > mswin32 platform. > > [...] > I suggest you revert to 0.9.4 until this issue get solved. Eric Hodel > is working on it. >Thanks for the quick answer! I really appreciate that. but how do I revert to a previous version?? I tried these without luck:>> gem uninstall rubygems -v 0.9.5=> ERROR: While executing gem ... (Gem::InstallError) Unknown gem rubygems-= 0.9.5>> gem uninstall rubygems-update=> Successfully uninstalled rubygems-update-0.9.5 Here is my gem environment: C:\>gem environment RubyGems Environment: - RUBYGEMS VERSION: 0.9.5 (0.9.5) - RUBY VERSION: 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8 - RUBY EXECUTABLE: c:/ruby/bin/ruby.exe - RUBYGEMS PLATFORMS: - ruby - x86-mswin32-60 - GEM PATHS: - c:/ruby/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org -- Posted via http://www.ruby-forum.com/.
Jesper wrote:> but how do I revert to a previous version?? >OK I found out. Downloaded version 0.9.4 from rubyforge then gem install rubygems-update-0.9.4.gem Thanks a lot for pointing me to it :) /Jesper Blog: www.justaddwater.dk Note to self: release 0.9.4 downloaded from http://rubyforge.org/frs/?group_id=126 -- Posted via http://www.ruby-forum.com/.
Here is the proper end of the story: I tried to reinstall as described above, but 0.9.5 did not uninstall. End of story was that I had to: * uninstall C:\ruby * reinstall gems It took a bit longer. But finally worked. /Jesper Blog: www.justaddwater.dk -- Posted via http://www.ruby-forum.com/.
On Nov 28, 2007 5:38 AM, Jesper R?nn-jensen <lists at ruby-forum.com> wrote:> Here is the proper end of the story: > > I tried to reinstall as described above, but 0.9.5 did not uninstall. > End of story was that I had to: > > * uninstall C:\ruby > * reinstall gems > > It took a bit longer. But finally worked. >Jesper, please excuse I couldn''t answer you back yesterday, was a nightmare here at the office (the redundant power supply of one server crashed, all the 3!) So took us a lot of hard work to put it back online. Regarding your problem, you should have: Downloaded rubygems-0.9.4.zip from rubyforge page [1] Unpacked into any clean folder, run: ruby setup.rb install that should have overwrite your 0.9.5 installation. If that didn''t work as expected, you an also remove lib/ruby/site_ruby/1.8 the files and folders for rubygems: ubygems.rb rubygems.rb and rubygems folder. Then install 0.9.4 again as described above. -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi
Thanks Luis for getting back. I hope for someone to consider implementing a gem uninstall --system for easier uninstall along the way (even though I hope nobody will ever need it). I''m sorry to hear about the problems at work. Hopefully things will work out. Thanks! /Jesper -- Posted via http://www.ruby-forum.com/.
> > Regarding your problem, you should have: > > Downloaded rubygems-0.9.4.zip from rubyforge page [1] > > Unpacked into any clean folder, > > run: ruby setup.rb install > > that should have overwrite your 0.9.5 installation. > > If that didn''t work as expected, you an also remove > lib/ruby/site_ruby/1.8 the files and folders for rubygems: > > ubygems.rb rubygems.rb and rubygems folder. > > Then install 0.9.4 again as described above.... Before I could do "ruby setup.rb install" I needed to do "ruby setup.rb config". 0.9.4 then installed although it seemed to install the docs for 0.9.5. Thanks for this. -- Posted via http://www.ruby-forum.com/.
On Dec 11, 2007 10:03 AM, Phil Thompson <lists at ruby-forum.com> wrote:> ... > > Before I could do "ruby setup.rb install" I needed to do "ruby setup.rb > config". 0.9.4 then installed although it seemed to install the docs for > 0.9.5. >Oh, I always forget about config _before_ install :-P The 0.9.5 docs can be removed from lib/ruby/gems/1.8/doc I hope Eric and the RubyGems team release a fix soon, removes the joy of using Ruby... -- Luis Lavena Multimedia systems - A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. Douglas Adams
simply "ruby setup.rb" seems to work too -- Posted via http://www.ruby-forum.com/.
Hi Guys, I seem to be getting the same error... and I am on /9.4 of gems.. :( Any suggestions? Thanks, Ashish Luis Lavena wrote:> On Dec 11, 2007 10:03 AM, Phil Thompson <lists at ruby-forum.com> wrote: >> ... >> >> Before I could do "ruby setup.rb install" I needed to do "ruby setup.rb >> config". 0.9.4 then installed although it seemed to install the docs for >> 0.9.5. >> > > Oh, I always forget about config _before_ install :-P > > The 0.9.5 docs can be removed from lib/ruby/gems/1.8/doc > > I hope Eric and the RubyGems team release a fix soon, removes the joy > of using Ruby... > > -- > Luis Lavena > Multimedia systems > - > A common mistake that people make when trying to design > something completely foolproof is to underestimate > the ingenuity of complete fools. > Douglas AdamsAttachments: http://www.ruby-forum.com/attachment/1188/mongrel_install_failure.txt -- Posted via http://www.ruby-forum.com/.
Mongrel is working with the latest Rails and Rubygems install. Rubygems 1.0 has been released which addresses many of the issues that Windows users have been experiencing. gem uninstall mongrel (select all versions) gem update --system gem install rails gem install mongrel Rubygems should no longer ask for a platform and should install automatically. Anyone using mongrel_service though will still have issues but it''s being worked on so hoping to see a fix soon. -- Posted via http://www.ruby-forum.com/.
Hi Phil, Worked perfectly.. Thanks Ashish Phil Thompson wrote:> Mongrel is working with the latest Rails and Rubygems install. Rubygems > 1.0 has been released which addresses many of the issues that Windows > users have been experiencing. > > gem uninstall mongrel (select all versions) > gem update --system > gem install rails > gem install mongrel > > Rubygems should no longer ask for a platform and should install > automatically. Anyone using mongrel_service though will still have > issues but it''s being worked on so hoping to see a fix soon.-- Posted via http://www.ruby-forum.com/.
> C:\>gem install mongrelwhen you install mongrel in win32, you need : C:\>gem install mongrel_service because, in win32 support mongrel in service to run webserver. And then just run mongrel_rails to see what services -- Posted via http://www.ruby-forum.com/.
Seemingly Similar Threads
- Mongrel doesn''t start under Rails 2.0.2/Win XP
- [ win32utils-Bugs-16700 ] 1.0.5 x86-mswin32-60 gem is broken
- Mongrel fails in Win32, mongrel_service missing, with possible fix
- Win32 gems for mongrel (0.3.18) and mongrel_service (0.3.1)
- ERROR: Failed to build gem native extension.