I have this "Error Running Git" message when trying to clone from GitHub in PyCharm, it says "cannot run program "/usr/local/bin/git: error=2, no such file or directory". I guess I need to configure "path to git executable"? But I don't know how, I'm very new to using git. And this only occurs lately, after I updated the PyCharm lately.
Updated: After put in the new path, I got an new error:
This means that the XCode Command Line Tools haven't been installed. Open and terminal window and type:
xcode-select --install
This will trigger the install and clear up the problem.
(thank you to @totalhorizon: https://tips.tutorialhorizon.com/2015/10/01/xcrun-error-invalid-active-developer-path-library-developer-commandline-tools-missing-xcrun)
[Not tested]
Looks like this happens because of bad xcrun
path. Try this:
1. Find where is xcrun
located using which xcrun
and add it to the given path: ln -s [path from which crun]/Library/Developer/CommandLineTools/usr/bin/xcrun
2. Reinstall developer directory manager using xcode-select --install
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With