I am using cygwin on a window 8 machine. When I type

$ xmllint --format something.xml

It says: -bash: xmllint: command not found

How can I use xmllint with cygwin? Is there any other alternatives?

有帮助吗?

解决方案

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

其他提示

You're better of just installing all of CygWin, not just the default packages. Then you don't have to worry about possibly missing programs.

Disk space is cheap, having to waste time figuring out what package contains what programs is not :-)

If you must pick and choose, you can search for the executable here. Based on a cursory search, it's available in Libs/libxml2.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top