在 windows 8 上使用 Cygwin - 缺少 cygpng15-15.dll

Using Cygwin on windows 8 - missing cygpng15-15.dll

不幸的是,我真的不知道在使用 cygwin 时我在做什么。我只需要 运行 一个名为 xfig 的程序。我已经使用提供的说明安装了 cygwin here。我相信我已经正确完成了所有步骤。但是,当我尝试使用命令 $ xfig & 启动 xfig 时,出现了这个错误$ /usr/bin/xfig.exe: error while loading shared libraries: cygpng15-15.dll: cannot open shared object file: No such file or directory 我不知道该怎么办。我是否缺少某种需要使用 cygwin 的库?我正在 运行ning Windows 8。感谢任何帮助。

您可以使用此命令开始:

cygcheck --package-query cygpng15-15.dll

return 会有很多废话:

Found 5 matches for cygpng15-15.dll
cygwin32-libpng-1.5.12-1 - cygwin32-libpng: PNG library for Cygwin 32bit toolchain (installed binaries and support files)
libpng15-debuginfo-1.5.21-2 - libpng15-debuginfo: Debug info for libpng15 (installed binaries and support files)
libpng15-debuginfo-1.5.22-1 - libpng15-debuginfo: Debug info for libpng15 (installed binaries and support files)
libpng15-1.5.21-2 - libpng15: PNG library (installed binaries and support files)
libpng15-1.5.22-1 - libpng15: PNG library (installed binaries and support files)

删除第一行并只留下包名给我们这个:

cygwin32-libpng
libpng15-debuginfo
libpng15-debuginfo
libpng15
libpng15

假设您使用 64 位 Windows 和 64 位 Cygwin,您可以删除任何 cygwin32 包。我们也可以忽略 debuginfo 包,因为它们只包含 /usr/lib/debug 的文件。删除我们剩下的那些和重复项:

libpng15

或者你可以只使用我的脚本:

$ apt-cyg searchall cygpng15-15.dll
libpng15