architectslobi.blogg.se

Rubyinstaller 1.8.1
Rubyinstaller 1.8.1













  1. Rubyinstaller 1.8.1 how to#
  2. Rubyinstaller 1.8.1 install#
  3. Rubyinstaller 1.8.1 code#
  4. Rubyinstaller 1.8.1 download#

This could take a while.ĮRROR: Failed to build gem native extension. Temporarily enhancing PATH to include DevKit.īuilding native extensions.

Rubyinstaller 1.8.1 install#

When I execute the above first step, I get the error - C:\Ruby193\DevKit>gem install json -platform=ruby Ruby -rubygems -e "require 'json' puts JSON.load('').inspect"

rubyinstaller 1.8.1

To return to the problem at hand, you should be able to install JSON (or otherwise test that your DevKit successfully installed) by running the following commands which will perform an install of the JSON gem and then use it: gem install json -platform=ruby

  • Extract DevKit to path C:\Ruby193\DevKit.
  • Source = The 'json' native gem requires installed build tools So, I used the instructions below to solve it. I got some errors saying that some json libraries could not be installed. The command devkitvars.bat adds the Development Kit to the system path.I wanted to install the rspec-rails gem with ruby 1.9.3 on windows 7. The below error, in my case, was Ruby Development Kit not added to the system path variable The Ruby Development Kit has a component called MinGW which is used to run Unix command on Windows. Now try installing your gem it worked for me. The last command is what I missed initially and took sometime to figure out. Open command prompt and cd to the extracted location and execute the following commands cd C:\RubyDevKit

    Rubyinstaller 1.8.1 download#

    In order to install those gem in Windows, you need Ruby DEVELOPMENT KIT from the download link ( choose the correct installer based on your Ruby version).Įxtract the installation to some permanent location. Most of the Ruby gems are developed for Unix and require some extra tools to make it work on Windows. Makefile:204: recipe for target 'generator.o' failed make: *** Error 1Ĭ:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.1 for inspection. fbuffer/fbuffer.h:5:18: fatalĮrror: ruby.h: No such file or directory #include "ruby.h" Make generating f compiling generator.c Inįile included from generator.c:1:0. C:/Ruby193/bin/ruby.exe extconf.rb creating Makefile This could take a while… ERROR: Error installing json:ĮRROR: Failed to build gem native extension. Temporarily enhancing PATH to include DevKit… Building nativeĮxtensions. Next step – Not so nice, but, I'll change mingw32-make.exe to make.exe and see. DOSKEY is valid only in the cmd window in which you run it.

    Rubyinstaller 1.8.1 code#

    I am guessing that the ruby code is spawning off a hidden cmd window and thats why the command is not working. Then, I ran the DOSKEY make=mingw32-make followed by the ruby command. Then added C:\MinGW\bin to environment variables to find mingw32-make.exe. I did this – Install Mingw and installed all its developer tools and base stuff. I have been struggling to install gems and I am failing for so many days.

    Rubyinstaller 1.8.1 how to#

    If someone already knows how to fix this, then please help me. Using make is not recognized as an internal or external command – Qt SDK – Windows 'make' is not recognized as an internal or external command, operable program or batch file. I am trying to solve the above error now – Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.1 for inspection. 'make' is not recognized as an internal or external command,

    rubyinstaller 1.8.1

    When I execute the above first step, I get the error – C:\Ruby193\DevKit>gem install json -platform=ruby

    rubyinstaller 1.8.1

    I wanted to install the rspec-rails gem with ruby 1.9.3 on windows 7.















    Rubyinstaller 1.8.1