yajl-ruby
yajl-ruby copied to clipboard
install on ruby 2.1.2p95 and ubuntu precise
On Ruby 2.1.2 and ubuntu precise yajl does not work...
Building native extensions. This could take a while... ERROR: Error installing yajl-ruby: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR=" compiling yajl.c compiling yajl_alloc.c compiling yajl_buf.c compiling yajl_encode.c compiling yajl_ext.c yajl_ext.c: In function 'rb_yajl_parser_parse': yajl_ext.c:471:17: warning: variable 'stat' set but not used [-Wunused-but-set-variable] compiling yajl_gen.c compiling yajl_lex.c compiling yajl_parser.c compiling yajl_version.c linking shared-object yajl/yajl.so
make "DESTDIR=" install /usr/bin/install -c -m 0755 yajl.so ./.gem.20140626-11903-195dja2/yajl installing default yajl libraries
Invalid cross-device link @ sys_fail2 - (./.gem.20140626-11903-195dja2/yajl, /var/lib/gems/2.1.0/extensions/x86-linux/2.1.0/yajl-ruby-1.2.1/yajl)
looks like you have /var on a different partition from where you're building and install is attempting to hard link or something...