func-e icon indicating copy to clipboard operation
func-e copied to clipboard

Got permission denied when install func-e

Open liweijian opened this issue 2 years ago • 4 comments

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]

liweijian avatar Dec 29 '22 09:12 liweijian

Happened the same, even with sudo curl fails.

pedes avatar Oct 21 '23 19:10 pedes

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

dio avatar Oct 21 '23 22:10 dio

curl https://func-e.io/install.sh | sudo bash -s -- -b /usr/local/bin worked for me

robahtou avatar Oct 24 '23 16:10 robahtou

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

pedes avatar Oct 25 '23 20:10 pedes