我將在Debian測試(伸展)中使用軟件包安裝在我的rails應用程序中安裝一些gem。我得到這個錯誤:使用軟件包安裝安裝bcrypt時出錯
Installing bcrypt 3.1.10 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /tmp/bundler20151208-29851-hg3bi3bcrypt-3.1.10/gems/bcrypt-3.1.10 for inspection.
Results logged to /tmp/bundler20151208-29851-hg3bi3bcrypt-3.1.10/extensions/x86_64-linux/2.1.0/bcrypt-3.1.10/gem_make.out
An error occurred while installing bcrypt (3.1.10), and Bundler cannot continue.
Make sure that `gem install bcrypt -v '3.1.10'` succeeds before bundling.
,但我一直在使用gem install
安裝bcrypt
和bcrypt-ruby
。
那麼你可以說你正在運行的操作系統?某些操作系統版本需要安裝某些頭文件。 – mhaseeb