This project is archived and is in readonly mode.

#2140 ✓invalid
jamesw

Problems updating all gems to Rails 2.3 on Win XP

Reported by jamesw | March 5th, 2009 @ 08:31 PM | in 2.x

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

Comments and changes to this ticket

  • Frederick Cheung

    Frederick Cheung May 10th, 2009 @ 03:42 PM

    • 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).

  • Adam Grant

    Adam Grant July 31st, 2009 @ 07:36 PM

    • 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?

  • Frederick Cheung

    Frederick Cheung July 31st, 2009 @ 08:30 PM

    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.

  • Adam Grant

    Adam Grant July 31st, 2009 @ 09:44 PM

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages