ERROR: Failed to build gem native extension - neither scenario on Troubleshooting section worked

298 views
Skip to first unread message

Doug Blumeyer

unread,
Apr 28, 2015, 7:27:38 PM4/28/15
to rubyin...@googlegroups.com
Here is my error:

C:\Users\Douglas\Desktop\DouglasBlumeyer.com-master>bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Using rake 10.4.2
Using i18n 0.7.0

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

        C:/Ruby21/bin/ruby.exe extconf.rb
creating Makefile

make "DESTDIR="
'make' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/json-1.8.2
 for inspection.
Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/gems/json-1.8.2/ext/json/ext/gen
erator/gem_make.out
An error occurred while installing json (1.8.2), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.2'` succeeds before bundling.

And here is my gem environment:

C:\Users\Douglas\Desktop\DouglasBlumeyer.com-master>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.29
  - RUBY VERSION: 2.1.6 (2015-04-13 patchlevel 336) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/Ruby21/lib/ruby/gems/2.1.0
  - RUBY EXECUTABLE: C:/Ruby21/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby21/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - C:/Ruby21/lib/ruby/gems/2.1.0
     - C:/Users/Douglas/.gem/ruby/2.1.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:

Bryan Bibat

unread,
Apr 28, 2015, 7:32:08 PM4/28/15
to rubyin...@googlegroups.com
You don't have "make", which means DevKit isn't installed i.e. the first scenario in Troubleshooting's "For some strange reason, it fails to install gems".

--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyinstalle...@googlegroups.com.
To post to this group, send email to rubyin...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyinstaller.
For more options, visit https://groups.google.com/d/optout.



--
Bryan Bibat
Freelance Software Engineer
http://www.bryanbibat.net

Justin Baker

unread,
Apr 28, 2015, 7:46:07 PM4/28/15
to rubyin...@googlegroups.com
Hey! I'm a little confused.

Have you A} "installed the DevKit and still got this error" or B) "haven't installed it yet and don't know how"?

There is also C) "I missed a step, and am installing it now."

I'm guessing it's C, but your emails were kind of vague.
If you're still having problems and need help, let me know.

Justin

Dušan D. Majkić

unread,
Apr 29, 2015, 3:35:52 AM4/29/15
to rubyin...@googlegroups.com
You probably missed to run these commands

cd C:\devkit
ruby init
edit config.yml (enter here dir to your ruby installation)
ruby install

Or if that for some reason doesn't work, try to run
C:\devkit\devkitvars.bat before bundle install

Dušan D. Majkić

unread,
Apr 29, 2015, 3:39:22 AM4/29/15
to rubyin...@googlegroups.com
> ruby init
> ruby install

Sorry - it should be:

ruby dk.rb init
ruby dk.rb install
Reply all
Reply to author
Forward
0 new messages