ruby - Rails bundle install - failed to build gem native extension for JSON -
i trying fix strange problem in rails resorted uninstalling gems (using command found here: http://geekystuff.net/2009/01/14/remove-all-ruby-gems/) , running bundle install
.
the removal successful, when ran bundle install
, got following error:
installing activeresource (3.2.13)
using bundler (1.3.5) installing rack-ssl (1.3.3)
installing json (1.8.0)
gem::installer::extensionbuilderror: error: failed build gem native extension .
c:/railsinstaller/ruby1.9.3/bin/ruby.exe extconf.rb creating makefile
make
generating generator-i386-mingw32.def
compiling generator.c
linking shared-object json/ext/generator.so
make install
/usr/bin/install -c -m 0755 generator.so c:/railsinstaller/ruby1.9.3/lib/ruby/ge ms/1.9.1/gems/json-1.8.0/lib/json/ext /usr/bin/install: cannot remove `c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1 /gems/json-1.8.0/lib/json/ext/generator.so': permission denied make: *** [c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.0/lib/j son/ext/generator.so] error 1
gem files remain installed in c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9 .1/gems/json-1.8.0 inspection.
results logged c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8. 0/ext/json/ext/generator/gem_make.out error occurred while installing json (1.8.0), , bundler cannot continue.
make sure
gem install json -v '1.8.0'
succeeds before bundling.
i've spent fair amount of time still can't figure out what's wrong. please advise.
i downloaded , ran rails installer. time when ran bundle install
, problem gone.
Comments
Post a Comment