Sunday, 15 July 2012

ruby - Why do gems with native extensions fail to build on Ubuntu? -



ruby - Why do gems with native extensions fail to build on Ubuntu? -

i can run bundle install on mac without problem, when run on ubuntu build server fails next output:

gem::installer::extensionbuilderror: error: failed build gem native extension. /var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p385-dev/bin/ruby extconf.rb creating makefile create compiling native.c native.c: in function ‘birch_edge_initialize’: native.c:42:8: warning: unused variable ‘direction’ [-wunused-variable] native.c:41:8: warning: unused variable ‘directed’ [-wunused-variable] native.c:40:8: warning: unused variable ‘node_b’ [-wunused-variable] native.c:39:8: warning: unused variable ‘node_a’ [-wunused-variable] native.c:58:1: warning: command reaches end of non-void function [-wreturn-type] linking shared-object birch/native.so create install /usr/bin/install -c -m 0755 native.so /var/lib/jenkins/jobs /usr/bin/install -c -m 0755 native.so . /usr/bin/install: 'native.so' , './native.so' same file make: *** [-] error 1

i'm using rvm, ruby version ruby-1.9.3-p385-dev.

the problem isn't specific 1 gem either - removing birch results in same type of error bson native extensions.

it seems caused bad rvm install. installed rvm using apt (bad, bad idea), , looks purge didn't clean up. setting clean ec2 instance clean rvm install fixed it

ruby rubygems gem native

No comments:

Post a Comment