SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems with installing Ruby on Xp

    Hi

    I am new to ruby. I have installed Ruby on Rails on my XP but its failing on the last step of updating rails.

    When I type: gem update

    I get the following message:

    Updating installed gems
    Updating hpricot
    Building native extensions. This could take a while...
    ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

    C:/InstantRails-2.0-win/ruby/bin/ruby.exe extconf.rb update
    checking for stdio.h... 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:/InstantRails-2.0-win/ruby/bin/ruby


    Gem files will remain installed in C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.
    8/gems/hpricot-0.6.161 for inspection.
    Results logged to C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/hpricot-0.
    6.161/ext/fast_xs/gem_make.out

    --------------------------------------------------------------------------

    anyone pls help

  2. #2
    SitePoint Addict ruby-lang's Avatar
    Join Date
    Aug 2007
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's strange, hpricot should have been updated from the pre-compiled Win32 gem. You can try three things:

    Run gem update --system before your gem update. It may be a problem with gem itself.

    Run gem update rails to update only Rails-related gems.

    BTW, I suggest you run gem clean after updating to remove the old gems and prevent conflicts.

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    I ran the commands as you suggested. But when I run "gem update" I still get that message

    Any ideas?

    Shall I unstall the entire thing and run it again? If so is there a procedure for this?

    Regards

    Explorer

  4. #4
    SitePoint Evangelist
    Join Date
    Feb 2006
    Location
    Worcs. UK
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by explorer07 View Post
    Shall I unstall the entire thing and run it again? If so is there a procedure for this?
    If you reinstall, I would strongly advise that you do not use InstantRails. InstandRails is fine if you just want a quick look at Rails, but isn't so great for more long term use. Also Rails is very easy to install on XP without using InstantRails.

    I'd recommend:
    1. Install Ruby using the one-click Ruby installer ensuring you keep selected the option to include Gems support.
    2. At a command prompt enter gem install rails --include-dependencies and this will install Rails for you.
    3. Then download MySQL server and install it.


    You'll then be ready to rock.

    A couple of optional apps to install are:

    MySQL GUI Tools
    These works very well on XP (not so well in Linux) and form the easiest way to manage your MySQL database. They can be donwload from here:

    http://dev.mysql.com/downloads/gui-tools/5.0.html

    Netbeans Ruby IDE
    This is the best Ruby/Rails IDE available at the moment IMO and works a treat on XP

    http://download.netbeans.org/netbeans/6.1/final/

    Subversion version control
    The simplest way to keep track of and backup your development.
    Core services are avialable here:

    http://subversion.tigris.org/

    With documentation here:

    http://svnbook.red-bean.com/

    And the superb TortoiseSVN works a treat on XP and makes using Subversion very easy.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •