Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

json fatal error - system cannot find the path specified #1822

Closed
shuih opened this issue Apr 5, 2012 · 9 comments
Closed

json fatal error - system cannot find the path specified #1822

shuih opened this issue Apr 5, 2012 · 9 comments

Comments

@shuih
Copy link

shuih commented Apr 5, 2012

Installing json (1.6.6) with native extensions The system cannot find the path s
pecified.
Unfortunately, a fatal error has occurred. Please report this error to the Bundl
er issue tracker at https://github.com/carlhuda/bundler/issues so that we can fi
x it. Thanks!
C:/Ruby193/lib/ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build
_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::Exte
nsionBuildError)

    C:/Ruby193/bin/ruby.exe extconf.rb

creating Makefile

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.
6 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.6/ext/json/ext/ge
nerator/gem_make.out

@shuih
Copy link
Author

shuih commented Apr 5, 2012

I'm new to Ruby. Having issue while tried to do bundle install. Tried to download json-1.6.6 to and installed from my local but no luck. Previous was working fine until I installed ANSICON1.5.1. Not sure if this was the cause?

@radar
Copy link
Contributor

radar commented Apr 5, 2012

This is a problem with the json gem. There's a way to solve that problem posted over on StackOverflow.

@radar radar closed this as completed Apr 5, 2012
@shuih
Copy link
Author

shuih commented Apr 5, 2012

I tried to install with --platform=ruby but still failed with "..cannot find the path specified."

C:\niax-cucumber\western_expansion>gem install json --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
The system cannot find the path specified.
ERROR: Error installing json:
ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe extconf.rb

creating Makefile

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.
6 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.6/ext/json/ext/ge
nerator/gem_make.out

@radar
Copy link
Contributor

radar commented Apr 5, 2012

Please read the answer again. It says to install the Rails dev toolkit. Try that please.

@shuih
Copy link
Author

shuih commented Apr 5, 2012

Yes, I had DevKit installed already.

@radar
Copy link
Contributor

radar commented Apr 5, 2012

Ok then, I don't know what the problem is and cannot help you sorry.

@shuih
Copy link
Author

shuih commented Apr 5, 2012

Since my issue hasn't be solved yet, can you reopen this issue, please

@radar
Copy link
Contributor

radar commented Apr 5, 2012

No. As I said in the beginning, this has absolutely nothing to do with Bundler and everything to do with the json gem. Because this is not a Bundler issue, there is nothing for the Bundler team to do here.

If you attempted a manual gem install json yourself you would still have the same problem.

@bjornlevi
Copy link

this fixed it for me: https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_fails_comspec_autorun

Scenario B

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants