Cygwin 安装后自动回退库未干净运行

Cygwin 安装后自动回退库未干净运行,cygwin,Cygwin,在向cygwin添加包时,我总是遇到错误,例如: 包:未知包 autorebase.bat退出代码1 /var/log/setup.log.full表示问题: 2013/12/02 10:07:57 running: cmd.exe /c "C:\cygwin64\etc\postinstall\autorebase.bat" 2013/12/02 10:07:57 abnormal exit: exit code=1 运行cmd.exe/c“c:\cygwin\etc\postinstall

在向cygwin添加包时,我总是遇到错误,例如: 包:未知包 autorebase.bat退出代码1

/var/log/setup.log.full表示问题:

2013/12/02 10:07:57 running: cmd.exe /c "C:\cygwin64\etc\postinstall\autorebase.bat"
2013/12/02 10:07:57 abnormal exit: exit code=1
运行cmd.exe/c“c:\cygwin\etc\postinstall\autorebase.bat”会抱怨没有找到dash

C:\Users\xxx>cmd /c C:\cygwin64\etc\postinstall\autorebase.bat
'dash' is not recognized as an internal or external command,
operable program or batch file.
所以我把autorebase.bat从

@echo off
rem Postinstall scripts are always started from the Cygwin root dir
rem so we can just call dash from here
path .\bin;%path%
dash /bin/rebaseall -p

进行此更改后,我可以从命令提示符干净地运行cmd/c:\cygwin64\etc\postinstall\autorebase.bat,但当我使用安装程序添加包时,仍然会显示错误


如何修复此问题?

如果无法正常工作,请尝试下载32位版本。如果您尝试添加gcc、g++,则32或64的情况相同。如果您尝试添加Cygwin/Mingw,32位编译器在64位机器上运行良好(这对任何应用程序都适用)

这个问题不断出现。。。留言板上到处都有复杂(但不起作用)的解决方案。一个有效的解决办法是隐含的。奇怪的是,我找不到任何关于Cygwin两人之间联系的具体方向

据我所知,Cygwin rebase(在安装结束时执行的脚本0p_000_autorebase.dash)遇到了问题,因为它与您安装的其他东西冲突。很可能是你的一个反病毒过滤器。一种解决方案是在安全+网络模式下启动,进行安装,然后重新启动。一切都很好(至少对我来说)

安装文件夹获取只读标志可能没有帮助(尽管我不确定这到底有什么关系,假设您在管理模式下运行安装程序;但我可能遗漏了一些东西)

@echo off
rem Postinstall scripts are always started from the Cygwin root dir
rem so we can just call dash from here
C:
cd C:\cygwin64
path .\bin;%path%
dash /bin/rebaseall -pv