sitetan.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 update#
  4. Rubyinstaller 1.8.1 code#

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 install#

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 –

rubyinstaller 1.8.1

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, This could take a while.ĮRROR: Failed to build gem native extension.

rubyinstaller 1.8.1

Temporarily enhancing PATH to include DevKit.īuilding native extensions. 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" 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.

    rubyinstaller 1.8.1

    I got some errors saying that some json libraries could not be installed. ERROR: Error installing JSON:I wanted to install the rspec-rails gem with ruby 1.9.3 on windows 7. Then got the same error message as before. Now I tried executing the JSON gem again using the command gem install json. Installing C:/Ruby192/lib/ruby/site_ruby/devkit.rb RubyGems override already in place for C:/Ruby192, skipping. I got the message that devkit functionality will be injected into the rubies when you run "ruby dk.rb install" ruby dk.rb install This is the line at the bottom of the config.yaml file "- C:/Ruby192" ruby dk.rb review ruby dk.rb initĪfter the above command is executed, I verified that config.yaml is generated and it has the path for my ruby folder added automatically.

    rubyinstaller 1.8.1

    And then from the command prompt, I executed the following commands.

    Rubyinstaller 1.8.1 update#

    Please update your PATH to include build tools or download the DevKit The 'json' native gem requires installed build tools. Now I tried to install the JSON gem using the command, "gem install json" and got the following error. I have ruby 1.9.2p180 () installed on my windows 7 machine.







    Rubyinstaller 1.8.1