Make: /Usr/Bin/Mkdir: Command Not Found During 'Gem Install Nokogiri' in Ubuntu 20.04

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



Leave a reply



Submit