![pkg-config windows 安装,找不到 libxml-2.0](https://linux22.com/image/1594848/pkg-config%20windows%20%E5%AE%89%E8%A3%85%EF%BC%8C%E6%89%BE%E4%B8%8D%E5%88%B0%20libxml-2.0.png)
我正在尝试安装 github.com/terminalstatic/go-xsd-validate 进行 xsd 验证,并按照链接中提到的步骤进行操作 - https://medium.com/@kumarharsh/using-libxml2-headers-in-windows-5d548077cde5
- 我
pkg-config.exe
的在C:\Users\..\go\bin
- 环境变量
PKG_CONFIG_PATH
设置为C:\mysys64\usr\lib\pkgconfig
libxml-2.0.pc
文件位于上述路径- 运行结果
which gcc
为:/usr/bin/gcc
去获取 github.com/terminalstatic/go-xsd-validate
收到此错误:
pkg-config --cflags -- libxml-2.0
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
pkg-config: exit status 1
整个设置看起来非常混乱,不知道我错过了什么。任何提示都会有帮助!