Building MySQL/Ruby on mswin32

Posted by Shugo Maeda Sun, 24 Sep 2006 21:30:00 GMT

I created a patch to build MySQL/Ruby on mswin32. With this patch, just type:

> ruby extconf.rb --with-opt-include=../mysql-4.1.21-win32/include \
                  --with-opt-lib=../mysql-4.1.21-win32/lib/opt
> nmake

Then you'll get mysql.so. Really easy.

If libmysql.dll is built by VC7 or later, there may be a problem with GC. It depends on whether MySQL/Ruby releases memory allocated by libmysql.dll using free()/xfree() or not.

Leave a comment, View comments, View trackbacks

Your Comments.

Leave your own response

Other posts about this post.

This post has been discussed on the following web sites / blogs. If you wish to trackback to this post please use the following trackback address: http://blog.shugo.net/articles/trackback/22

Spread the word.

Shugo's Blog supports RSS (Real Simple Syndication), and Trackbacks from other blogs.

RSS feed for this post Trackback URI

Your Reply

Comment Form.

Fields denoted with a "*" are required.

You may also like to leave your email or website.