{"thread":{"id":"31544","subject":"Unable to clone GIT project","startedAt":"2012-09-16T03:19:25Z","lastAt":"2012-09-21T18:37:57Z","messageCount":11,"participants":["ankush_aggarwal@dell.com","Konstantin Khomoutov","Erik Faye-Lund","Jeff King","Ben Walton","Andreas Schwab"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"199131","messageId":"0D5A104FDD13FC4C9EE1E66F4FA3ABF60FCFDB65@NOIX10HMNOI01.AMER.DELL.COM","threadId":"31544","inReplyTo":null,"subject":"Unable to clone GIT project","fromName":"","fromEmail":"ankush_aggarwal@dell.com","sentAt":"2012-09-16T03:19:25Z","receivedAt":"2012-09-16T03:19:25Z","isPatch":false,"sender":{"key":"ankush_aggarwal@dell.com","avatar":null},"body":"I have created a GIT repository on Linux 64 bit machine.\n\nWhen I tried to clone GIT repository on windows 7 machine then I am getting below error. \n\nError:\ngit-upload-pack: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory\nfatal: The remote end hung up unexpectedly\n\nanyone please help me resolve the issue.\n\nRegards,\nAnkush\n"},{"id":"199143","messageId":"0D5A104FDD13FC4C9EE1E66F4FA3ABF60FCFDC27@NOIX10HMNOI01.AMER.DELL.COM","threadId":"31544","inReplyTo":"0D5A104FDD13FC4C9EE1E66F4FA3ABF60FCFDB65@NOIX10HMNOI01.AMER.DELL.COM","subject":"RE: Unable to clone GIT project","fromName":"","fromEmail":"ankush_aggarwal@dell.com","sentAt":"2012-09-16T10:30:54Z","receivedAt":"2012-09-16T10:30:54Z","isPatch":false,"sender":{"key":"ankush_aggarwal@dell.com","avatar":null},"body":"Can anyone please help me out.\n\n-----Original Message-----\nFrom: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On Behalf Of Aggarwal, Ankush\nSent: Sunday, September 16, 2012 8:49 AM\nTo: git@vger.kernel.org\nSubject: Unable to clone GIT project\n\nI have created a GIT repository on Linux 64 bit machine.\n\nWhen I tried to clone GIT repository on windows 7 machine then I am getting below error. \n\nError:\ngit-upload-pack: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory\nfatal: The remote end hung up unexpectedly\n\nanyone please help me resolve the issue.\n\nRegards,\nAnkush\n--\nTo unsubscribe from this list: send the line \"unsubscribe git\" in the body of a message to majordomo@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"199144","messageId":"20120916104651.GF32381@localhost.localdomain","threadId":"31544","inReplyTo":"0D5A104FDD13FC4C9EE1E66F4FA3ABF60FCFDB65@NOIX10HMNOI01.AMER.DELL.COM","subject":"Re: Unable to clone GIT project","fromName":"Konstantin Khomoutov","fromEmail":"flatworm@users.sourceforge.net","sentAt":"2012-09-16T10:46:51Z","receivedAt":"2012-09-16T10:46:51Z","isPatch":false,"sender":{"key":"flatworm@users.sourceforge.net","avatar":null},"body":"On Sun, Sep 16, 2012 at 03:19:25AM +0000, Ankush_Aggarwal@DELL.com wrote:\n\n> I have created a GIT repository on Linux 64 bit machine.\n> \n> When I tried to clone GIT repository on windows 7 machine then I am getting below error. \n> \n> Error:\n> git-upload-pack: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory\n> fatal: The remote end hung up unexpectedly\n> \n> anyone please help me resolve the issue.\nSee [1] and generally search google for msysgit+libiconv.so.2 as it\ncontains links to other approaches to working around this problem.\n\nNote that questions about technical issues with Git for Windows are\nbetter asked on the msysgit mailing list [2] or in the project bug\ntracker [3] (after searching both places for the relevant information).\n\n1. http://groups.google.com/group/msysgit/msg/1c32f034869ffa93\n2. http://groups.google.com/group/msysgit/\n3. https://github.com/msysgit/msysgit/issues\n"},{"id":"199176","messageId":"CABPQNSbPF=_a7-+JnojM2DQAkkj7ZLhSnO+n-Ab=LSrHge1dnQ@mail.gmail.com","threadId":"31544","inReplyTo":"20120916104651.GF32381@localhost.localdomain","subject":"Re: Unable to clone GIT project","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@gmail.com","sentAt":"2012-09-16T19:48:43Z","receivedAt":"2012-09-16T19:48:43Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"On Sun, Sep 16, 2012 at 12:46 PM, Konstantin Khomoutov\n<flatworm@users.sourceforge.net> wrote:\n> On Sun, Sep 16, 2012 at 03:19:25AM +0000, Ankush_Aggarwal@DELL.com wrote:\n>\n>> I have created a GIT repository on Linux 64 bit machine.\n>>\n>> When I tried to clone GIT repository on windows 7 machine then I am getting below error.\n>>\n>> Error:\n>> git-upload-pack: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory\n>> fatal: The remote end hung up unexpectedly\n>>\n>> anyone please help me resolve the issue.\n> See [1] and generally search google for msysgit+libiconv.so.2 as it\n> contains links to other approaches to working around this problem.\n>\n> Note that questions about technical issues with Git for Windows are\n> better asked on the msysgit mailing list [2] or in the project bug\n> tracker [3] (after searching both places for the relevant information).\n\nNo. This is not a Git for Windows issue. The remote end is the one who\nisn't able to load libiconv, you can tell from the fact that it\ncomplains about \"libiconv.so.2\", not \"libiconv-2.dll\", and from the\nfact that the client informs us that the remote end hung up.\n\nAnkush: There's something wrong with the setup on your Linux machine;\nmost likely something related to the library path set up. What\nprotocol are you cloning over?\n"},{"id":"199277","messageId":"20120917202124.GC24888@sigill.intra.peff.net","threadId":"31544","inReplyTo":"CABPQNSbPF=_a7-+JnojM2DQAkkj7ZLhSnO+n-Ab=LSrHge1dnQ@mail.gmail.com","subject":"Re: Unable to clone GIT project","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-09-17T20:21:24Z","receivedAt":"2012-09-17T20:21:24Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Sun, Sep 16, 2012 at 09:48:43PM +0200, Erik Faye-Lund wrote:\n\n> >> git-upload-pack: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory\n> >> fatal: The remote end hung up unexpectedly\n>\n> [...]\n>\n> No. This is not a Git for Windows issue. The remote end is the one who\n> isn't able to load libiconv, you can tell from the fact that it\n> complains about \"libiconv.so.2\", not \"libiconv-2.dll\", and from the\n> fact that the client informs us that the remote end hung up.\n\nYeah, it is definitely a problem on the remote system.\n\n> Ankush: There's something wrong with the setup on your Linux machine;\n> most likely something related to the library path set up. What\n> protocol are you cloning over?\n\nIf I had to guess, I'd say it was ssh, the library is installed in a\nnon-standard place (e.g., because he built them as a regular user and\nput them in his home directory), and LD_LIBRARY_PATH does not get set\nproperly by ssh for the incoming ssh session.\n\nIf that is the case, you can fix it with an entry in ~/.ssh/environment,\nor by telling git that the remote side needs to do more than just run\ngit-upload-pack, like:\n\n  git clone -u '. $HOME/.profile && git-upload-pack' ...\n\nBut I am just guessing. We need more information on how the remote\nsystem is set up to really know.\n\n-Peff\n"},{"id":"199281","messageId":"CAP30j15=gz9w-ZU+b5Jm+fM1PmYgFrwBwAFxzAcPRsWgNcByOw@mail.gmail.com","threadId":"31544","inReplyTo":"20120917202124.GC24888@sigill.intra.peff.net","subject":"Re: Unable to clone GIT project","fromName":"Ben Walton","fromEmail":"bdwalton@gmail.com","sentAt":"2012-09-17T20:36:19Z","receivedAt":"2012-09-17T20:36:19Z","isPatch":false,"sender":{"key":"bdwalton@gmail.com","avatar":"https://avatars.githubusercontent.com/u/396061?v=4"},"body":"> If I had to guess, I'd say it was ssh, the library is installed in a\n> non-standard place (e.g., because he built them as a regular user and\n> put them in his home directory), and LD_LIBRARY_PATH does not get set\n> properly by ssh for the incoming ssh session.\n\nThis would be my guess as well.  If LD_LIBRARY_PATH is being relied\nupon though, a more stable solution would be to rebuild git with\n\"-Wl,-rpath /path/containing/libiconv\" in the LD_OPTIONS environment.\nThat would remove the need for LD_LIBRARY_PATH at runtime.  Any other\nlibraries linked in non-standard locations should also have a similar\noption if the path to the library differs.\n\nHTH.\n\nThanks\n-Ben\n-- \n---------------------------------------------------------------------------------------------------------------------------\nTake the risk of thinking for yourself.  Much more happiness,\ntruth, beauty and wisdom will come to you that way.\n\n-Christopher Hitchens\n---------------------------------------------------------------------------------------------------------------------------\n"},{"id":"199353","messageId":"0D5A104FDD13FC4C9EE1E66F4FA3ABF60FCFE5FB@NOIX10HMNOI01.AMER.DELL.COM","threadId":"31544","inReplyTo":"20120917202124.GC24888@sigill.intra.peff.net","subject":"RE: Unable to clone GIT project","fromName":"","fromEmail":"ankush_aggarwal@dell.com","sentAt":"2012-09-18T08:53:21Z","receivedAt":"2012-09-18T08:53:21Z","isPatch":false,"sender":{"key":"ankush_aggarwal@dell.com","avatar":null},"body":"All,\n\nThanks for reply but its not working still. Things which I have done till now is \n\nOn Linux machine\n\tInstalled libiconv-1.14 unded /usr/local/lib path.\n\t\t-rw-r--r-- 1 root root     912 Sep 15 20:40 libiconv.la\n\t\tlrwxrwxrwx 1 root root      17 Sep 15 20:40 libiconv.so -> libiconv.so.2.5.1\n\t\tlrwxrwxrwx 1 root root      17 Sep 15 20:40 libiconv.so.2 -> libiconv.so.2.5.1\n\t\t-rw-r--r-- 1 root root 1262349 Sep 15 20:40 libiconv.so.2.5.1\n\texport LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH\n\non local machine I have installed msysgit and trying to clone \n\nC:\\Ankush Data\\work\\Test-GIT\\trial_1>git clone ssh://bea@<IP>:/home/ankush/GIT/sample_project\nCloning into 'sample_project'...\nbea@<IP>:'s password:\ngit-upload-pack: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory\nfatal: The remote end hung up unexpectedly\n\n\n\n-----Original Message-----\nFrom: Jeff King [mailto:peff@peff.net] \nSent: Tuesday, September 18, 2012 1:51 AM\nTo: Erik Faye-Lund\nCc: Konstantin Khomoutov; Aggarwal, Ankush; git@vger.kernel.org\nSubject: Re: Unable to clone GIT project\n\nOn Sun, Sep 16, 2012 at 09:48:43PM +0200, Erik Faye-Lund wrote:\n\n> >> git-upload-pack: error while loading shared libraries: \n> >> libiconv.so.2: cannot open shared object file: No such file or \n> >> directory\n> >> fatal: The remote end hung up unexpectedly\n>\n> [...]\n>\n> No. This is not a Git for Windows issue. The remote end is the one who \n> isn't able to load libiconv, you can tell from the fact that it \n> complains about \"libiconv.so.2\", not \"libiconv-2.dll\", and from the \n> fact that the client informs us that the remote end hung up.\n\nYeah, it is definitely a problem on the remote system.\n\n> Ankush: There's something wrong with the setup on your Linux machine; \n> most likely something related to the library path set up. What \n> protocol are you cloning over?\n\nIf 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.\n\nIf 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:\n\n  git clone -u '. $HOME/.profile && git-upload-pack' ...\n\nBut I am just guessing. We need more information on how the remote system is set up to really know.\n\n-Peff\n"},{"id":"199356","messageId":"m2392fk8dx.fsf@igel.home","threadId":"31544","inReplyTo":"0D5A104FDD13FC4C9EE1E66F4FA3ABF60FCFE5FB@NOIX10HMNOI01.AMER.DELL.COM","subject":"Re: Unable to clone GIT project","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2012-09-18T09:06:18Z","receivedAt":"2012-09-18T09:06:18Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"<Ankush_Aggarwal@DELL.com> writes:\n\n> On Linux machine\n> \tInstalled libiconv-1.14 unded /usr/local/lib path.\n\nWhy do you need that library?  iconv is part of glibc.  Moreover, git\nwouldn't link against libiconv anyway unless you explicitly ask for it.\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5\n\"And now for something completely different.\"\n"},{"id":"199675","messageId":"0D5A104FDD13FC4C9EE1E66F4FA3ABF60FD03E66@NOIX10HMNOI01.AMER.DELL.COM","threadId":"31544","inReplyTo":"m2392fk8dx.fsf@igel.home","subject":"RE: Unable to clone GIT project","fromName":"","fromEmail":"ankush_aggarwal@dell.com","sentAt":"2012-09-21T17:24:23Z","receivedAt":"2012-09-21T17:24:23Z","isPatch":false,"sender":{"key":"ankush_aggarwal@dell.com","avatar":null},"body":"I have tried with iconv by adding its path in PATH and LIBRARY Path but failed to get any solution...\nStill getting below error\n\nc:\\Ankush Data\\work\\Test-GIT\\trial_1>git clone ssh://bea@<IP>:/home/bea/GIT/sample_project\nCloning into 'sample_project'...\nbea@.<IP>:'s password:\ngit-upload-pack: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory\nfatal: The remote end hung up unexpectedly \n\n\n-----Original Message-----\nFrom: Andreas Schwab [mailto:schwab@linux-m68k.org] \nSent: Tuesday, September 18, 2012 2:36 PM\nTo: Aggarwal, Ankush\nCc: peff@peff.net; kusmabite@gmail.com; flatworm@users.sourceforge.net; git@vger.kernel.org\nSubject: Re: Unable to clone GIT project\n\n<Ankush_Aggarwal@DELL.com> writes:\n\n> On Linux machine\n> \tInstalled libiconv-1.14 unded /usr/local/lib path.\n\nWhy do you need that library?  iconv is part of glibc.  Moreover, git wouldn't link against libiconv anyway unless you explicitly ask for it.\n\nAndreas.\n\n--\nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5 \"And now for something completely different.\"\n"},{"id":"199680","messageId":"0D5A104FDD13FC4C9EE1E66F4FA3ABF60FD03E94@NOIX10HMNOI01.AMER.DELL.COM","threadId":"31544","inReplyTo":"0D5A104FDD13FC4C9EE1E66F4FA3ABF60FD03E66@NOIX10HMNOI01.AMER.DELL.COM","subject":"RE: Unable to clone GIT project","fromName":"","fromEmail":"ankush_aggarwal@dell.com","sentAt":"2012-09-21T18:02:17Z","receivedAt":"2012-09-21T18:02:17Z","isPatch":false,"sender":{"key":"ankush_aggarwal@dell.com","avatar":null},"body":"Lovely... I found the solution. So want to share with you all.....\n\nSolution : add /usr/local/lib to /etc/ld.so.conf and run sudo ldconfig\n\nld.so.conf file includes ld.so.conf.d/*.conf\n\nso I created local-lib.conf having value /usr/local/lib and place local-lib.conf under /etc/ld.so.conf.d directory\nafter that I excuted ldconfig which is under /sbin\n\nand problem has been resolved.\n\nThanks to all.\n\n\n-----Original Message-----\nFrom: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On Behalf Of Aggarwal, Ankush\nSent: Friday, September 21, 2012 10:54 PM\nTo: schwab@linux-m68k.org\nCc: peff@peff.net; kusmabite@gmail.com; flatworm@users.sourceforge.net; git@vger.kernel.org\nSubject: RE: Unable to clone GIT project\n\nI have tried with iconv by adding its path in PATH and LIBRARY Path but failed to get any solution...\nStill getting below error\n\nc:\\Ankush Data\\work\\Test-GIT\\trial_1>git clone ssh://bea@<IP>:/home/bea/GIT/sample_project\nCloning into 'sample_project'...\nbea@.<IP>:'s password:\ngit-upload-pack: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory\nfatal: The remote end hung up unexpectedly \n\n\n-----Original Message-----\nFrom: Andreas Schwab [mailto:schwab@linux-m68k.org]\nSent: Tuesday, September 18, 2012 2:36 PM\nTo: Aggarwal, Ankush\nCc: peff@peff.net; kusmabite@gmail.com; flatworm@users.sourceforge.net; git@vger.kernel.org\nSubject: Re: Unable to clone GIT project\n\n<Ankush_Aggarwal@DELL.com> writes:\n\n> On Linux machine\n> \tInstalled libiconv-1.14 unded /usr/local/lib path.\n\nWhy do you need that library?  iconv is part of glibc.  Moreover, git wouldn't link against libiconv anyway unless you explicitly ask for it.\n\nAndreas.\n\n--\nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5 \"And now for something completely different.\"\n--\nTo unsubscribe from this list: send the line \"unsubscribe git\" in the body of a message to majordomo@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"199683","messageId":"m2wqzn9q7u.fsf@igel.home","threadId":"31544","inReplyTo":"0D5A104FDD13FC4C9EE1E66F4FA3ABF60FD03E94@NOIX10HMNOI01.AMER.DELL.COM","subject":"Re: Unable to clone GIT project","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2012-09-21T18:37:57Z","receivedAt":"2012-09-21T18:37:57Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"That doesn't solve the mystery why you need libiconv in the first place.\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5\n\"And now for something completely different.\"\n"}]}