Got permission denied when install func-e
Describe the bug
I got permission denied error in my macOS.
To Reproduce Steps to reproduce the behavior: Just following the doc:
curl https://func-e.io/install.sh | bash -s -- -b /usr/local/bin
And got:
curl https://func-e.io/install.sh | bash -s -- -b /usr/local/bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9791 100 9791 0 0 37075 0 --:--:-- --:--:-- --:--:-- 37803
tetratelabs/func-e info checking GitHub for latest tag
tetratelabs/func-e info found version: 1.1.3 for v1.1.3/darwin/arm64
install: /usr/local/bin//func-e: Permission denied
Environment:
- OS: [macOS 13.1]
- Envoy Version: [69958e4fe32da561376d8b1d367b5e6942dfba24/1.24.1/Distribution/RELEASE/BoringSSL]
Happened the same, even with sudo curl fails.
I think we need to update the install script to "just" install it on user's "~/.bin".
When we really want to install it on /usr/local/bin it should be:
curl -fsSL https://func-e.io/install.sh | sudo bash -s -- -b /usr/local/bin
Note I think we need to update the docs on a newer macOS device (M1, M2, Mx). Since brew is not installed on /usr/local anymore (but /opt/homebrew) the permission is still wrong.
Or we can install it in the current working directory:
curl -fsSL https://func-e.io/install.sh | bash
Or via homebrew:
brew install func-e
curl https://func-e.io/install.sh | sudo bash -s -- -b /usr/local/bin worked for me
Thanks @dio for the comprehensive solution.
I'd vote for just updating the func-e homepage to include these additional installation instructions, and also mention that can be installed using brew.
brew install func-e