【发布时间】:2014-11-18 08:11:52
【问题描述】:
我想帮助我的同事正确安装 Cygwin。
我们拥有 Cygwin 存储库的完整网络副本以及 setup.exe。
如何预配置我想用 Cygwin 安装的包(自动检查要安装的包)?
接下来,安装后如何预配置一些文件(如/etc/...配置文件)?
我正在考虑编写一个使用命令行参数调用setup.exe 的BATCH 脚本,但我认为有更好的解决方案。
当我尝试从命令行使用 setup.exe 时,我收到一个与 McAfee 相关的奇怪错误,但我的计算机上没有安装 McAfee。
c:\Cygwin_root>setup.exe -q -L -l . -X -R "C:\cygwin" -P check
c:\Cygwin_root>Starting cygwin install, version 2.774
User has backup/restore rights
io_stream_cygfile: fopen(/etc/setup/net-proxy-host) failed 2 No such file or directory
io_stream_cygfile: fopen(/etc/setup/net-proxy-port) failed 2 No such file or directory
io_stream_cygfile: fopen(/etc/setup/extrakeys) failed 2 No such file or directory
Current Directory: .
Could not open service McShield for query, start and stop. McAfee may not be installed, or we don't have access.
root: C:\cygwin binary system
Selected local directory: .
mbox fatal: Fatal Error: Uncaught Exception
Thread: ini
Type: St13runtime_error
Message: IniParseFindVisitor: failed to open ini file, which should never happen
unattended_mode is set at mbox: returning default value
Ending cygwin install
setup.exe -q -L -l cygwin -X -R "C:\cygwin" -P check
有什么想法吗?
【问题讨论】: