ruby-on-railstiny-tdsubuntu-20.04

Installing tiny_tds gem on Ubuntu 20.04 fails


I want to insall tiny_tds on Ubuntu 20.04, so I do

apt install freetds-dev

and the install the gem

gem install tiny_tds

Works like a charm on Ubuntu 18.04, but 20.04 fails. the last lines of the output are:

current directory: /home/myuser/.rvm/gems/ruby-2.7.0/gems/tiny_tds-2.1.2/ext/tiny_tds
make "DESTDIR=" install
make: /usr/bin/mkdir: Command not found
make: *** [Makefile:202: .sitearchdir.-.tiny_tds.time] Error 127

make install failed, exit code 2

Any ideas on how to work around this? I have Ubuntu 20.04, RVM with Ruby 2.7 active.


Solution

  • 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