1
我可以運行包沒有問題,我的Mac上安裝,但是當我在我的Ubuntu運行構建它失敗,出現以下輸出服務器:爲什麼本機擴展的寶石無法在Ubuntu上構建?
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p385-dev/bin/ruby extconf.rb
creating Makefile
make
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: control reaches end of non-void function [-Wreturn-type]
linking shared-object birch/native.so
make 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' and './native.so' are the same file
make: *** [-] Error 1
我使用RVM,紅寶石版本紅寶石1.9。 3-P385-dev的。
該問題不是特定於一個gem--刪除樺木會導致與本機擴展相同類型的bson錯誤。