chencg.hn at gmail
Mar 24, 2012, 10:19 PM
Post #1 of 3
Errors when running the relative executables after compiling gnupg-2.0.18 on MinGW
I have managed to compile gnupg-2.0.18 on MinGW which is installed on my
Windows 7 PC. My steps to compile it are as below:
1. tar -jxvf gnupg-2.0.18.tar.bz2, then cd to the directory gnupg-2.0.18
2. run command './configure' to make configurations.
3. change the Makefile under the directory 'gnupg-2.0.18/g10' and
'gnupg-2.0.18/tools' to enable gcc to link the zlib library correctly, by
modified the flag 'ZLIBS' to 'ZLIBS = -lz -L/usr/local/lib
-I/usr/local/include' in the Makefile.
4. run command 'make'
5. run command 'make install'
That's all. And all goes well - the relative gnupg executables (gpg2.exe,
gpgsm.exe, gpgconf.exe, etc) are generated and copied to the
But when I cd to the directory /usr/local/bin and run command 'gpg2
--version' in the MingGW shell, then a window of appcrash is prompted,
showing that gpg2.exe is already stopped.
Results of running other executables are the same.
I don't know why this happen. Can anyone help me to go though it?
If you answer my question, please cc me back as I don't subscribe as a
member of gnupg-users.