# Need help setting up ruby-xslt on Windows

**URL:** <https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335>\
**Category:** Ruby\
**Created:** [September 11, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335 "2006-09-11T21:39:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [September 11, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335/1 "2006-09-11T21:39:26Z")

</div>

Has anyone successfully built and used the ruby-xslt library on Windows?

I’ve downloaded the source, downloaded a libxslt binary, but am having a  
heck of a time trying to run make against the downloaded files.

I’m hoping to hear if someone had actually had success with this  
building the library in Cygwin. I would then like to ask more questions  
if anyone has actually done this.

Thanks,  
Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [September 12, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335/2 "2006-09-12T20:33:30Z")

</div>

More info.:

I’m using the MinGW make to try to build this extension.

=========== Generate Makefile ============  
When I invoke the script to generate my Makefile, I get this:

C:\ruby-xslt\>ruby extconf.rb --with-xslt-dir=c:/libxslt-1.1.17.win32  
compile with :  
CFLAGS = -g -Wall -MD -Zi -O2b2xg- -G6  
-Ic:/libxslt-1.1.17.win32/include -DUSE  
\_EXSLT  
LDFLAGS = -Lc:/libxslt-1.1.17.win32/lib -lxslt -lxml2 -lz -lpthread  
-liconv -  
lm -lexslt

creating extconf.h  
creating Makefile  
c:/ruby/lib/ruby/1.8/mkmf.rb:985: warning: global variable `$preload’  
not initia  
lized

When I call mingw32-make, I get:

=========== Invoke make ============

C:\ruby-xslt\>mingw32-make  
makefile:131: \*\*\* target pattern contains no `%’. Stop.

The makefile is attached. Line 131 is:

{$(topdir)}.cc{}.obj:

and topdir is defined in the beginning of the makefile as:

topdir = c:/ruby/lib/ruby/1.8/i386-mswin3

Is this Makefile incorrect? I’m not sure I’ve seen syntax like  
{$(topdir)} before.

Thanks,  
Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [October 1, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335/3 "2006-10-01T19:07:34Z")

</div>

Wes G. wrote:

> More info.:
> 
> I’m using the MinGW make to try to build this extension.
> 
> =========== Generate Makefile ============  
> When I invoke the script to generate my Makefile, I get this:
> 
> C:\ruby-xslt\>ruby extconf.rb --with-xslt-dir=c:/libxslt-1.1.17.win32  
> compile with :  
> CFLAGS = -g -Wall -MD -Zi -O2b2xg- -G6  
> -Ic:/libxslt-1.1.17.win32/include -DUSE  
> \_EXSLT  
> LDFLAGS = -Lc:/libxslt-1.1.17.win32/lib -lxslt -lxml2 -lz -lpthread  
> -liconv -  
> lm -lexslt
> 
> creating extconf.h  
> creating Makefile  
> c:/ruby/lib/ruby/1.8/mkmf.rb:985: warning: global variable `$preload’  
> not initia  
> lized
> 
> When I call mingw32-make, I get:
> 
> =========== Invoke make ============
> 
> C:\ruby-xslt\>mingw32-make  
> makefile:131: \*\*\* target pattern contains no `%’. Stop.
> 
> The makefile is attached. Line 131 is:
> 
> {$(topdir)}.cc{}.obj:
> 
> and topdir is defined in the beginning of the makefile as:
> 
> topdir = c:/ruby/lib/ruby/1.8/i386-mswin3
> 
> Is this Makefile incorrect? I’m not sure I’ve seen syntax like  
> {$(topdir)} before.
> 
> Thanks,  
> Wes

Hi  
I have the same problem in this days !!!  
I used the package “ruby-serialport” to make somethings with RS-232c BUT  
I found errors when I tried to use make from “msys tool”

That’s happens in Windows XP platform… Did you find the solution???  
☹

Many thanks  
Alessandro

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [October 2, 2006, 4:45am UTC](https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335/4 "2006-10-02T04:45:14Z")

</div>

Alex A. wrote:

> Hi  
> I have the same problem in this days !!!  
> I used the package “ruby-serialport” to make somethings with RS-232c BUT  
> I found errors when I tried to use make from “msys tool”
> 
> That’s happens in Windows XP platform… Did you find the solution???  
> ☹
> 
> Many thanks  
> Alessandro

Alex,

I haven’t resolved it. I was going to try and play with the makefile  
but haven’t gotten around to it.

Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [January 23, 2007, 1:44am UTC](https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335/5 "2007-01-23T01:44:09Z")

</div>

Alex,

I’ve come back to needing to set up ruby-xslt on Windows. Did you make  
any progress?

Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [January 24, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335/6 "2007-01-24T17:18:56Z")

</div>

I Wes

No progress !!! (for now I work with C language to do somethings with  
serial port)  
Sorry!

see you later  
Alex

Wes G. wrote:

> Alex,
> 
> I’ve come back to needing to set up ruby-xslt on Windows. Did you make  
> any progress?
> 
> Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [January 24, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335/7 "2007-01-24T17:29:31Z")

</div>

Alex A. wrote:

> I Wes
> 
> No progress !!! (for now I work with C language to do somethings with  
> serial port)  
> Sorry!

Alex, I ended up doing this instead:  
[http://www.ruby-forum.com/topic/95050](http://www.ruby-forum.com/topic/95050)

Wes
