There are similar questions:
- `require’: no such file to load — mkmf (LoadError)
- Failed to build gem native extension (mkmf (LoadError)) – Ubuntu 12.04
Usually, the solution is:
sudo apt-get install ruby-dev
Or, if that doesn’t work, depending on your ruby version, run something like:
sudo apt-get install ruby1.9.1-dev
Should fix your problem.
Still not working? Try the following after installing ruby-dev:
sudo apt-get install make
Related Posts:
- Cannot load such file — bcrypt_ext
- bcrypt LoadError: Cannot load such file
- Why does Ruby on Rails use http://0.0.0.0:3000 instead of http://localhost:3000?
- How do I remove Permission denied @ rb_sysopen – Gem install error?
- warning: constant ::Fixnum is deprecated When generating new model
- Uninitialized constant “Controller Name”
- Difference between rake db:migrate db:reset and db:schema:load
- TypeError: no implicit conversion of Symbol into Integer
- Migrations are pending; run ‘bin/rake db:migrate RAILS_ENV=development’ to resolve this issue
- 400 Bad Request – request header or cookie too large
- Why Puma listen on ‘tcp://localhost:3000’ instead of ‘http://localhost:3000’
- Explain what " means
- ActionController::InvalidAuthenticityToken
- bundle install returns “Could not locate Gemfile”
- ActionController::InvalidAuthenticityToken
- Rails: Why “sudo” command is not recognized?
- Rails 5 ActionController::InvalidAuthenticityToken error
- what does ? ? mean in ruby
- Rails: Can’t verify CSRF token authenticity when making a POST request
- undefined method `each’ for nil:NilClass… why?
- Bundler: You must use Bundler 2 or greater with this lockfile
- undefined method `each’ for nil:NilClass… why?
- Using Pundit for all-access “super_admin” role
- How to tell if homebrew is installed on Mac OS X
- What is the difference between Rails.cache.clear and rake tmp:cache:clear?
- Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
- Can’t find the ‘libpq-fe.h header when trying to install pg gem
- could not connect to server: No such file or directory (PG::ConnectionBad)
- PG::ConnectionBad: fe_sendauth: no password supplied
- curl : (1) Protocol https not supported or disabled in libcurl
- Rails 4 RoutingError: No Route Matches
- couldn’t find file ‘jquery’ with type ‘application/javascript’
- Passing parameters in rails redirect_to
- Getting: “Migrations are pending; run ‘bin/rake db:migrate RAILS_ENV=development’ to resolve this issue.” after cloning and migrating the project
- PG::ConnectionBad – could not connect to server: Connection refused
- Rails syntax error : unexpected keyword_ensure, expecting end-of-input
- How to find out which rails version an existing rails application is built on?
- RubyMine Unit tests – Test Framework quit unexpectedly
- Ruby: What is the easiest way to remove the first element from an array?
- How do I format datetime in rails?
- Ruby String to Date Conversion
- heroku open – no app specified
- Sass::SyntaxError: File to import not found or unreadable: bootstrap-sprockets
- Rails button_to vs. HTML Button Tag
- GROUP BY and COUNT using ActiveRecord
- How to stop (and restart) the Rails Server?
- Uninstall old versions of Ruby gems
- Uploading a file in Rails
- An error occurred while installing json (1.8.1), and Bundler cannot continue – Rails
- Nginx error: client intended to send too large body
- How do I parse JSON with Ruby on Rails? [duplicate]
- ERROR: While executing gem … (Gem::FilePermissionError)
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- How to find which version of TensorFlow is installed in my system?
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- Advanced AREL or just Rails Query for has_many through search by association
- How to establish ssh key pair when “Host key verification failed”
- Why does the terminal show “^[[A” “^[[B” “^[[C” “^[[D” when pressing the arrow keys in Ubuntu?
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- What does << mean in Ruby?
- How to decrypt hash stored by bcrypt
- Ruby: undefined method `[]’ for nil:NilClass when trying to get Enumerator on an Array of Hashes
- Difference between “or” and || in Ruby?
- Unable to locate package libapache2-mod-php7
- Laravel 5.2 Storage::makeDirectory($dir) is not creating directory
- pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/
- extconf failed, exit code 1 error when installing [Ruby on Rails] 5 on OS X Yosemite 10.10.5
- nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- Unable to establish SSL connection upon wget on Ubuntu 14.04 LTS
- Ruby array to string conversion
- Multi-Line Comments in Ruby?
- How to delete specific characters from a string in Ruby?
- C++ error: undefined reference to ‘clock_gettime’ and ‘clock_settime’
- How to Uninstall RVM? [duplicate]
- Equivalent of “continue” in Ruby
- wget: unable to resolve host address `http’
- What does the Ruby method ‘to_sym’ do?
- pdflatex not found. pdflatex is needed for pdf output
- Array to Hash Ruby
- PIP Could not find any downloads that satisfy the requirement SQLAlchemy
- Removing all installed OpenCV libs
- Getting error: dyld: Symbol not found: _clock_gettime
- How to run Ruby code from terminal?
- Generate model in Rails using user_id:integer vs user:references
- How to understand strptime vs. strftime
- How can bcrypt have built-in salts?
- where is devise implementation of “authenticate_user!” method?
- How to break out from a ruby block?
- How to add to an existing hash in Ruby
- What is the canonical way to trim a string in Ruby without creating a new string?
- whats the meaning of curl “-s” and “-m”
- How do I ask apt-get to skip any interactive post-install configuration steps?
- How do I get apt-get to ignore some dependencies?
- Can I hide all server / os info?
- Which ports do I need to open in the firewall to use NFS?
- list all packages from a repository in ubuntu / debian
- How to fix PuTTY showing garbled characters? [closed]
- GPG does not have enough entropy
- Why don’t EC2 ubuntu images have swap?
- How can I edit the welcome message when ssh start?