#83 Can't run `make install` on macOS

Closed
opened 5 months ago by nerosnm · 1 comments
nerosnm commented 5 months ago

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.
epilys commented 5 months ago
Poster
Owner

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.
epilys added the
easy
label 5 months ago
epilys added the
bug
label 5 months ago
epilys closed this issue 5 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.