make: /usr/bin/mkdir: Command not found during `gem install nokogiri` in Ubuntu 20.04
sudo ln -s /bin/mkdir /usr/bin/mkdir
ERROR: Error installing racc: ERROR: Failed to build gem native extension
The main problem here is that the command mkdir
is being called at a specific location, and it's just not there:
make: /usr/bin/mkdir: Command not found
To fix this, you need to add a symbolic link to that location:
$ sudo ln -s /bin/mkdir /usr/bin/mkdir
Run gem install
again on rails
and all should be good!
Thanks to user dem1tris from brining up a related topic, and providing the answer: make: /usr/bin/mkdir: Command not found during `gem install nokogiri` in Ubuntu 20.04
Error installing rails: ERROR: Failed to build gem native extension. Ubuntu 20.04
Make process cannot find the mkdir command.
$ which mkdir
/bin/mkdir
Since the process is searching for the command in /usr/bin/mkdir
it cannot be found. It is fixable by creating a symbolic link to the correct path:
sudo ln -s /bin/mkdir /usr/bin/mkdir
Answer source - stackoverflow post
Installing tiny_tds gem on Ubuntu 20.04 fails
I had a similar problem installing gems on Ubuntu 20.04. with RVM und Ruby 2.7.
As stated, the make process could not find the mkdir
command.
$ which mkdir
/bin/mkdir
Since the process is searching for the command in /usr/bin/mkdir
it cannot be found. I could fix this by creating a symbolic link to the correct path:
sudo ln -s /bin/mkdir /usr/bin/mkdir
Error when installing Ruby on Rails: Failed to build gem native extension
Rails 4.0 needs RubyGem version 2.0.3, Just update your system by using following command
gem update --system 2.0.3
Finding relevant keyword from a webpage
We have done some proof of concept based on Lucene indexed Set.
- It handle all language/text issues
- It is fast enought
But a good answer needs a large relevant content. So results are sometimes stranges. And it's server side...
Jekyll eventmachine 1.2.7 error on bundle
I tried again, this time using ruby 2.7.1 instead of 2.7.2 and it worked.
I guess some update in ruby broke it, so for anyone stuck on this try using 2.7.1 or not the latest version of ruby.
Related Topics
Ruby Model Output Id as Object Oid
Does C1 Code Coverage Analysis Exist for Ruby
Rspec and Shoulda - Complementary or Alternatives
Watir. Scroll to a Certain Point of the Page
Turning a Hash of Arrays into an Array of Hashes in Ruby
Restful File Uploads with Carrierwave
Gem Not Found in Ruby Cron Job in Rvm Env
Setting Up Facets in Elasticsearch with Searchkick Gem in Rails 4.1
How to Get the Version from a Gemspec File
Changing Active Model Serializers Default Adapter
How to Format a String with Floats in Ruby Using #{Variable}
How to Expect Some (But Not All) Arguments with Rspec Should_Receive
Rails 5 Actioncontroller::Invalidauthenticitytoken Error
Time_Ago_In_Words and Localize