我向cygwin添加软件包时总是收到错误,例如:Package:Unknown package autorebase.bat exit code 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"抱怨没有找到破折号.
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
至
@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
在此更改之后,我可以从命令提示符中干净地运行cmd/c C:\ cygwin64\etc\postinstall\autorebase.bat,但是当我使用安装程序添加软件包时仍会显示错误.
我该如何解决?