Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running git in pycharm after recent update

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:

enter image description here

like image 787
efsee Avatar asked Nov 22 '17 18:11

efsee


2 Answers

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)

like image 77
seayak Avatar answered Nov 15 '22 01:11

seayak


[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.

like image 44
vishwarajanand Avatar answered Nov 14 '22 23:11

vishwarajanand