SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    NC
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems installing ruby

    Hello,

    I followed this tutorial and installed ruby successfully on my windows
    XP machine:

    http://mpcon.org/apacheguide/ruby.php

    Then I tried to install the mysql module for ruby and read a forum post
    which suggested getting rubygems which I installed from here
    http://rubyforge.org/projects/rubygems/

    I then command lined this run "ruby setup.rb", then run "gem install
    mysql"

    Which gave me these 4 options on which mysql packages to install

    1. mysql 2.7.1 (mswin32)
    2. mysql 2.7 (ruby)
    3. mysql 2.6 (ruby)
    4. mysql 2.5.1 (ruby)
    5. Cancel installation

    after I did that, I tried to test my Ruby insallation by going here:
    http://localhost:3000/ and suddenly I get a refused connection.

    I'm not sure of any other way I could test if the installation went
    wrong or how I could reinstall it (which I've already tried once) and it
    now doesn't work.

    Thanks,
    Clem C

  2. #2
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should:

    1) install rails (gem install rails)
    2) create a project (rails the/dir/of/your/project)
    3) start the server (ruby the/dir/of/your/project/script/server)

    Now you should be able to view the rails welcome page: localhost:3000/.

    You can test the mysql bindings this way:

    1) start mysql
    2) create a mysql database + a table
    3) edit the/dir/of/your/project/config/database.yml
    4) restart the server
    5) create a model for your table
    6) test the model


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
  •