-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The procedure entry point curl_global_sslset could not be located in the dynamic link library libcurl-4.dll. #1277
Comments
Duplicate of #1268 (please really search existing tickets when asked to). You need to uninstall Gt completely and make sure |
I did inspect that issue. The error message is different. Plus I did not install Git using the installer but into MSYS2 using pacman. |
If you install Git for Windows' Pacman package into MSYS2 without Git for Windows' other support packages, of course things break. That is to be expected. If you don't know the ramifications of what you did, it'd be better to stick with Git for Windows SDK instead. |
I understand this is not a supported way of installing git-for-windows. However, it was working without issues before. I'm trying to understand what changed since 2.13.2.1.914b84c9d9-1 to cause this. |
@brechtm I am sympathetic to your reasoning. Please note, however, that I am not exactly in need for even more work, and you are putting more work on my shoulders. The reason why you see this error is that I use an experimental cURL version in Git for Windows that has curl/curl#1601 integrated. This cURL version is not available in MSYS2, unless you install it specifically from Git for Windows' Pacman repository. Of course, you can work around the reported issue by doing exactly as I said. The problem is that next time something similar happens, you will most likely have as little idea what happened as now because you are inactive in Git for Windows' development and therefore miss all the recent developments, so you will have to ask again, and I will have to set aside time again to address your problem, leaving other problems (that affect more than a single user) behind. |
Thanks @dscho. I appreciate you took the time to explain the cause of this crash. I can imagine you have enough work as it is, so I do not expect you to support this non-standard installation. So please do not feel obliged to spend time on this or similar tickets. I can live with an answer like "This is not a supported usage scenario for git-for-windows. I cannot afford to spend time investigating this issue". And this is basically all I can expect, seeing that you are doing this free of charge. Besides hoping for an answer to my question, I do think this ticket could be useful to others (however few) who run into the same problem. Ideally, I would be using the git provided in the MSYS2 repository, but it suffers from some problems (detailed in the StackOverflow question I linked to above). In any case, thanks for bringing a very useful piece of software to the Windows platform! |
Putting the |
@brechtm you are turning your MSYS2 installation into a Git for Windows SDK. The hard way. Probably you also want to install the |
Thanks @dscho, your tip to uninstall and reinstall git for windows worked perfectly. I was starting to lose my mind trying to figure out why I got the error message in the title of this thread after upgrading to "git version 2.14.1.windows.1" |
@dscho I can't remember why I opted for MSYS2 + the git-for-windows repository instead of the Git for Windows SDK. I suppose the SDK acts pretty much identical to MSYS2 with the exception of git, such as having the ability to upgrade packages using pacman? I'll replace MSYS2 with the SDK then if I run into any issues in the future. |
@brechtm Git for Windows' SDK is nothing else than a special edition of MSYS2, indeed. As you found out, it adds (actually, prepends) two Pacman repositories, and it also installs the |
This is not an issue of a single user. There is a good reason, why many of us would like to use git package in original msys2 instead of Git-For-Windows. Not all users want to have msys2 environment just for git and nothing else (which is what Git-For-Windows does), and it doesn't make sense to have 2 instances of msys2, first the original one with all the other packages and second one specialized only for git, packed together in Git-For-Windows. Then you can't the other Unix tools in Git-bash, because they are installed in the other msys2. |
@Youda008 I have a lot of sympathy for your desire. And I would have even more sympathy (a metric ton, if you want) if y'all started to work on making that use case easier not only for yourself, but for others, too. |
Commenting to weigh in on the relevance of the discussion here to many users vs few. I didn't land here due to hitting an error. Instead I'm just trying to learn how to set up a windows environment, coming from *nix with the mandate to work on building an app on windows, and having been away from the windows world for a long time. A series of realizations proceeded something like the following:
What combination of things is a developer likely to want in order to work on their own project? Reading about problems with the git package for msys2 seems to point toward eschewing that and installing git for windows. In the comments here, the result of taking the git for windows route is described as a "Git for Windows SDK" which sounds like something with the narrow purpose of working on git for windows itself. Also in the comments here, mixing and matching seems to be frowned upon. My main purpose in following the trail that led me through here is to resolve the confusion about how to properly set up a mingw dev environment in windows. Any helpful pointers toward that end are much appreciated. But please nobody take this as a demand for time you don't have. |
@charlieok here are my 2 cents: It is important to know the history so that you understand the different terms being thrown around. First of all, there is a distinction between MSYS and MINGW: MSYS comes with a POSIX emulation layer (based on Cygwin), allowing you to build Linux/Unix software changing very little if anything in the source code. MINGW, on the other hand, targets the Win32 API, it does not guarantee you the full POSIX functionality (most notable, the Also, there are the occasional hiccups with the POSIX emulation. The MSYS and MINGW systems come both with their entire toolchain: a And it is true that MSys/MINGW are not supported very well, they've fallen behind (no 64-bit, no Unicode, etc). MSYS2 is really the way forward in that respect. In contrast, MSYS2 is maintained very actively, and their MINGW packages are based on the equally active mingw-w64 project. Your assumption that Git for Windows comes with MSYS2 is only partially correct: due to the original design (which was not that smart, in hindsight), Git is implemented partially as Perl/Unix shell scripts, so we need something to run them. For that reason, we bundle some files from MSYS2. Git for Windows (as in: the end-user facing installer) never aimed, and never will aim, to include a full-fledged MSYS2. As to your question what is the smartest way to develop MINGW software: my answer would be to use MSYS2 in its default MINGW mode. But maybe an even smarter thing would be to ask this question not attached to a pretty unrelated bug report. I would suggest the StackOverflow... |
Thank you @dscho ! Very helpful. I apologize for posting the question here. I queued up a lot of things to read, and have gotten around halfway through them, but had some burning questions after reading through the thread here. Before I'm done I'll probably have scattered some more questions elsewhere. I think my takeaway here though is that for an msys2/mingw environment, I probably just want the git package within that environment, while git for windows is for people who are not working within that type of environment. |
Setup
mingw-w64-x86_64-git-2.14.1.1.82d9b3f3b2-1 from the git-for-windows pacman repository.
Windows 7 Enterprise SP1
defaults?
I installed mingw-w64-x86_64-git in MSYS2.
to the issue you're seeing?
I'm running git-for-windows inside an MSYS2 installation as described here: https://stackoverflow.com/questions/40262434/what-are-the-differences-between-msys-git-and-git-for-windows-mingw-w64-x86-64-g
This was working well with previous versions of git-for-windows, up to and including mingw-w64-x86_64-git-2.13.2.1.914b84c9d9-1 (to which I've reverted for now). I am aware that this non-standard setup may be causing the crash.
Details
Bash and CMD
Minimal, Complete, and Verifiable example
this will help us understand the issue.
A non-zero return code.
Bash: a return code of 128. No output or pop-up.
CMD: A pop-up dialog:
The text was updated successfully, but these errors were encountered: