The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Building libxml2 and libxslt on Windows

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
Building libxml2 and libxslt on Windows Posted: Sep 1, 2015 5:13 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: Building libxml2 and libxslt on Windows
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
I had a little trouble building these from source with MSVC so I thought I'd record the issues I faced both so that I can refer back to this post if I forget, and perhaps help others along the way.

For libxml2, download the source and cd to the libxml2-x.x.x\win32 directory. Then run "cscript configure prefix=C:\usr iconv=no". Replace "C:\usr" with wherever you want to install it. Ignore the "iconv=no" bit if you want to try to build with iconv support.

If you get "win32\configure.js(197, 2) Microsoft JScript runtime error: File not found", then hand edit the configure.js file and replace "configure.in" with "configure.ac" and try again.

Then run "nmake /f Makefile.msvc", followed by "nmake /f Makefile.msvc install". That should mostly do it. It does not seem to build or install any sort of xml2-config script, but I found a batch file at https://mail.gnome.org/archives/xml/2012-December/msg00014.html that I copy and pasted into C:\usr\bin. Seems to work.

For libxslt, download the source and cd to the libxslt-x.x.x\win32 directory. Then run "cscript configure prefix=C:\usr lib=C:\usr include=C:\usr\include\libxml2 iconv=no", replacing "C:\usr" with wherever you installed libxml2. Remove the "iconv=no" if you want to try to build with iconv support.

Then run "nmake". If you see "LINK : fatal error LNK1117: syntax error in option 'OPT:NOWIN98'", then hand edit the Makefile and remove that switch, then run "nmake" again. It should build. Then run "nmake install".

That should do it, though I haven't found an xslt-config script yet.

Read: Building libxml2 and libxslt on Windows

Topic: Migrating from Gradle to Bazel Previous Topic   Next Topic Topic: Shocking CDC anti-smoking campaign is back with new ads

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use