git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Unable to clone GIT project

From
Jeff King <peff@peff.net>
Date
Sep 17, 2012, 20:21 UTC
Message-ID
<20120917202124.GC24888@sigill.intra.peff.net>
In-Reply-To
<CABPQNSbPF=_a7-+JnojM2DQAkkj7ZLhSnO+n-Ab=LSrHge1dnQ@mail.gmail.com>
On Sun, Sep 16, 2012 at 09:48:43PM +0200, Erik Faye-Lund wrote:
Show 9 quoted lines
> >> git-upload-pack: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
> >> fatal: The remote end hung up unexpectedly
>
> [...]
>
> No. This is not a Git for Windows issue. The remote end is the one who
> isn't able to load libiconv, you can tell from the fact that it
> complains about "libiconv.so.2", not "libiconv-2.dll", and from the
> fact that the client informs us that the remote end hung up.
Yeah, it is definitely a problem on the remote system.
> Ankush: There's something wrong with the setup on your Linux machine;
> most likely something related to the library path set up. What
> protocol are you cloning over?

If I had to guess, I'd say it was ssh, the library is installed in a non-standard place (e.g., because he built them as a regular user and put them in his home directory), and LD_LIBRARY_PATH does not get set properly by ssh for the incoming ssh session.

If that is the case, you can fix it with an entry in ~/.ssh/environment, or by telling git that the remote side needs to do more than just run git-upload-pack, like:

  git clone -u '. $HOME/.profile && git-upload-pack' ...

But I am just guessing. We need more information on how the remote system is set up to really know.

-Peff
Previous: Erik Faye-LundNext: Ben Walton
Message 5 of 11 in “Unable to clone GIT project”
  1. ankush_aggarwal@dell.comSep 16, 2012
  2. ankush_aggarwal@dell.comSep 16, 2012
  3. Konstantin KhomoutovSep 16, 2012
  4. Erik Faye-LundSep 16, 2012
  5. Jeff KingSep 17, 2012
  6. Ben WaltonSep 17, 2012
  7. ankush_aggarwal@dell.comSep 18, 2012
  8. Andreas SchwabSep 18, 2012
  9. ankush_aggarwal@dell.comSep 21, 2012
  10. ankush_aggarwal@dell.comSep 21, 2012
  11. Andreas SchwabSep 21, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.