programing tip

Windows 용 Git-libiconv2.dll이 누락되어 프로그램을 시작할 수 없습니다.

itbloger 2020. 8. 30. 07:49
반응형

Windows 용 Git-libiconv2.dll이 누락되어 프로그램을 시작할 수 없습니다.


Windows 7 (64 비트)의 git Bash에서 특정 명령 (예 : git push)을 실행하려고하면 오류가 발생합니다.

The program can't start because libiconv2.dll is missing from your computer

나는 이것에 대한 해결책을 철저히 찾았습니다.
내가 찾을 수있는 가장 많은 것은 Google 코드 사이트 ( Issue 419 ) 의 이슈 스레드 와 여기저기서 몇 개의 다른 블로그입니다. 게시물에 제공된 제안 중 어느 것도 실제로 내 문제를 해결할 수 없다고 말할 수 있습니다.

재설치를 시도했습니다. 나는 추가 시도 $GIT/bin받는 PATH.
dll이 $GIT/bin디렉토리 에 있는지 확인할 수 있지만 여전히 원격으로 푸시 할 수 없습니다.

다른 Windows 7 상자에 msysgit을 설치했으며 두 상황 모두에서 동일한 방식으로 설치했습니다 ... 그래서 말할 필요도없이 꽤 혼란 스럽습니다.

이것에 대한 모든 도움을 주시면 감사하겠습니다.

감사,


이 스레드에서 해결 : http://groups.google.com/forum/#!topic/msysgit/twrVn_EbNI4

  • cd git 설치 디렉토리에
  • copy mingw\bin\libiconv-2.dll libexec\git-core
    (또는 copy bin\libiconv-2.dll libexec\git-core설치에 mingw폴더 가없는 경우 )

링크 된 스레드에서 Drew는 도움을 요청하므로 문제를 해결할 수 있다고 생각되면 해당 Google 그룹스 스레드에 회신 할 수 있습니다.

다음 빌드에서 오류가 발생합니다.

  • msysgit-fullinstall-1.7.4 또는 1.7.6 (및 1.7.7)
  • msysgit-netinstall-1.7.4 또는 1.7.6 (및 1.7.7)
  • 망할 놈의 Windows의 1.7.6 (하지만 하지 1.7.4)

  • / Program Files / Git / bin / libiconv-2.dll 복사
  • / Program Files / Git / libexec / git-core /

이 문제를 해결했습니다 ... 여기에 몇 가지 유의해야 할 사항이 있습니다.

1) 문제는 내 로컬 .git / config 파일에서 구성된 원점의 오타였습니다. 그래서 나는 바보입니다.

2) Git Bash는이 상황에서 정상적으로 실패하지 않고 .git / config 파일에 지정된 이름의 원본이 구성되어 있지 않다고보고하는 대신 경고로 매우 잘못된 오류를 발생시킵니다.

내가 이것을 알아낼 수있는 유일한 방법은 $ GitPath / cmd 디렉토리를 내 경로에 추가하고 명령 줄에서 git을 실행하는 것입니다. 거기에서 원격 저장소가 아직 존재하지 않는다는 자세한 오류 메시지를받을 수있었습니다. 그런 다음 신뢰할 수있는 vi 편집기를 가져와 실제로 오타가있는 것을 보았습니다.

여기서 교훈. msysgit에서 이상한 .dll 오류가 발생하는 경우 일부 시스템 이상이나 설치 문제가 아닌 잘못된 구성의 결과 일 수 있습니다.

도움을 주신 모든 분들께 감사드립니다!


Win 7의 msysGit-fullinstall-1.7.3.1-preview20101002.exe에서이 오류를 보았습니다.

Added <msysgit_dir>\mingw\bin to PATH 

고쳐주세요. libiconv2.dll이 해당 디렉토리에서 발견되었습니다.


Mac의 SmartGit 에서이 문제가 발생했습니다. 환경 설정-> 명령-> 실행 파일 에서 변경하여 수정했습니다.

Git 실행 파일 :

...에서

/usr/bin/git

에:

/usr/local/git/bin/git

sqzaman의 대답의 변형, 나는 그들이했던 것과 같은 장소에 폴더가 없었기 때문입니다.

Copy
%USERPROFILE%\Local Settings\Application Data\GitHub\PortableGit_*\bin\*.dll
to
%USERPROFILE%\Local Settings\Application Data\GitHub\PortableGit_*\libexec\git-core

libiconv-2.dll 복사로 시작했지만 libcurl.dll에 대해 불평했기 때문에 계속해서 * .dll을 복사했습니다.


SmartGit이 오류 결과에서 stackoverflow의이 페이지를 참조하므로이 지식이 여기 누군가에게 유용 할 것이라고 생각합니다 ....

때로는 git 설치에 문제가 없지만 때때로. git bash를 사용하고 입력하여 버전 정보를 얻을 수 있더라도

git -- version 

SmartGit은 저장소를 추가하지 않고 git is obsolote 또는 버전 정보를 가져올 수 없음 (또는이 메시지와 유사)을 반환합니다.

If so, you'd better check your security utilities and virus removal applications settings first. In my situation disabling comodo firewall make smartgit able to see healty git installation and version information.


Fastest way to fix this is locating the *.dll file on the other pc and copy it =)


