Skip to content

Instantly share code, notes, and snippets.

@luckyruby
Created April 13, 2012 23:10
Show Gist options
  • Save luckyruby/2380719 to your computer and use it in GitHub Desktop.
Save luckyruby/2380719 to your computer and use it in GitHub Desktop.
# gem install json -v '1.6.6'Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/opt/csw/bin/ruby191 extconf.rb
creating Makefile
make
compiling generator.c
sh: /opt/SUNWspro/bin/cc: not found
*** Error code 1
The following command caused the error:
/opt/SUNWspro/bin/cc -I. -I/opt/csw/include/ruby-1.9.1/i386-solaris2.10 -I/opt/csw/include/ruby-1.9.1/ruby/backward -I/opt/csw/include/ruby-1.9.1 -I. -I/opt/csw/X11/include -I/opt/csw/include -D_FILE_OFFSET_BITS=64 -KPIC -xO3 -xarch=pentium_pro -xchip=pentium_pro -m32 -KPIC -O3 -m32 -ogenerator.o -c generator.c
make: Fatal error: Command failed for target `generator.o'
Gem files will remain installed in /opt/csw/lib/ruby/gems/1.9.1/gems/json-1.6.6 for inspection.
Results logged to /opt/csw/lib/ruby/gems/1.9.1/gems/json-1.6.6/ext/json/ext/generator/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment