git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Erik Faye-Lund <kusmabite@gmail.com>
Cc: Konstantin Khomoutov <flatworm@users.sourceforge.net>,
	Ankush_Aggarwal@dell.com, git@vger.kernel.org
Subject: Re: Unable to clone GIT project
Date: Mon, 17 Sep 2012 16:21:24 -0400	[thread overview]
Message-ID: <20120917202124.GC24888@sigill.intra.peff.net> (raw)
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:

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

  reply	other threads:[~2012-09-17 20:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-16  3:19 Unable to clone GIT project Ankush_Aggarwal
2012-09-16 10:30 ` Ankush_Aggarwal
2012-09-16 10:46 ` Konstantin Khomoutov
2012-09-16 19:48   ` Erik Faye-Lund
2012-09-17 20:21     ` Jeff King [this message]
2012-09-17 20:36       ` Ben Walton
2012-09-18  8:53       ` Ankush_Aggarwal
2012-09-18  9:06         ` Andreas Schwab
2012-09-21 17:24           ` Ankush_Aggarwal
2012-09-21 18:02             ` Ankush_Aggarwal
2012-09-21 18:37               ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120917202124.GC24888@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=Ankush_Aggarwal@dell.com \
    --cc=flatworm@users.sourceforge.net \
    --cc=git@vger.kernel.org \
    --cc=kusmabite@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).