V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
yagamil
V2EX  ›  Go 编程语言

windows 下 lestrrat-go\libxml2 这个库似乎无法直接使用

  •  
  •   yagamil · 254 天前 · 429 次点击
    这是一个创建于 254 天前的主题,其中的信息可能已经有所发展或是发生改变。
    C:\Users\xda\go\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:124:7: undefined: clib.XMLXPathFreeObject
    C:\Users\xda\go\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:129:19: undefined: clib.XMLXPathCompile
    C:\Users\xda\go\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:149:7: undefined: clib.XMLXPathFreeCompExpr
    C:\Users\xda\go\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:163:22: undefined: clib.XMLXPathNewContext
    C:\Users\xda\go\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:179:14: undefined: clib.XMLXPathContextSetContextNode
    C:\Users\xda\go\pkg\mod\github.com\lestrrat-go\[email protected]\xpath\xpath.go:179:14: too many errors
    

    看来作者的 github ,需要自己编译一个 libxml2 库, 然后需要 visual studio 或者 cgywin 这种的, 想着有点麻烦,为了用这个 path 分析库,搞个 10 多 G 的 vs 环境。 有没有快捷的方式?

    没有的话只就换 linux 。。

    securityCoding
        1
    securityCoding  
       254 天前 via Android
    你直接扔 wsl 跑
    roundgis
        2
    roundgis  
       254 天前 via Android
    我記得 mingw64 有這個庫吧?
    yagamil
        3
    yagamil  
    OP
       245 天前
    @roundgis 是有,这个以前配 github bash 的时候用过。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3208 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:14 · PVG 20:14 · LAX 05:14 · JFK 08:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.