bash 在 cygwin 中使用 xmllint
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21871237/
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
use xmllint in cygwin
提问by kaboom
I am using cygwin on a window 8 machine. When I type
我在 windows 8 机器上使用 cygwin。当我打字
$ xmllint --format something.xml
It says: -bash: xmllint: command not found
它说:-bash:xmllint:找不到命令
How can I use xmllint with cygwin? Is there any other alternatives?
如何在 cygwin 中使用 xmllint?还有其他选择吗?
回答by Steven Penny
Search package
搜索包
cygcheck -p xmllint.exe$
Result
结果
Found 1 matches for xmllint.exe$
x86_64/libxml2/libxml2-2.9.1-1
Then install
然后安装
setup-x86_64 -qP libxml2
回答by paxdiablo
You're better of just installing allof CygWin, not just the default packages. Then you don't have to worry about possibly missing programs.
您最好只安装所有CygWin,而不仅仅是安装默认包。这样您就不必担心可能会丢失程序。
Disk space is cheap, having to waste time figuring out what package contains what programs is not :-)
磁盘空间很便宜,不得不浪费时间弄清楚哪些包包含哪些程序不是:-)
If you mustpick and choose, you can search for the executable here. Based on a cursory search, it's available in Libs/libxml2
.
如果您必须挑选,您可以在此处搜索可执行文件。根据粗略搜索,它在Libs/libxml2
.