Skip to content

Conversation

@rogerluan
Copy link

Description

This is the error I was getting without sudo:

swift build -c release
[…]
Building for production...
<unknown>:0: warning: 'self' refers to the method 'HTMLAnchorTarget.self', which may be unexpected
<unknown>:0: note: use 'HTMLAnchorTarget.self' to silence this warning
[11/11] Linking publish-cli
Build complete! (29.03s)
install .build/release/publish-cli /usr/local/bin/publish
install: /usr/local/bin/publish: Permission denied
make: *** [install] Error 71

With sudo it works:

swift build -c release
Building for production...
Build complete! (0.18s)
sudo install .build/release/publish-cli /usr/local/bin/publish
Password:

Without sudo I get the "permission denied" issue even being the root/admin of this computer 🤷

@rogerluan rogerluan changed the title Uso sudo to Move Into Protected Directory Use sudo to Move Into Protected Directory May 9, 2022
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

Successfully merging this pull request may close these issues.

1 participant