Ruby and Gnome2 aka gtk2 and the iconv.dll

My heart went out to the author of a mail list request for suggestions:

“I encountered the current problem I’m having about a year ago and thought I had figured what was wrong but can’t seem to remember how to fix it.”

Naturally after installing Gnome2, the simple ruby

require ‘gtk2′

failed.

I began slowly, conservatively, moving gtk2 site-ruby into my dev ruby tree.

I finally got to the iconv.dll missing entry-point error.

Here is my tip if you find that your ruby/bin already has an iconv.dll

In ruby/bin create a safety dir and move your current iconv.exe and iconv.dll into that backup area.

Now copy from the the gnome2/bin into ruby/bin

You should now get a reassuring true when you require ‘gtk2′

There are good tips on rubyscript2exe elsewhere on the web.

Leave a Reply

You must be logged in to post a comment.