Can't run make install on macOS #112

Closed
opened 2020-10-30 15:09:58 +02:00 by nerosnm · 1 comment

On macOS Catalina 10.15.7, make install fails with:

 - Installing binary to /usr/local/bin/meli
-n
install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install-bin] Error 64

Changing install to ginstall to use the Homebrew-installed GNU coreutils version of install instead, such as with sd '@install' '@ginstall' Makefile, is a workaround.

On macOS Catalina 10.15.7, `make install` fails with: ``` - Installing binary to /usr/local/bin/meli -n install: illegal option -- D usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... make: *** [install-bin] Error 64 ``` Changing `install` to `ginstall` to use the Homebrew-installed GNU coreutils version of `install` instead, such as with `sd '@install' '@ginstall' Makefile`, is a workaround.

Thank you for your report! the Makefile should be as portable as possible, so this is a bug. I didn't even know install wasn't in POSIX.

According to this the install invocations should be replaced by rm, cp and chmod calls.

Thank you for your report! the `Makefile` should be as portable as possible, so this is a bug. I didn't even know `install` wasn't in POSIX. According [to this](https://unix.stackexchange.com/questions/104982/why-use-install-rather-than-cp-and-mkdir) the `install` invocations should be replaced by `rm`, `cp` and `chmod` calls.
Manos Pitsidianakis added the
easy
bug
labels 2020-10-30 22:26:01 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: meli/meli#112
There is no content yet.