Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Problems updating all gems to Rails 2.3 on Win XP

#2140

I ran an update on my gems which tried to install version 2.3 This fell over in a big heap>gem update -y Updating installed gems Updating actionmailer Successfully installed activesupport-2.3.1 Successfully installed actionpack-2.3.1 Successfully installed actionmailer-2.3.1 Updating activerecord Successfully installed activerecord-2.3.1 Updating activeresource Successfully installed activeresource-2.3.1 Updating rails Successfully installed rails-2.3.1 Updating rake Successfully installed rake-0.8.4 Updating rmagick Building native extensions. This could take a while... ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension.

C:/Development/InstantRails/ruby/bin/ruby.exe extconf.rb update -y +----------------------------------------------------------------------------+ | This rmagick gem is for use only on Linux, BSD, OS X, and similar systems | | that have a gnu or similar toolchain installed. The rmagick-win32 gem is a | | pre-compiled version of RMagick bundled with ImageMagick for use on | | Microsoft Windows systems. The rmagick-win32 gem is available on RubyForge.| | See http://rmagick.rubyforge.org/ins... for more information. | +----------------------------------------------------------------------------+ extconf.rb failed Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --srcdir=. --curdir --ruby=C:/Development/InstantRails/ruby/bin/ruby

Gem files will remain installed in C:/Development/InstantRails/ruby/lib/ruby/gems/1.8/gems/rmagick-2.9.1 for inspection. Results logged to C:/Development/InstantRails/ruby/lib/ruby/gems/1.8/gems/rmagick-2.9.1/ext/RMagick/gem_make.out

So I uninstalled RMagick and ran the update again

Now I am getting

Updating installed gems Updating sqlite3-ruby Building native extensions. This could take a while... ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension.

C:/Development/InstantRails/ruby/bin/ruby.exe extconf.rb update -y checking for fdatasync() in rt.lib... no checking for sqlite3.h... no

nmake 'nmake' is not recognized as an internal or external command, operable program or batch file.

Gem files will remain installed in C:/Development/InstantRails/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection. Results logged to C:/Development/InstantRails/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out

So what do I do now?

I can happily abandon my attempts to update to 2.3 and go back to 2.2.2 until these issues are resolved but I'm stumped as to what to do to achieve this.

Any ideas would be appreciated

James

Reported by jamesw · March 5th, 2009 @ 08:31 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Frederick Cheung
    Frederick Cheung
    • Title changed from * Edit post * Report this post * Reply with quote Problems updating all gems to Rails 2.3 on Win XP to Problems updating all gems to Rails 2.3 on Win XP
    • State changed from new to invalid

    Not a rails problem I'm afraid. rubygems is trying to install gems which have a native component (ie a chunk of C that needs compiling) but you don't have the necessary toolchain. You'll need to get precompiled versions of these gems (for sqlite3-ruby that means version 1.2.3 and I think rmagick has a win32 install somewhere).

    May 10th, 2009 @ 03:42 PM

  2. Adam Grant
    Adam Grant
    • Tag set to 2.3.x, install, windows

    This is DEFINITELY a Rails issue. My coworker just tried to do the same thing today. He has been developing with Rails for 2+ years, and we recently upgraded our install. Well, I upgraded it, and I'm on Linux. He can't, because he's on Windows. The two libraries Rails is requiring here, sqlite3-ruby and rmagick, shouldn't be necessary for a Rails install. We use MySQL, and we sure don't use any image process (let alone with RMagick shudders). I know they can be handy to have for getting up and running immediately for most basic Rails apps, but you should allow and the options for not including those. All he did was "gem install rails". C'mon, I hate Windows as much as the next guy, but there are valid reasons for needing to develop on it. The basic Rails install should work for all major platforms, don't you think? I can't imagine not requiring sqlite and rmagick are huge issues. And I think these are really the only parts that don't mesh with Windows.

    Thoughts?

    July 31st, 2009 @ 07:36 PM

  3. Frederick Cheung
    Frederick Cheung

    Sounds like your colleague is talking about something else. The creator of this ticket asked gem to update all of their gems and some non rails gems failed to update.

    sqlite3-ruby and rmagick aren't dependencies of rails - neither will get installed if all you do is gem install rails.

    July 31st, 2009 @ 08:30 PM

  4. Adam Grant
    Adam Grant

    Good point. I will read the topic more closely next time. I love civil conversations! Does something production now

    July 31st, 2009 @ 09:44 PM