2

Can't overcome problem. Everytime i generating new rails project on windows get the massage:

Installing json (1.6.5) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

   C:/Ruby193/bin/ruby.exe extconf.rb
C:/Ruby193/bin/ruby.exe: No such file or directory -- extconf.rb (LoadError)

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

i've tried instal json but without lack... I've manage to instal json_pure. But still get this error. 'ruby dk.rb init' not worked too

2
  • 4
    Windows isn't really good way for Ruby on Rails development. I recommend you to switch to Unix system, for example, Ubuntu. Commented Jan 17, 2012 at 13:20
  • 1
    +1 ExR You could be up and running in an hour or two with a dual-boot. Best of both worlds. Commented Jan 17, 2012 at 13:30

1 Answer 1

3

For building native extensions on Windows, you need to install DevKit. It gives you a Unix-like environment and compilers.

Sign up to request clarification or add additional context in comments.

2 Comments

have tried this with rubyinstaller already (it comes with devkit)...same result
'not working'? What's the error? Have you added the devkit 'bin' and 'mingw\bin' to your path?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.