问题
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.
回答1:
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
来源:https://stackoverflow.com/questions/61899655/installing-tiny-tds-gem-on-ubuntu-20-04-fails