在Ubuntu 20.04上安装tiny_tds gem失败 [英] Installing tiny_tds gem on Ubuntu 20.04 fails
问题描述
我想在Ubuntu 20.04上安装tiny_tds,所以我愿意
I want to insall tiny_tds on Ubuntu 20.04, so I do
apt install freetds-dev
并安装gem
gem install tiny_tds
在Ubuntu 18.04上像超级按钮一样工作,但是20.04失败.输出的最后几行是:
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
关于如何解决此问题的任何想法? 我有Ubuntu 20.04,具有Ruby 2.7的RVM.
Any ideas on how to work around this? I have Ubuntu 20.04, RVM with Ruby 2.7 active.
推荐答案
我在Ubuntu 20.04上安装gems时遇到了类似的问题. RVM和Ruby 2.7一起使用.
如前所述,make进程找不到mkdir
命令.
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
由于进程正在/usr/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
这篇关于在Ubuntu 20.04上安装tiny_tds gem失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!