如何使用msys 1.0新软件包在MinGW中安装?

时间:2016-03-23 03:46:45

标签: mingw msys msys2

我知道Msys2有pacman用于安装/更新软件包 我如何在Msys 1.0中做同样的事情?

我需要使用Msys 1.0,因为Windows 7 64位终极版不支持Msys2,很好地得到Cygwin7 dll替换不匹配错误,我需要在msys 1.0上安装让我们说python怎么办?

2 [main] pacman (21968) C:\msys64\usr\bin\pacman.exe: *** fatal error - cygheap base mismatch detected - 0x180326400/0x180327400.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
35147604 [main] pacman 10420 fork: child -1 - forked process 21968 died unexpectedly, retry 0, exit code 0xC0000005, errno 11
在Msys2中我会做

pacman --noconfirm -Suy python2 make pkg-config mingw-w64-x86_64-glib2 mingw-w64-x86_64-toolchain

获取包裹

python2 
make 
pkg-config 
mingw-w64-x86_64-glib2 
mingw-w64-x86_64-toolchain

修改

看起来像 MinGW Installallation Manager是唯一可行的方法,因为它有一个GUI,所以更好!

我需要做的就是从中选择 MSYS - > MSYS System Builder选项卡
这就是它的全部

1 个答案:

答案 0 :(得分:0)

好的,找到了解决cygwin1.dll不匹配问题的实际问题 完成安装后,请不要加载msys2控制台shell。

而是从Windows系统打开命令提示符并像这样使用

C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Suy python2 make pkg-config mingw-w64-x86_64-glib2 mingw-w64-x86_64-toolchain"

输出如此

:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (20) make-4.1-4  mingw-w64-x86_64-binutils-2.26-21
              mingw-w64-x86_64-crt-git-5.0.0.4627.03684c4-1
              mingw-w64-x86_64-gcc-5.3.0-2  mingw-w64-x86_64-gcc-ada-5.3.0-2
              mingw-w64-x86_64-gcc-fortran-5.3.0-2
              mingw-w64-x86_64-gcc-libgfortran-5.3.0-2
              mingw-w64-x86_64-gcc-libs-5.3.0-2
              mingw-w64-x86_64-gcc-objc-5.3.0-2  mingw-w64-x86_64-gdb-7.11-1
              mingw-w64-x86_64-glib2-2.46.2-3
              mingw-w64-x86_64-headers-git-5.0.0.4627.53be55d-1
              mingw-w64-x86_64-libmangle-git-5.0.0.4509.2e5a9a2-1
              mingw-w64-x86_64-libwinpthread-git-5.0.0.4573.628fdbf-1
              mingw-w64-x86_64-make-4.1.2351.a80a8b8-1
              mingw-w64-x86_64-pkg-config-0.29.1-1
              mingw-w64-x86_64-tools-git-5.0.0.4592.90b8472-1
              mingw-w64-x86_64-winpthreads-git-5.0.0.4573.628fdbf-1
              pkg-config-0.28-2  python2-2.7.11-1

Total Installed Size:  591.03 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n]
(20/20) checking keys in keyring                   [#####################] 100%
(20/20) checking package integrity                 [#####################] 100%
(20/20) loading package files                      [#####################] 100%
(20/20) checking for file conflicts                [#####################] 100%
(20/20) checking available disk space              [#####################] 100%
:: Processing package changes...
( 1/20) reinstalling python2                       [#####################] 100%
( 2/20) reinstalling make                          [#####################] 100%
( 3/20) reinstalling pkg-config                    [#####################] 100%
( 4/20) reinstalling mingw-w64-x86_64-libwinpt...  [#####################] 100%
( 5/20) reinstalling mingw-w64-x86_64-gcc-libs     [#####################] 100%
( 6/20) reinstalling mingw-w64-x86_64-glib2        [#####################] 100%
No schema files found: doing nothing.
( 7/20) reinstalling mingw-w64-x86_64-binutils     [#####################] 100%
( 8/20) reinstalling mingw-w64-x86_64-headers-git  [#####################] 100%
( 9/20) reinstalling mingw-w64-x86_64-crt-git      [#####################] 100%
(10/20) reinstalling mingw-w64-x86_64-winpthre...  [#####################] 100%
(11/20) reinstalling mingw-w64-x86_64-gcc          [#####################] 100%
(12/20) reinstalling mingw-w64-x86_64-gcc-ada      [#####################] 100%
(13/20) reinstalling mingw-w64-x86_64-gcc-libg...  [#####################] 100%
(14/20) reinstalling mingw-w64-x86_64-gcc-fortran  [#####################] 100%
(15/20) reinstalling mingw-w64-x86_64-gcc-objc     [#####################] 100%
(16/20) reinstalling mingw-w64-x86_64-gdb          [#####################] 100%
(17/20) reinstalling mingw-w64-x86_64-libmangl...  [#####################] 100%
(18/20) reinstalling mingw-w64-x86_64-make         [#####################] 100%
(19/20) reinstalling mingw-w64-x86_64-pkg-config   [#####################] 100%
(20/20) reinstalling mingw-w64-x86_64-tools-git    [#####################] 100%

要使用它,您必须相应地设置PATHS,不仅适用于Windows PATH,还适用于带有/ c /含义C:驱动器等的bash路径。

SET PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;C:\Python27;%PATH%
echo %PATH%
sh.exe -c "export PATH=/c/msys64/mingw64/bin:/c/msys64/usr/bin:${PATH} ; gcc -v"