Jayden Bamberger


750 Experience
0 Lessons Completed
1 Question Solved


Posted in 'bcrypt' gem install Error

Thank you so much! @William Kennedy Your suggestion helped a lot. The gem installed and is now working. Thanks!

Posted in 'bcrypt' gem install Error

So, I was attempting to install the gem 'bcrypt' and I received the following error:
Installing bcrypt 3.1.11 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/usr/bin/ruby2.3 -r ./siteconf20180227-14591-1t2kx3l.rb 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/bundler20180227-14591-12ywl1kbcrypt-3.1.11/gems/bcrypt-3.1.11 for
Results logged to

An error occurred while installing bcrypt (3.1.11), and Bundler cannot
Make sure that `gem install bcrypt -v '3.1.11'` succeeds before bundling.
 I've already tried looking it up countless times and many of the answers on other websites weren't working. So if anyone is able to help, please do.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.