Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Can't install Mongrel and My SQL gem on Windows XP 64 bit

Reply
Thread Tools

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

 
 
Serguei Cambour
Guest
Posts: n/a
 
      08-03-2010
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]

2. 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

3. 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)

4. 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...

5. 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)

6. 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

7. 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.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Luis Lavena
Guest
Posts: n/a
 
      08-03-2010
On Aug 3, 5:31*am, Serguei Cambour <(E-Mail Removed)> wrote:
> 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
>
> ...
>
> 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/ver...x86-mswin32-60
http://rubygems.org/gems/mysql/versi....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

HTH,
--
Luis Lavena
 
Reply With Quote
 
 
 
 
Serguei Cambour
Guest
Posts: n/a
 
      08-03-2010
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.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Luis Lavena
Guest
Posts: n/a
 
      08-03-2010
On Aug 3, 4:42*pm, Serguei Cambour <(E-Mail Removed)> 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.

--
Luis Lavena
 
Reply With Quote
 
Serguei Cambour
Guest
Posts: n/a
 
      08-04-2010
Luis Lavena wrote:
> On Aug 3, 4:42�pm, Serguei Cambour <(E-Mail Removed)> 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 !

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mongrel service vs mongrel in command shell rabarama Ruby 1 12-15-2009 12:46 PM
[ANN] Mongrel Web Server 0.3.12.2 -- Iron Mongrel (Parser Fix) Zed Shaw Ruby 8 04-05-2006 06:32 AM
Mongrel Web Server 0.3.12.1 -- Iron Mongrel Zed Shaw Ruby 3 04-05-2006 06:31 AM
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! vvcd Computer Support 0 09-17-2004 08:15 PM
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit,Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new! Ionizer Computer Support 1 01-01-2004 07:27 PM



Advertisments