Hi,

In <CAO9vTOwu3g3-z5pmUVMbK6yjed=7vjxnho2cyvm75p8vd_t...@mail.gmail.com>
  "Re: [VOTE] Release Apache Arrow ADBC 0.2.0 - RC1" on Thu, 16 Feb 2023 
09:19:50 +0100,
  Joris Van den Bossche <jorisvandenboss...@gmail.com> wrote:

> current directory:
> /tmp/adbc-verification/apache-arrow-adbc-0.2.0/glib/vendor/bundle/ruby/3.1.0/gems/fiddle-1.1.1/ext/fiddle
> make DESTDIR\= install
> make: /usr/bin/mkdir: Command not found
> make: *** [Makefile:203: .sitearchdir.time] Error 127
> 
> David mentioned that it's an issue with how ruby gets installed on
> ubuntu: 
> https://stackoverflow.com/questions/64653051/make-usr-bin-mkdir-command-not-found-during-gem-install-nokogiri-in-ubuntu

Thanks.

I took a look at this situation. "sudo ln -s /usr/bin/mkdir /bin/mkdir"
is a reasonable workaround. "sudo apt install -y ruby"
instead of using RVM is another workaround.


Ubuntu 20.04 or later uses /bin as a symbolic link of
/usr/bin. So both of /usr/bin/mkdir and /bin/mkdir are valid
on Ubuntu 20.04.

But a system that was upgraded to Ubuntu 20.04 from Ubuntu
18.04 doesn't use /bin as a symbolic link of /usr/bin. So
/usr/bin/mkdir doesn't exist.
See also: https://wiki.debian.org/UsrMerge

So "sudo ln -s /usr/bin/mkdir /bin/mkdir" is a reasonable
workaround.


Ruby provided by the official Ubuntu APT repository uses
/bin/mkdir not /usr/bin/mkdir. So "sudo apt install -y ruby"
is another workaround.


Thanks,
-- 
kou

Reply via email to