neovim-ruby-host command not found

In this troubleshooting guide we learn how to fix neovim-ruby-host command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

neovim-ruby-host: command not found

or when using sudo you get the following error message

sudo: neovim-ruby-host: command not found

Solutions to neovim-ruby-host: command not found

How To Fix neovim-ruby-host: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu neovim-ruby-host is provided by ruby-neovim package.

ruby-neovim is:

Ruby library to control remote neovim instances.

Can be used as a neovim plugin host, allowing one to write neovim plugins completely in ruby.

It also acts as a compatibility layer for Ruby plugins written for legacy vim. The :ruby, :rubyfile, and :rubydo commands are intended to behave the same as they did in vim.

To fix this problem, we can install more using the command below.

sudo apt-get -y install ruby-neovim

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ruby-neovim.

sudo apt -y install ruby-neovim

Or if you have aptitude installed you can use the following command.

sudo aptitude install ruby-neovim

Summary

In this tutorial we learn how to fix neovim-ruby-host command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.