# Can't install Mongrel and My SQL gem on Windows XP 64 bit

**URL:** <https://www.ruby-forum.com/t/cant-install-mongrel-and-my-sql-gem-on-windows-xp-64-bit/192628>\
**Category:** Ruby\
**Created:** [August 3, 2010, 10:30am UTC](https://www.ruby-forum.com/t/cant-install-mongrel-and-my-sql-gem-on-windows-xp-64-bit/192628 "2010-08-03T10:30:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![javix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@javix](https://www.ruby-forum.com/u/javix)\
**Post date:** [August 3, 2010, 10:30am UTC](https://www.ruby-forum.com/t/cant-install-mongrel-and-my-sql-gem-on-windows-xp-64-bit/192628/1 "2010-08-03T10:30:50Z")

</div>

I have no access to the Internet to be able to install all needed gems,  
so I downloaded them one by one and put to a local folder:

- cgi\_multipart\_eof\_fix-2.5.0.gem,
- fastthread-1.0.7.gem,
- gem\_plugin-0.2.3.gem
- json-1.1.9.gem
- json\_pure-1.1.9.gem
- mongrel-1.1.5.gem
- needle-1.3.0.gem
- net-scp-1.0.2.gem
- net-ssh-1.1.4.gem
- net-ssh-2.0.15.gem
- rack-1.0.1.gem
- rails-2.3.4.gem
- actionmailer-2.3.4.gem
- actionpack-2.3.4.gem
- activerecord-2.3.4.gem
- activeresource-2.3.4.gem
- activesupport-2.3.4.gem
- rake-0.8.7.gem
- mysql-2.8.1.gem

Then I tried to install them as follows:

1. Install Ruby via Windows installer ruby186-27\_rc2.exe.

ruby -v

ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

1. Install RubyGems 1.3.5:

- I unzipped the rubygems-1.3.5.tgz
- cd gems/rubygems-1.3.5
- ruby setup.rb

gem -v  
1.3.5

1. Checked available gems before installing:

gem list

\*\*\* LOCAL GEMS \*\*\*

fxri (0.3.6)  
fxruby (1.6.16)  
hpricot (0.6.164)  
log4r (1.0.5)  
ptools (1.1.6)  
rake (0.8.1)  
ruby-opengl (0.60.0)  
test-unit (2.0.1)  
win32-api (1.2.1, 1.2.0  
win32-clipboard (0.4.4)  
win32-dir (0.3.2)  
win32-eventlog (0.5.0)  
win32-file (0.5.5)  
win32-file-stat (1.3.1)  
win32-process (0.5.9)  
win32-sapi (0.1.4)  
win32-sound (0.4.1)  
windows-api (0.2.4)  
windows-pr (0.9.3)

1. Tried to install rails:

C:\Documents and Settings\MACHINE\_DEV3\My Documents\libs\gems\>gem  
install rails -l  
Successfully installed rake-0.8.7  
Successfully installed activesupport-2.3.4  
Successfully installed activerecord-2.3.4  
Successfully installed rack-1.0.1  
Successfully installed actionpack-2.3.4  
Successfully installed actionmailer-2.3.4  
Successfully installed activeresource-2.3.4  
Successfully installed rails-2.3.4  
8 gems installed  
Installing ri documentation for rake-0.8.7…  
Installing ri documentation for activesupport-2.3.4…  
Installing ri documentation for activerecord-2.3.4…  
Installing ri documentation for rack-1.0.1…  
Installing ri documentation for actionpack-2.3.4…  
Installing ri documentation for actionmailer-2.3.4…  
Installing ri documentation for activeresource-2.3.4…  
Installing ri documentation for rails-2.3.4…  
Installing RDoc documentation for rake-0.8.7…  
Installing RDoc documentation for activesupport-2.3.4…  
Installing RDoc documentation for activerecord-2.3.4…  
Installing RDoc documentation for rack-1.0.1…  
Installing RDoc documentation for actionpack-2.3.4…  
Installing RDoc documentation for actionmailer-2.3.4…  
Installing RDoc documentation for activeresource-2.3.4…  
Installing RDoc documentation for rails-2.3.4…

1. Checked the installed gems:  
C:\Documents and Settings\MACHINE\_DEV3\My Documents\libs\gems\>gem list

\*\*\* LOCAL GEMS \*\*\*

actionmailer (2.3.4)  
actionpack (2.3.4)  
activerecord (2.3.4)  
activeresource (2.3.4)  
activesupport (2.3.4)  
fxri (0.3.6)  
fxruby (1.6.16)  
hpricot (0.6.164)  
log4r (1.0.5)  
ptools (1.1.6)  
rack (1.0.1)  
rails (2.3.4)  
rake (0.8.7, 0.8.1)  
ruby-opengl (0.60.0)  
test-unit (2.0.1)  
win32-api (1.2.1, 1.2.0)  
win32-clipboard (0.4.4)  
win32-dir (0.3.2)  
win32-eventlog (0.5.0)  
win32-file (0.5.5)  
win32-file-stat (1.3.1)  
win32-process (0.5.9)  
win32-sapi (0.1.4)  
win32-sound (0.4.1)  
windows-api (0.2.4)  
windows-pr (0.9.3)

1. Tried to install mogrel gem:

C:\Documents and Settings\MACHINE\_DEV3\My Documents\libs\gems\>gem  
install mongrel -l  
Building native extensions. This could take a while…  
ERROR: Error installing mongrel:  
ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe extconf.rb  
creating Makefile

nmake  
‘nmake’ is not recognized as an internal or external command,  
operable program or batch file.

Gem files will remain installed in  
C:/Ruby/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection.  
Results logged to  
C:/Ruby/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem\_make.out

1. Tried to install mysql gem as follows:

- copied libmySQL.dll into ‘C:\Ruby\bin’
- executed gem install mysql -l

C:\Documents and Settings\MACHINE\_DEV3\My Documents\libs\gems\>gem  
install mysql -l  
Building native extensions. This could take a while…  
ERROR: Error installing mysql:  
ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe extconf.rb  
checking for main() in libmysql.lib… no  
\*\*\* extconf.rb failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

Provided configuration options:  
–with-opt-dir  
–without-opt-dir  
–with-opt-include  
–without-opt-include=${opt-dir}/include  
–with-opt-lib  
–without-opt-lib=${opt-dir}/lib  
–with-make-prog  
–srcdir=.  
–curdir  
–ruby=C:/Ruby/bin/ruby  
–with-mysql-dir  
–without-mysql-dir  
–with-mysql-include  
–without-mysql-include=${mysql-dir}/include  
–with-mysql-lib  
–without-mysql-lib=${mysql-dir}/lib  
–with-libmysqllib  
–without-libmysqllib

Gem files will remain installed in  
C:/Ruby/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.  
Results logged to  
C:/Ruby/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql\_api/gem\_make.out

So no way to install the 2 essential for me gems: mysql and mongrel.  
Does anybody have an idea how to resolve these problems?

Thanks.

---

<div class="post-metadata">

**Author:** ![javix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@javix](https://www.ruby-forum.com/u/javix)\
**Post date:** [August 3, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/cant-install-mongrel-and-my-sql-gem-on-windows-xp-64-bit/192628/2 "2010-08-03T14:16:00Z")

</div>

On Aug 3, 5:31 am, Serguei C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> - net-scp-1.0.2.gem
> - mysql-2.8.1.gem
> 
> …
> 
> So no way to install the 2 essential for me gems: mysql and mongrel.  
> Does anybody have an idea how to resolve these problems?

For you to avoid triggering the gem compilation process, you need to  
download already compiled binaries.

Instead of mysql-2.8.1.gem you need to download mysql-2.8.1-x86-  
mswin32-60.gem

x86-mswin32-60 and x86-mswin32 are the gem platform that identifies  
your Ruby installation.

You can find these gems in the RubyGems website and download from  
there:

[http://rubygems.org/gems/mongrel/versions/1.1.5-x86-mswin32-60](http://rubygems.org/gems/mongrel/versions/1.1.5-x86-mswin32-60)  
[http://rubygems.org/gems/mysql/versions/2.8.1-x86-mswin32](http://rubygems.org/gems/mysql/versions/2.8.1-x86-mswin32)

Please note that you will also need any MySQL 5.0.x, preferable the  
noinstall packages, as you need a 32bits version of libmysql.dll

You can find similar details in the RubyInstaller wiki page:

[http://wiki.github.com/oneclick/rubyinstaller/tutorials](http://wiki.github.com/oneclick/rubyinstaller/tutorials)

HTH,

---

<div class="post-metadata">

**Author:** ![javix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@javix](https://www.ruby-forum.com/u/javix)\
**Post date:** [August 3, 2010, 9:42pm UTC](https://www.ruby-forum.com/t/cant-install-mongrel-and-my-sql-gem-on-windows-xp-64-bit/192628/3 "2010-08-03T21:42:02Z")

</div>

I didn’t find mysql-2.8.1-x86- mswin32-60.gem, just  
mysql-2.8.1-x86-mswin32.gem, is it a typo ?  
Ok for mongrel gem , I’ll try to install them tomorrow and let you know.  
THank you.

---

<div class="post-metadata">

**Author:** ![javix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@javix](https://www.ruby-forum.com/u/javix)\
**Post date:** [August 3, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/cant-install-mongrel-and-my-sql-gem-on-windows-xp-64-bit/192628/4 "2010-08-03T21:55:44Z")

</div>

On Aug 3, 4:42 pm, Serguei C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I didn’t find mysql-2.8.1-x86- mswin32-60.gem, just  
> mysql-2.8.1-x86-mswin32.gem, is it a typo ?

No, some gems do not strict the mswin32 version, x86-mswin32 is  
compatible with x86-mswin32-60

It is safe to download that version.

---

<div class="post-metadata">

**Author:** ![javix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@javix](https://www.ruby-forum.com/u/javix)\
**Post date:** [August 4, 2010, 9:20am UTC](https://www.ruby-forum.com/t/cant-install-mongrel-and-my-sql-gem-on-windows-xp-64-bit/192628/5 "2010-08-04T09:20:42Z")

</div>

Luis L. wrote:

> On Aug 3, 4:42ï¿½pm, Serguei C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > I didn’t find mysql-2.8.1-x86- mswin32-60.gem, just  
> > mysql-2.8.1-x86-mswin32.gem, is it a typo ?
> 
> No, some gems do not strict the mswin32 version, x86-mswin32 is  
> compatible with x86-mswin32-60
> 
> It is safe to download that version.

It works like a charm, THANKS a lot !
