Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails on macos #1

Open
jayvdb opened this issue Apr 11, 2022 · 1 comment
Open

Install fails on macos #1

jayvdb opened this issue Apr 11, 2022 · 1 comment

Comments

@jayvdb
Copy link

jayvdb commented Apr 11, 2022

% bash -c "$(curl -fsSL https://raw.githubusercontent.com/guziks/warp4j/stable/install)"
Getting information about warp-packer releases...
Downloading warp-packer...
Creating /usr/local/bin/warp-packer...
Password:
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 ...
Error: Failed to install warp-packer
% which install
/usr/bin/install
@jayvdb
Copy link
Author

jayvdb commented Apr 25, 2022

In addition, after that is fixed by using ginstall, on macos 12 (monterey), I get

ginstall: invalid group ‘root’

And using group root has been in the script since inception at 72ca826#diff-1e142e6277b12b7e1110478a24caee8f006a9349e86970c890203d6266209463R56

I dont know if group root existing in previous macos versions; it is possible.

In order to get this installing on recent macos, a different approach is needed for setting the perms of the installed file on macos.

Note even following something like https://support.apple.com/en-us/HT204012 , which is probably not advised, that still doesnt create a group called root.

% cat /etc/group | grep root
wheel:*:0:root
daemon:*:1:root
kmem:*:2:root
sys:*:3:root
tty:*:4:root
operator:*:5:root
procview:*:8:root
procmod:*:9:root
staff:*:20:root
certusers:*:29:root,_jabber,_postfix,_cyrus,_calendar,_dovecot
admin:*:80:root

brew installs into /usr/local, and the files have perms "logged_in_username:admin", so this script should probably do the same. Some directories in /usr/local are "root:wheel" - it seems that happens for non-brew based installations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant