安装独立的cygwin应用程序 [英] Setup standalone cygwin applications

查看:183
本文介绍了安装独立的cygwin应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要设置一组最小的cygwin应用程序(ls,diff,path,find,grep),使它们在没有完整cygwin安装的机器上运行。

I want to setup a minimal set of cygwin applications (ls, diff, path, find, grep) so that they run on a machine without the full cygwin install.

我假设我需要的是* .exe文件和* .dll是相关的。到目前为止,这是我有。

I am assuming all I need are the *.exe files and *.dll that are relevant. So far, this is what I have. It works so far, but I was wondering if there are any issues down the road that I might experience.

推荐答案

不是真的,但您可能需要查看 UnxUtils ,它比cygwin有一些优势,适合您的应用程序描述:

Not really, but you might want to look at UnxUtils, which has some advantages over cygwin for the sort of application you're describing:


  1. 不依赖于外部DLL。

  1. It does not depend on an external DLL.

可执行文件使用msvcrt.dll,而不是cygwin.dll,因此它们在本地Windows路径中运行良好。 / cygdrive路径和系统其余部分使用的本机路径之间没有断开连接。

The executables use msvcrt.dll, rather than cygwin.dll so they play nicely with native windows paths. There is no disconnect between the /cygdrive path and the native paths used by the rest of the system.

由于(2)

UnxUtils对于部署功能到windows机器,因为你可以将sed.exe放到应用程序目录中,而不必担心注册任何DLL或其他安装复杂性。 CMD.exe将管道和重定向足够使用这些在批处理文件,并且实用程序不介意 \r\\\
行终止符。

UnxUtils is quite good for deploying functionality like sed to windows machines because you can just drop sed.exe into an application directory and not have to worry about registering any DLL's or other installation complexities. CMD.exe will pipe and redirect well enough to use these in batch files, and the utilities do not mind \r\n line terminators.

这篇关于安装独立的cygwin应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