From: Michel Demazure Date: 2007-11-24T02:19:40+09:00 Subject: Re: 'gem update' making wrong choice Luis Lavena wrote: > On Nov 23, 9:48 am, Michel Demazure wrote: >> I work on a Win box, without compiler. >> But 'gem environment' gives two PLATFORMs, win32 *and* ruby. >> Then 'gem update' try to load the wrong gem... >> >> How may I clean the environment variable ? >> Thanks for help... > > I don't think understand your problem. > > gem env reports two platforms: that is correct: take for example this > linux box: > > RubyGems Environment: > - RUBYGEMS VERSION: 0.9.5 (0.9.5) > - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i686-linux] > - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 > - RUBY EXECUTABLE: /usr/local/bin/ruby > - RUBYGEMS PLATFORMS: > - ruby > - x86-linux > - GEM PATHS: > - /usr/local/lib/ruby/gems/1.8 > > > That means rubygems will try to install gems marked with 'ruby' (also > known as pure ruby gems) or gems that are pre-compiled / binary or > specific for the x86 linux platform. > > In your case, x86-mswin32 is a correct platform and RubyGems will try > to install the best gems for you. > > What is the output you're having? > More information will be helpful to point directions or bug reports. @Luis Apparently, 'gem install' selects the wrong gem and loads a gem to be compiled, see below : This is new to gem 0.9.5, before I had to choose... Microsoft Windows XP [version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:...>gem install rcov Building native extensions. This could take a while... ERROR: Error installing rcov: ERROR: Failed to build gem native extension. C:/ruby/bin/ruby.exe extconf.rb install rcov creating Makefile nmake 'nmake' n'est pas reconnu en tant que commande interne ou externe, un programme ex辿cutable ou un fichier de commandes. Gem files will remain installed in C:/ruby/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0 for inspection. Results logged to C:/ruby/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0/ext/rcovrt/gem_m ake.out -- Posted via http://www.ruby-forum.com/.