捆绑安装失败安装FFI(1.9.6)
在Ubuntu 12.04 Drupalpro发展VM捆绑安装失败安装FFI(1.9.6)
宝石::安装:: ExtensionBuildError:错误:未能建立宝石原生扩展。
/usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:4:in `<main>'
Gem files will remain installed in /tmp/bundler20150224-3385-1j3fayi/ffi-1.9.6/gems/ffi-1.9.6 for inspection.
Results logged to /tmp/bundler20150224-3385-1j3fayi/ffi-1.9.6/gems/ffi-1.9.6/ext/ffi_c/gem_make.out
An error occurred while installing ffi (1.9.6), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.6'` succeeds before bundling.
回答:
好的阅读这个问题 Answer for `require': no such file to load -- mkmf (LoadError)
- 找出红宝石什么版本后您使用
$ruby -v
- 我的是红宝石1.8.7
- 然后通过安装的这个开发人员版
$ sudo apt-get install ruby1.8.7-dev
在安装dev版本后,捆绑器将工作
以上是 捆绑安装失败安装FFI(1.9.6) 的全部内容, 来源链接: utcz.com/qa/266547.html