Git.exe: error while loading shared libraries:?: Cannot open shared objects file: no such file or directory

I am working on a project using git as VCS. Env development is on winddows, and the project contains several long paths, so I have to use cygwin with git.

I installed cygwin with git, created an ssh key, uploaded the key to the server and everything works fine with the console.

But when I try to extract, click, pull from IntelliJ . I get the following error:

 D:/cygwin/usr/libexec/git-core/git.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory fatal: unpack-objects failed 

I installed gettext and Devel\gettext , libsasl2 and ca-certificates packages for cygwin in accordance with some recommendations that I found, but this did not solve the problem.

Here is my IntelliJ git setup

What do I need to do to use git from cygwin in IntelliJ?

+5
source share
3 answers

I had the same problem. Also tried gettext and sasl hints; does not work.

The solution was very simple at the end: add the cygwin bin directory to the PATH.

(This popped up when installing bash as a terminal in IntelliJ - it didn't even start grep.)

+8
source

Add both C:\cygwin\bin AND c:\cygwin to PATH.

Then restart IntelliJ Idea.

+2
source

For Windows users, you can do this by adding the cygwin path to the environment variables, as shown in the screenshot below:

enter image description here

UPDATE

Just make sure that when you add cygwin to your path, you add it to "Edit environment variables for your account", as shown below and under "User variables", and not under "Edite system environment variables" - this will not work otherwise.

screenshot

0
source

Source: https://habr.com/ru/post/1241822/


All Articles