I apologize, I don't have much experience with Linux. So I have ruby installed on my machine and I'm trying to install rails. When I do gem install rails I get a proper response
Successfully installed rails-6.0.3.2 1 gem installed But when I do rails --version it returns the following:
bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: No such file or directory What can be the issue here?
My machine is running on Zorin OS. By the way here's some more information: temp-user@Lenovo-IdeaPad-S145-5:~$ ls -l /usr/bin | grep python
lrwxrwxrwx 1 root root 23 Nov 7 2019 pdb3.6 -> ../lib/python3.6/pdb.py lrwxrwxrwx 1 root root 23 Nov 7 2019 pdb3.7 -> ../lib/python3.7/pdb.py lrwxrwxrwx 1 root root 31 Nov 26 2019 py3versions -> ../share/python3/py3versions.py lrwxrwxrwx 1 root root 18 Jul 6 00:51 python -> /usr/bin/python2.7 lrwxrwxrwx 1 root root 9 Mar 28 01:44 python3 -> python3.5 -rwxr-xr-x 2 root root 4526456 Nov 7 2019 python3.6 -rwxr-xr-x 2 root root 4526456 Nov 7 2019 python3.6m -rwxr-xr-x 2 root root 4873376 Nov 7 2019 python3.7 -rwxr-xr-x 2 root root 4873376 Nov 7 2019 python3.7m lrwxrwxrwx 1 root root 10 Nov 26 2019 python3m -> python3.6m at one point i might have tried to change python versions, but i don't remember exactly
in my /usr/bin/ there are a lot of python's installed
python python3 python3.6 python3.6m python3.7 python3.7m python3m
sudonor--user-install?gem install rails, nosudo, so I guess it's a user installation?gem install railsfails because it tries to install system-wide. Which distro/version?