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?
- ping: google.com: Temporary failure in name resolution [closed]
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- Get underlined text with Markdown
- Undefined function mysql_connect()
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- How to find which version of TensorFlow is installed in my system?
- Undefined function mysql_connect()
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- Docker System has not been booted with systemd as init system
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- CentOS vs. Ubuntu [closed]
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
- What is a clearfix?
- Advanced AREL or just Rails Query for has_many through search by association
- What is the meaning of *nix?
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- How can I completely uninstall nodejs, npm and node in Ubuntu [closed]
- Get underlined text with Markdown
- How to install python3 version of package via pip on Ubuntu?
- Docker error : no space left on device
- How to establish ssh key pair when “Host key verification failed”
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- Why does the terminal show “^[[A” “^[[B” “^[[C” “^[[D” when pressing the arrow keys in Ubuntu?
- What does the “map” method do in Ruby?
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- E: unable to locate package pip
- How to write a switch statement in Ruby
- How to solve “Kernel panic – not syncing – Attempted to kill init” — without erasing any user data
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- How to install “make” in ubuntu?
- Parsing a JSON string in Ruby
- AngularJS- Login and Authentication in each route and controller
- “sed” command in bash
- Tell Ruby Program to Wait some amount of time
- Ruby: Can I write multi-line string with no concatenation?
- localhost/phpinfo.php
- Getting error: Peer authentication failed for user “postgres”, when trying to get pgsql working with rails
- How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?
- How to restart remote MySQL server running on Ubuntu linux?
- Why use Ruby’s attr_accessor, attr_reader and attr_writer?
- Ubuntu: OpenJDK 8 – Unable to locate package
- After installing with pip, “jupyter: command not found”
- What does %w(array) mean?
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- Failed to start mongod.service: Unit mongod.service not found