What are the contents of config.yml that is inside DevKit directory?
> C:\>gem install rdiscount --platform=ruby
> Temporarily enhancing PATH to include DevKit...
> Building native extensions. This could take a while...
> ERROR: Error installing rdiscount:
> ERROR: Failed to build gem native extension.
>
> C:/Ruby187/bin/ruby.exe extconf.rb
>
> Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/
> rdiscount-1
> .6.8 for inspection.
> Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/rdiscount-1.6.8/
> ext/gem_make
> .out
>
If you're seeing this happening, you might have something that is
interfering in your system.
>
> My C:\Ruby\Ruby192\lib\ruby\site_ruby\1.9.1\rubygems\defaults
> \operating_system.rb contains:
>
> # :DK-BEG: override 'gem install' to enable RubyInstaller DevKit usage
> Gem.pre_install do |gem_installer|
> unless gem_installer.spec.extensions.empty?
> unless ENV['PATH'].include?('C:\\DevKit\\mingw\\bin') then
> Gem.ui.say 'Temporarily enhancing PATH to include DevKit...' if
> Gem.configuration.verbose
> ENV['PATH'] = 'C:\\DevKit\\bin;C:\\DevKit\\mingw\\bin;' +
> ENV['PATH']
> end
> ENV['RI_DEVKIT'] = 'C:\\DevKit'
> ENV['CC'] = 'gcc'
> ENV['CPP'] = 'cpp'
> ENV['CXX'] = 'g++'
> end
> end
> # :DK-END:
>
>
> REG QUERY "HKCU\Software\Microsoft\Command Processor"
>
> C:\DevKit>REG QUERY "HKCU\Software\Microsoft\Command Processor"
>
> ! REG.EXE VERSION 3.0
>
> HKEY_CURRENT_USER\Software\Microsoft\Command Processor
> CompletionChar REG_DWORD 0x9
> DefaultColor REG_DWORD 0x0
> EnableExtensions REG_DWORD 0x1
>
>
>
> REG QUERY "HKLM\Software\Microsoft\Command Processor"
>
> C:\DevKit>REG QUERY "HKLM\Software\Microsoft\Command Processor"
>
> ! REG.EXE VERSION 3.0
>
> HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor
> CompletionChar REG_DWORD 0x40
> DefaultColor REG_DWORD 0x0
> EnableExtensions REG_DWORD 0x1
> PathCompletionChar REG_DWORD 0x40
>
>
> C:\DevKit>CHCP
> Active code page: 437
>
> C:\DevKit>SET COMSPEC
> ComSpec=C:\Program Files\Console-1.5\Console\console.exe
> --- this looks a little odd , shouldnt it be C:\Windows
> \system32\cmd.exe
>
Dunno why you have that as COMSPEC, but Console.exe is not a valid
command processor and could explain the reason why gem installation is
failing.
Please change your environment variables in your system settings and try again.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
Luis,
Thanks for the prompt response. I noticed the comspec mix up right after posting this msg so tried to change it to the correct settings and everything is working once again. I thought to try it from a series of troubleshooting steps you were going through with someone else with a similar issue. Thx for your help.
> --
> You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
> To post to this group, send email to rubyin...@googlegroups.com.
> To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
>
Great to hear this, updated the Wiki for the new corner case:
https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_fails_comspec_autorun