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

bash: line 103: /root/.local/bin/goose: cannot execute: required file not found #1251

Closed
BirdNest055 opened this issue Feb 16, 2025 · 5 comments
Labels
bug Something isn't working cli

Comments

@BirdNest055
Copy link

i get this error when using wsl:

~# curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | bash
Downloading stable release: goose-x86_64-unknown-linux-gnu.tar.bz2...
Extracting goose-x86_64-unknown-linux-gnu.tar.bz2...
Moving goose to /root/.local/bin/goose

Configuring Goose

bash: line 103: /root/.local/bin/goose: cannot execute: required file not found

@parkeregli
Copy link

parkeregli commented Feb 16, 2025

I believe the issue is from downloading as root. I am running into the same issue when trying to download on a docker container. You can see here:

/// 2. Configuration file (~/.config/goose/config.yaml by default)

The default location for the config.yaml is ~/.config/goose/config.yaml. This would make the location /root/.config/goose/config.yaml. However, I have not had any success manually creating the config.yaml. There might be something else I am missing.

If you are simply just trying to run this on WSL, I would suggest creating a non-root user and try to run the install through that user. I was able to download and run goose fine with WSL

@parkeregli
Copy link

Also here is a similar issue for reference: #861

@yingjiehe-xyz yingjiehe-xyz added bug Something isn't working cli labels Feb 17, 2025
@yingjiehe-xyz
Copy link
Collaborator

yeah, can you try to run with non-root user?

@parkeregli
Copy link

If you know your bin location you can run:
ldd GOOSE_BIN_DIR/goose
This will show you what required dependencies you don't have. It would also help us if we knew what distro you are using

@yingjiehe-xyz
Copy link
Collaborator

since no response for several days, closed it right now, feel free to reopen it if you still have the problem

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

No branches or pull requests

3 participants