I am having a problem getting my ruby system up and running. Specifically, I get the following error when trying
gem install json
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
c:/Ruby193/bin/ruby.exe extconf.rb
creating Makefile
make
generating parser-i386-mingw32.def
compiling parser.c
gcc.exe: CreateProcess: No such file or directory
make: *** [parser.o] Error 1
Gem files will remain installed in c:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.
Results logged to c:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.3/ext/json/ext/pa
I know that my gcc works. I don't get the same error when installing
`gem install json_pure
However, when I try a
bundle install
I get the error. I am extremely new to ruby and rails, so any help would be appreciated.
install devkit with --force option
Related
I literally looked everywhere and couldnt find an answer to it. I installed ruby on my windows with the installer they proviude on their website. Yes, i am running it on a 64 bit which is what my devkit is on. idk what to do i literally looke everywehreeeee someone please help!!!
ruby 2.5.3p105 (2018-10-18 revision 65156) [x64-mingw32]
C:\Users\ASUS>gem install byebug
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing byebug:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/byebug-11.0.0/ext/byebug
C:/Ruby25-x64/bin/ruby.exe -I C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0 -r ./siteconf20190314-10812-4pefs.rb extconf.rb
creating Makefile
current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/byebug-11.0.0/ext/byebug
make "DESTDIR=" clean
current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/byebug-11.0.0/ext/byebug
make "DESTDIR="
generating byebug-x64-mingw32.def
compiling breakpoint.c
In file included from c:/Ruby25-x64/include/ruby-2.5.0/ruby/ruby.h:29:0,
from c:/Ruby25-x64/include/ruby-2.5.0/ruby.h:33,
from byebug.h:4,
from breakpoint.c:1:
c:/Ruby25-x64/include/ruby-2.5.0/ruby/defines.h:151:22: fatal error: setjmpex.h: No such file or directory
compilation terminated.
make: *** [breakpoint.o] Error 1
make failed, exit code 2
Gem files will remain installed in C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/byebug-11.0.0 for inspection.
Results logged to C:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/byebug-11.0.0/gem_make.out
I upgraded ruby from 2.1.. to 2.4.1 on windows, and installed the msys2 toolkit.
however each time install a gem calling Makefile I am getting a ERROR: Failed to build gem native extension
c:\>gem install oj
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing oj
ERROR: Failed to build gem native extension.
current directory: C:/tools/ruby24/lib/ruby/gems/2.4.0/gems/oj-3.1.3/ext/oj
C:/tools/ruby24/bin/ruby.exe -r ./siteconf20170616-1724-1fw22px.rb extconf.rb
Creating Makefile for ruby version 2.4.1 on x64-mingw32
creating Makefile
extconf.rb:68:in ``': No such file or directory - make clean
(Errno::ENOENT)
from extconf.rb:68:in `<main>'
extconf failed, exit code 1
I am also getting similar errors when installing some other gems like json
I installed mongo gem. But during run time it says it requires bson_ext gem needs to be installed. So i am trying to install bson_ext gem in windows 7 professional and i couldn't. i am getting the below errors while installing and so i couldn't connect Ruby to my mongo server. Caould anyone help me to resolve this. i searched all areas and i found some saying doing "gem update --system" solves the problem. But even i get error for gem update option. I am new to Ruby and Cucumber.
C:\Manimaran\Ruby>gem source
*** CURRENT SOURCES ***
http://rubygems.org/
C:\Manimaran\Ruby>gem install bson_ext
WARNING: Error fetching data: Errno::ETIMEDOUT: A connection attempt failed bec
ause the connected party did not properly respond after a period of time, or est
ablished connection failed because connected host has failed to respond. - conne
ct(2) (http://rubygems.org/specs.4.8.gz)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing bson_ext:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
checking for asprintf()... no
checking for ruby/st.h... yes
checking for ruby/regex.h... yes
checking for ruby/encoding.h... yes
creating Makefile
make
generating cbson-i386-mingw32.def
compiling bson_buffer.c
compiling cbson.c
cbson.c:25:23: fatal error: arpa/inet.h: No such file or directory
compilation terminated.
make: *** [cbson.o] Error 1
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/bson_ext-
1.11.1 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/bson_ext-1.11.1/ext/cbson/
gem_make.out
the #include in the file cbson.c should be changed into #include. Then you need to build the your own gem and install it locally
Following thread describes it perfectly:
windows: rails: error installing bson_ext
I've managed to setup Ruby 1.9.3 and devkit as well as jekyll and a bunch of other gems. However, now when I try installing github-pages gem (gem install github-pages) I get the following error:
Note: I've tried running command line as an admin with no more success
Here's the output from my command line:
Temporarily enhancing PATH to include DevKit... Building native
extensions. This could take a while... ERROR: Error installing
github-pages:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe -r ./siteconf20141208-60036-a7hzln.rb extconf.rb creating Makefile
make clean Makefile:165: *** target pattern contains no `%'. Stop.
make Makefile:165: *** target pattern contains no `%'. Stop.
make failed, exit code 2
Gem files will remain installed in
C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcarpet
-3.1.2 for inspection. Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/re
dcarpet-3.1.2/gem_make.out
Well I couldn't find the answer on SO so I looked around elsewhere and was able to find the answer on GitHub. Please see here:
https://github.com/rubygems/rubygems/issues/977
Basically, if you're getting this error on Windows using RubyGems 1.9.3 (which I was) you need to downgrade to 1.8.29 until this is fixed. Glad to know it's not just me making this error!
How to downgrade, you may be asking? On Windows:
gem update --system 1.8.29
I downgraded and had no trouble installing the other gem files I needed.
I'm running Windows7 and I've having great difficulty installing the json gem. The error I'm getting hasn't been addressed anywhere. I have installed DevKit through the RailsInstaller and when I run gem install json I get the following error:
C:\Users\Gavin>gem install json
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile
make
Makefile:161: warning: overriding commands for target `install-so'
Makefile:160: warning: ignoring old commands for target `install-so'
Makefile:162: *** missing separator. Stop.
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/bin;/gems/json-1.7.5 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/bin;/gems/json-1.7.5/ext/json/ext/generator/gem_make.out
Anyone have any ideas what may be going on here?
i suppose your devkit-folder is in the path ? Otherwise try it with "gem install json_pure" instead. See this article that explains why http://ruby.about.com/od/tasks/a/The-Json-Gem.htm