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

Discussion in 'Ruby' started by Serguei Cambour, Aug 3, 2010.

  1. 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/.
     
    Serguei Cambour, Aug 3, 2010
    #1
    1. Advertising

  2. Serguei Cambour

    Luis Lavena Guest

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

    On Aug 3, 5:31 am, Serguei Cambour <> 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/versions/1.1.5-x86-mswin32-60
    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

    HTH,
    --
    Luis Lavena
     
    Luis Lavena, Aug 3, 2010
    #2
    1. Advertising

  3. Re: Can't install Mongrel and My SQL gem on Windows XP 64 bit

    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/.
     
    Serguei Cambour, Aug 3, 2010
    #3
  4. Serguei Cambour

    Luis Lavena Guest

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

    On Aug 3, 4:42 pm, Serguei Cambour <> 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
     
    Luis Lavena, Aug 3, 2010
    #4
  5. Re: Can't install Mongrel and My SQL gem on Windows XP 64 bit

    Luis Lavena wrote:
    > On Aug 3, 4:42�pm, Serguei Cambour <> 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/.
     
    Serguei Cambour, Aug 4, 2010
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Zed Shaw
    Replies:
    3
    Views:
    228
    Zed Shaw
    Apr 5, 2006
  2. Zed Shaw
    Replies:
    8
    Views:
    167
    Zed Shaw
    Apr 5, 2006
  3. Li Yu
    Replies:
    1
    Views:
    217
    Luis Lavena
    Dec 29, 2007
  4. rabarama
    Replies:
    1
    Views:
    154
    Luis Lavena
    Dec 15, 2009
  5. Replies:
    11
    Views:
    364
    Jukka Lahtinen
    Jul 5, 2013
Loading...

Share This Page