Microsoft Windows 的 7 POSIX 实现目前处于什么位置?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4746043/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where does Microsoft Windows' 7 POSIX implementation currently stand?
提问by Shinnok
Is there a full POSIX implementation available in/for Windows 7 (I'm thinking of Windows Services for UNIX)?
是否有适用于 Windows 7 的完整 POSIX 实现(我正在考虑适用于 UNIX 的 Windows 服务)?
Is it available in every version of the OS (it seems not)?
它是否适用于每个版本的操作系统(似乎不是)?
How does it add/improve or break on previous MS Windows POSIX implementations?
它如何在以前的 MS Windows POSIX 实现上添加/改进或中断?
Where can i find more info on specific Microsoft approaches and implementations regarding POSIX compliance in Windows 7?
我在哪里可以找到有关 Windows 7 中 POSIX 合规性的特定 Microsoft 方法和实现的更多信息?
回答by Tedd Hansen
SUA, formerly called INTERIX, is now 100% POSIX compatible. There are a lot of ported apps for it. Even whole Linux distros like Debian have been ported. SUA/Interix comes with Windows 2003R2 and up (including Win7 which has the latest 6.1). I also successfully compiled BASH without it directly supporting SUA.
SUA,以前称为 INTERIX,现在 100% 兼容 POSIX。有很多移植的应用程序。甚至像 Debian 这样的整个 Linux 发行版都被移植了。SUA/Interix 随附 Windows 2003R2 及更高版本(包括具有最新 6.1 的 Win7)。我也成功编译了 BASH,但它没有直接支持 SUA。
Previously only parts of POSIX were implemented. The newest version is fully POSIX compliant and is (iirc) mapped more directly onto the Windows kernel than before, causing an increase in speed.
以前只实现了 POSIX 的一部分。最新版本完全符合 POSIX 标准,并且 (iirc) 比以前更直接地映射到 Windows 内核,从而提高了速度。
Beware however that I (on a personal note) experience memory problems when I keep BASH open for several days. The problems seems to affect the whole SUA system. I don't know the cause of this so it could be something with my setup, but worth testing before considering it for production use.
但是请注意,当我将 BASH 打开数天时,我(就个人而言)会遇到内存问题。这些问题似乎影响了整个 SUA 系统。我不知道这是什么原因,所以它可能与我的设置有关,但在考虑将其用于生产之前值得测试。
Links:
Wikipedia article on Interix
Debian interix port
SUA Community with bundles of apps/utils
回答by Smile4ever
If you look at http://technet.microsoft.com/en-us/library/cc772343.aspxyou can see that you can:
如果您查看http://technet.microsoft.com/en-us/library/cc772343.aspx,您会发现您可以:
- debug POSIX applications with Visual Studio
- run 32 bit POSIX applications on a 64 bit Windows edition
- run BSD applications, since BSD support is included in the POSIX implementation of Windows
- 使用 Visual Studio 调试 POSIX 应用程序
- 在 64 位 Windows 版本上运行 32 位 POSIX 应用程序
- 运行 BSD 应用程序,因为 BSD 支持包含在 Windows 的 POSIX 实现中
Kindly have a read of https://en.wikipedia.org/wiki/Windows_Services_for_UNIX