ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
2.02k stars 63 forks source link

zsh: permission denied: discordo #334

Closed jonaspiterek closed 6 months ago

jonaspiterek commented 8 months ago

Hey I just installed discordo, super exited to try it out and got this error message when trying to run it. zsh: permission denied: discordo can anyone help me with what is going on?

Thanks in advance.

ghost commented 8 months ago

Permission denied means that the permissions of the file dose not allow you to execute it. You can change that using the command:

chmod +x discordo

to add the execute permission to the discordo binary.

jonaspiterek commented 8 months ago

I thought so too. Also tried it with sudo but nothing changed, I still get the same error even after logging out and back in.

ultimate-steve commented 8 months ago

Could you paste the output of

ls -l discordo ?

jonaspiterek commented 8 months ago

@ultimate-steve

total 15072
drwxr-xr-x 2 xd xd     4096 Dec 22 17:52 cmd
-rwxr-xr-x 1 xd xd 15390460 Dec 22 17:58 discordo
drwxr-xr-x 2 xd xd     4096 Dec 22 17:52 docs
-rw-r--r-- 1 xd xd      979 Dec 22 17:52 go.mod
-rw-r--r-- 1 xd xd     8858 Dec 22 17:52 go.sum
drwxr-xr-x 7 xd xd     4096 Dec 22 17:52 internal
-rw-r--r-- 1 xd xd     1063 Dec 22 17:52 LICENSE
-rw-r--r-- 1 xd xd      359 Dec 22 17:52 main.go
-rw-r--r-- 1 xd xd     2573 Dec 22 17:52 README.md

BTW: I cannot do ls -l discordo I had to do ls -l /usr/local/bin/discordo

ptonelli commented 7 months ago

I believe you need to copy only the binary file discordo to /usr/local/bin, and not the complete directory

therealolie commented 6 months ago

i think you may have copied the entire folder, meaning that the location of the executable is /usr/local/bin/discordo/discordo

you only need to move the discordo executable to /usr/local/bin, the rest of the folder is useless (after compilation that is) the error is kinda misleading, cuz /usr/local/bin/discordo is a folder, and you can never execute folders

jonaspiterek commented 6 months ago

jup that was it, thank you guys!