I just tried installing SmartGIT on Windows and facing the same problem. I just figure out that it works not by pointing it to git.exe, instead I pointed it to C:\msysgit\cmd\git.cmd. So far it works just fine. I can access the git repository under msysgit.

FYI, I'm using the Net installer for Windows.

Hoping that this is the right approach.


My answer resolves the same error for msysgit, but may help with pure git.

On Windows 7, I added <msysgit_dir>\mingw\bin to PATH as so_mv has recommended above (via the System Variables GUI), but I had to logout and login to OS after that, otherwise the PATH value won't get updated.


To resolve this issue I actually had to copy all DLLs from mingw/bin/ to bin/ (not overwriting any existing once). I use remote HTTPs repositories and it just kept on complaining.


I had the same error on Windows 7 when running \msysgit\bin\git.exe. I fixed it by copying the \msysgit\mingw\bin\libiconv-2.dll to the root of Win 7 installation directory.


I installed Git for Windows, then Git in order to copy the .dll

This did not work for me. To solve the issue I had to add the path:

C:\Users\*username*\AppData\Local\GitHub\PortableGit_015aa71ef18c047ce8509ffb2f9e4bb0e3e73f13\cmd

to the PATH environment variable.

This cleared up the issue and I can now access git from the command prompt.


Personally I solved it by reading the error I got from getopt.exe, that told me it was missing "libiconv2.dll".. I had libiconv-2.dll (notice the dash "-") in C:\Program Files (x86)\Git\bin. Making a copy and naming it libiconv2.dll did the trick for me...

I used some chocolatey packages ... maybe the actual file was renamed during its development lifetime... and the dependencies in the packages did not....

Well hope it helps someone out there :)


If the error "missing libiconv-2.dll" occurs while starting SourceTree on Windows, following worked for me (Win 8.1):

go to

C:\Users\$USERNAME$\AppData\Local\Atlassian\SourceTree\git_local\bin

copy

libcrypto.dll
libcurl.dll
libiconv-2.dll
libssl.dll

to

C:\Users\$USERNAME$\AppData\Local\Atlassian\SourceTree\git_local\libexec\git-core

One possible solution for SourceTree:

   1.Open the "Option" window.
   2.Select "Git".
   3.Than "Use System Git".
   4.And press OK button.

I have msysgit on Windows7 without any issue with any DLL.

I have libiconv2.dll in the bin directory: C:\Path\To\Git\1.7.1\bin

The issue 419 was about someone who installed the "development environment to compile Git for Windows", not just Git.
See this SO answer for the difference between the two.

So which one did you install?

  • Git-1.x.x.x...? (like 'Git-1.7.0.2-preview20100309.exe'),
  • or msysGit-netinstall-1.x.x...? (like 'msysGit-netinstall-1.7.1-preview20100612.exe').

I originally tried to solve this problem by copying the dll as mentioned here but soon ran into other problems. For me the real solution was to set the path in my .bashrc file for msys to prioritize the msys binaries.

Open the msys shell and the following line in ~/.bashrc:

export PATH=/usr/local/bin:/mingw/bin:/bin:$PATH


I've been plagued with this issue, to correct this issue, i uninstalled tortoisegit and msysgit, then i reinstalled "Git-1.8.1.2-preview20130201".

by doing this, this corrected my issue and i'm not able to use poshgit.


In my case I used chocolatey (chocolatey.org) to install git.

I had to copy libconv-2.dll to C:\ProgramData\chocolatey\bin to get it working. I'm not sure if copying the file to C:\Program Files (x86)\Git\libexec\git-core is also necessarily, as I did that first.


I was using GitHub Desktop Version and having same problem, I changed Default shell by Setting-->Options--->Default shell and checked Git bash. I started "Open Git shell" and run "git pull" command, it fixed problem. It worked in my case.


Copy all .dlls from:

C:\Users\YOURUSERNAME\AppData\Local\GitHub\PortableGit_25d850739bc178b2eb13c3e2a9faafea2f9143c0\mingw32\bin

to:

C:\Users\YOURUSERNAME\AppData\Local\GitHub\PortableGit_25d850739bc178b2eb13c3e2a9faafea2f9143c0\mingw32\libexec\git-core


I had the same problem, I am using Windows 10 and it is super easy to solve this problem.

Download the dll file from:

https://www.dll-files.com/libiconv-2.dll.html

extract it or paste it into the mingw folder directly, it's generally in C- drive if you have installed it using default options. Hope it helps.


Try the following command:

sudo rm -rf /Library/Developer/CommandLineTools 

and install developer tools


I had to deal with this same error message while trying to configure meanio, of which git is a prerequisite (my particular error was: prerequisite not found: git).
The fix I figured out entailed copying libiconv2.dll from

C:\Program Files (x86)\Git\bin

to

C:\Program Files (x86)\Git\libexec\git-core

Then I had to make some adjustments to the windows system Environment Variables (Right click computer, go to properties, click "Advanced System Settings" on the left vertical bar, select environment variables) Once in Environment Variables, look in the System Variables box. Find the

PATH

Variable and add three new references:

C:\Program Files (x86)\Git\bin;
C:\Program Files (x86)\Git\cmd;
C:\Program Files (x86)\Git\libexec\git-core

This way all the required git files are accessible across the system path.

Hope this helps!

참고URL : https://stackoverflow.com/questions/3431361/git-for-windows-the-program-cant-start-because-libiconv2-dll-is-missing

반응형