Skip to content

Instantly share code, notes, and snippets.

@dylansimpson
Created April 24, 2013 18:24
Show Gist options
  • Save dylansimpson/5454332 to your computer and use it in GitHub Desktop.
Save dylansimpson/5454332 to your computer and use it in GitHub Desktop.
bundle failing to install json
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/dylan/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
creating Makefile
make
compiling generator.c
generator.c: In function ‘cState_aref’:
generator.c:632:5: warning: variable ‘state’ set but not used [-Wunused-but-set-variable]
generator.c: In function ‘isArrayOrObject’:
generator.c:867:5: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
generator.c:863:10: warning: unused variable ‘c’ [-Wunused-variable]
linking shared-object json/ext/generator.so
make install
/usr/bin/install -c -m 0755 generator.so /home/dylan/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.6/ext/json/ext/json/ext
/usr/bin/install: cannot create regular file `/home/dylan/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.6/ext/json/ext/json/ext': No such file or directory
make: *** [install-so] Error 1
Gem files will remain installed in /home/dylan/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.6 for inspection.
Results logged to /home/dylan/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.6/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.6.6), and Bundler cannot continue.
Make sure that `gem install json -v '1.6.6'` succeeds before bundling.
@dylansimpson
Copy link
Author

From gem_make.out

/home/dylan/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
creating Makefile

make
compiling generator.c
generator.c: In function ‘cState_aref’:
generator.c:632:5: warning: variable ‘state’ set but not used [-Wunused-but-set-variable]
generator.c: In function ‘isArrayOrObject’:
generator.c:867:5: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
generator.c:863:10: warning: unused variable ‘c’ [-Wunused-variable]
linking shared-object json/ext/generator.so

make install
/usr/bin/install -c -m 0755 generator.so /home/dylan/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.6/ext/json/ext/json/ext
/usr/bin/install: cannot create regular file `/home/dylan/.rvm/gems/ruby-2.0.0-p0/gems/json-1.6.6/ext/json/ext/json/ext': No such file or directory
make: *** [install-so] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment