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

Got permission denied when install func-e #436

Open
liweijian opened this issue Dec 29, 2022 · 4 comments
Open

Got permission denied when install func-e #436

liweijian opened this issue Dec 29, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@liweijian
Copy link

liweijian commented Dec 29, 2022

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 liweijian added the bug Something isn't working label Dec 29, 2022
@pedes
Copy link

pedes commented Oct 21, 2023

Happened the same, even with sudo curl fails.

@dio
Copy link
Collaborator

dio commented Oct 21, 2023

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

@robahtou
Copy link

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

@pedes
Copy link

pedes commented Oct 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants