I installed leiningen on fedora, I followed the instruction:
- download the script
- Paste the script(via command line) to ~/bin (PATH)
- Execute the script
- Run lein(I had to did it with sudo) to self-install
but every time I want to run the "lein" command, I have to do it with "sudo".
How can i fix this? or what can i do to fix this?
Note: I installed leiningen at /bin but when i cd ~/bin as the installation guide said i get and error about the folder(not exist).
/bin, that's a folder owned by root and it would make (some) sense that you have to have escalated privileges to run it. If it's at~/bin, that should be in your own home folder. What doeswhich leintell you? - Makototype leinrather thanwhich lein; the latter is an external command and doesn't know about shell aliases, functions, or the like, whereas the former is a builtin and has visibility into everything considered in the shell's execution process (including caching of prior PATH lookups, making it more accurate even for something known to be an external command). - Charles Duffy