postinstall autorebase没有干净地运行

 707282400_de0c8b 发布于 2023-02-13 13:33

我向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,但是当我使用安装程序添加软件包时仍会显示错误.

我该如何解决?

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有