Installing tiny_tds gem on Ubuntu 20.04 fails

橙三吉。 提交于 2020-07-10 09:03:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!