Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

I am working on project using git as a VCS. Development env is on winddows and project contains some long paths so I am forced to use cygwin with git.

I have installed cygwin with git, created ssh key, uploaded key to server and that all works fine from console.

But when I try to fetch, push, pull from IntelliJ I am receiving 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 have installed gettext and Devel\gettext , libsasl2 and ca-certificates packages for cygwin according to some recomendation I have found but this didn't solve the problem.

Here is my IntelliJ git configuration

What I have to do to be able use git from cygwin within IntelliJ?

like image 673
gandra404 Avatar asked Jan 29 '16 15:01

gandra404


People also ask

How do I open a shared library file?

If you want to open a shared-library file, you would open it like any other binary file -- with a hex-editor (also called a binary-editor). There are several hex-editors in the standard repositories such as GHex (https://packages.ubuntu.com/xenial/ghex) or Bless (https://packages.ubuntu.com/xenial/bless).


2 Answers

I had the exact same problem. Also tried the gettext & sasl hints; didn't work.

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

(This surfaced when setting bash as Terminal in IntelliJ - it wouldn't even start grep.)

like image 61
Hedzer Avatar answered Oct 03 '22 01:10

Hedzer


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

Then restart IntelliJ Idea.

like image 21
Piotr Kepka Avatar answered Oct 02 '22 23:10

Piotr Kepka