Temporarily increasing PATH to enable DevKit message during rails installation in window 7

I get an error when I exe command gem install rails

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
        ERROR: Failed to build gem native extension.


C:/Ruby193/bin/ruby.exe extconf.rb
*** 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
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby193/bin/ruby
        --with-atomic_reference-dir
        --without-atomic_reference-dir
        --with-atomic_reference-include
        --without-atomic_reference-include=${atomic_reference-dir}/include
        --with-atomic_reference-lib
        --without-atomic_reference-lib=${atomic_reference-dir}/lib
C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to genera
te an executable file. (RuntimeError)
You have to install development tools first.
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
        from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:712:in `try_run'
        from extconf.rb:26:in `<main>'

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/atomic-1.
1.14 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/atomic-1.1.14/ext/gem_make
.out
+4
source share
3 answers

in window 7 there is a 64-bit system
1) if you want to work with ruby โ€‹โ€‹version lesst then ruby โ€‹โ€‹2.0 2) you need to install DevKit 32 bit from http://rubyinstaller.org/downloads/ in a window 7 x64 bits

if you want to install ruby โ€‹โ€‹2 or later version in window 7 64, so you need to set DevKit 64 bit with ruby โ€‹โ€‹2 with 64-bit

with DevKit 64 bit in window 7 64-bit ruby โ€‹โ€‹32-bit system will not work

7 64- 32- Devkit 32-

+1

;

-DevKit C:\Ruby\DevKit

  • c:\Ruby\DevKit > ruby โ€‹โ€‹dk.rb( )

  • c:\Ruby\DevKit > ruby โ€‹โ€‹dk.rb init

-c:\Ruby\DevKit > ruby โ€‹โ€‹dk.rb

-c:\Ruby\DevKit > ruby โ€‹โ€‹dk.rb install

.

: http://rubyonwindowsguides.imtqy.com/book/ch02-04.html

+1

64 , Ruby DevKit 64. Exact DevKit . comEngineer, , config.yml ruby. - C:/Ruby23-x64

msys.bat DevKit , gem install rails

, devkitvar.ps1 . agian

0

All Articles