Try: gem pristine thin -version 1.7.2īundler could not find compatible versions for gem "ruby ": Ignoring thin-1.7.2 because its extensions are not built. Gem "nokogiri", (RUBY_VERSION >= "2.1" ? "~> 1.7.2" : "~> 1.6.8")Į:\data\redmine>bundle install -without development test rmagick The command devkitvars.bat adds the Development Kit to the system path.I cannot install Redmine 3.4.3 in following configuration 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 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 ERROR: Error installing json:ĮRROR: Failed to build gem native extension. Temporarily enhancing PATH to include DevKit. Next step - Not so nice, but, I'll change mingw32-make.exe to make.exe and see. The Md5 check sum is 5d52c7d0e6a6eb6e3bc68d77e794898e ruby-1.8.1.tar.gz Thank you matz and all committers. DOSKEY is valid only in the cmd window in which you run it. Posted by sughimsi on Latest stable release ruby 1.8.1 is finally announced: This is mainly a bug fix release. 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. 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, This could take a while.ĮRROR: Failed to build gem native extension. Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.1 for inspection. 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |