Yaks

Windows 7(64bit) + MySQL 5.1 (64bit) で gem mysql でエラーが出たときの対処法 はてなブックマーク - Windows 7(64bit) + MySQL 5.1 (64bit) で gem mysql でエラーが出たときの対処法

タイトルの環境で「有効な 32bit アプリケーションではない」みたいなエラーが出る時の対処法メモ。

32bit 版の MySQL ならば、[MySQL path]\bin 配下の libmySQL.dll を [ruby path]\bin に放り込めばいいらしいのだけど、それでも動かない。で調べると以下のページを発見。

MySQL driver for Rails in Windows 7 x64 - Stack Overflow:

どうやら、InstantRails に含まれる libmySQL.dll を使えばいいらしい。

ここからダウンロード可能。(InstantRails の SVN)

おそらく、MySQL に dll も 64bitバイナリなのが原因かな。

同じようにはまっている人がいればご参考にどうぞ。

トラックバック

このエントリーのトラックバックURL(末尾の /_nospam_を削除してください。):
http://www.greenspace.info/cgi-bin/mt/mt-tb-post.cgi/277/_nospam_

コメント (4)

I started to follow your blog

投稿者: hd pornolar | 2011年3月10日 13:23

I keep getting a javascript error popup when I try posting a comment. Does this occur for anybody else? I do not exactly have the most up to date computer so maybe that is the issue.

投稿者: Cherrie Larosa | 2011年5月25日 17:34

skil hd77 parts

投稿者: skil hd77 | 2011年9月 6日 23:23

With the whole thing which seems to be building within this particular subject matter, all your viewpoints are generally very exciting. Having said that, I appologize, but I do not subscribe to your whole strategy, all be it exciting none the less. It appears to us that your commentary are not entirely validated and in simple fact you are your self not totally confident of the assertion. In any event I did take pleasure in looking at it.

投稿者: 匿名 | 2012年1月19日 16:18

コメントを書き込む