error libxml2 not found on installing gokogiri on windows

har07 :

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

Srgrn :

you have a space in your path to libxml.

option 1: remove libxml and reinstall it at a path without spaces (not program files)

option 2 (might not work for gcc) in the enviroment variable points to libxml (including your path) use quotes around the name path to libxml

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Go lang: how to install libxml2/gokogiri on windows

Installing lxml, libxml2, libxslt on Windows 8.1

Installing lxml, libxml2, libxslt for Python 3.5 on Windows 10

How to solve "libxml2 missing package" error on "gem install ovirt-engine-sdk" on Windows?

How do I parse xml with a namespace using gokogiri (libxml2)?

Problems with libxml2 when installing Ruby on Rails on OSX Mavericks

Can't install python lxml (and libxml2) on windows

Error on installing angular/cli - not found: python2

Error installing JQ on windows

Getting "Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?" when installing lxml through pip

aws command not found error even after installing aws cli on jenkins windows slave when running a jenkins job

installing MinGW-x64 in code blocks windows 10 error: No such file or directory found

Helm 'Error: error installing: namespaces "{username}" not found'

Error:2 File Not Found - Windows Service

Installing PyroCMS error when installing in xampp (windows)

whats the reason for the xml2-config not found while compiling libxml2?

Make error: emmake make results in error when trying to build libxml2, can't find libxml.so.2

getting error while installing psycopg2 in vscode on windows

Error installing RPy2-2.3.8 on Windows 7, Python 3.3

Error whle installing Hadoop on windows

Error in installing "StatPlots" in Windows for Julia

Error installing Eclipse IDE on windows

Error installing Rmpi package on windows

Error when installing bazel on windows

Error installing scipy package on Windows

Error while installing HBase on windows

Error while installing Windows 3.1

Error installing Rails on Windows 10

Getting a 'module not found' error after installing a package