I installed Rust on EndeavourOS using the rustup-method (rather than an Arch package). Everything seems to go well but when I later try to run cargo (or rather anything pointing to rustup) I get "Permission denied".
All binaries are installed in ./cargo/bin in my home directory. I am the owner of all files under .cargo and all dotfiles in the my home directory.
Check $PATH I find that /home/me/.cargo/bin is in there.
Checking the zsh-config files I notice that the line . "$HOME/.cargo/env" is there, e.g. in the file .zshenv.
So to me everything looks fine, what am I missing?
Are you sure you are executing the correct cargo binary? You can check it using which or command -v. Also check if the binaries have the executable bit set.