在Windows上安装gokogiri时找不到错误libxml2

I'm trying to install gokogiri on Windows 8 machine following instructions in their github page :

To install:

  • sudo apt-get install libxml2-dev
  • go get github.com/moovweb/gokogiri

skipping the first command (as it isn't available on Windows), I get the following error :

enter image description here

What is the error complaining about? Should I install libxml-2.0 manually before retrying the "go get" command?

UPDATE :

The following are the steps I've done, each step based on error message I get from retrying the go get command after completing the previous step :

  • Download pkg-config_0.26-1_win32.zip from here, unzip/extract, and add the bin folder to path environment variable

  • Donwload libxml2-2.9.2-win32-x86.7z from here, unzip. Create new environment variable PKG_CONFIG_PATH, and add libxml's \lib\pkgconfig folder location to the env variable.

  • Donwload and install tdm64-gcc from here

Now the error message is as follow. What should I do next? How to properly make gcc aware of the location of my libxml2 files?

enter image description here

查看全部
dtla92562
dtla92562
2015/06/21 02:46
  • it技术
  • 互联网问答
  • IT行业问题
  • 编程语言问答
  • 计算机技术
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复