Go Back   CodingForums.com > :: Server side development > Ruby & Ruby On Rails

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-22-2012, 11:45 PM   PM User | #1
Keleth
Senior Coder

 
Join Date: Jun 2008
Location: New Jersey
Posts: 2,354
Thanks: 45
Thanked 247 Times in 244 Posts
Keleth is on a distinguished road
New to Ruby, need install advice

I'm hoping I can get some advice on Ruby installs, as I sit a bit confused at this point.

I've decided to learn Ruby to increased my job potential/value, and because I've heard Ruby/Python (both of which I intend to learn) can do a lot of fun stuff that languages like PHP cannot. To that extent, I decided to start with Ruby, and am trying to install Ruby locally.

I already have WAMP installed, to run my PHP/MySQL, and I'm trying to figure out how to install Ruby to work with my WAMP.

So first... is this a situation of making Ruby work "with" WAMP? Or is it just concurrent? I presume that Ruby requires a software like Apache, so it should make sense to install Ruby to work with my WAMP server, correct?

Next, if the first step is correct, does anyone have any experience installing Ruby with WAMP? I've tried googling for results, but I've only come across articles that are years old, using softwares that the sites they're hosted on openly state are outdated. The closest I've come to "modern" (or not mattering to time) is from http://stackoverflow.com/questions/2...ide-wampserver but it requires "Mongrel", which I don't quite understand. It also seems to indicate I need to create a new port forwarding for every Ruby app I write? Is this a limitation of this install method, or of Ruby? It seems inefficient when you consider in comparison you can run any PHP app straight from a folder.

And any advice to getting started with Ruby/Rails and any book recommendations would of course, not go unappreciated. Compared to starting PHP, C++, or Java, I feel lost getting started with Ruby, and I can't tell if its because I'm over thinking it, or I've missed something entirely.
Keleth is offline   Reply With Quote
Old 06-01-2012, 09:46 AM   PM User | #2
kaizenfury7
New to the CF scene

 
Join Date: May 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
kaizenfury7 is an unknown quantity at this point
I would recommend just using the windows installer found on the official Rails web site:
http://rubyonrails.org/download

You may want to just start off using the Rails defaults. Rails comes with with the WEBrick web server, so you can just use that. No configuration needed. You can also just install SQLite and use that as the database. It's definitely not as sophisticated as MySQL, but if you just want to learn Ruby on Rails, SQLite is good enough for that purpose.

You can download the precompiled binary here:
http://www.sqlite.org/download.html

I then use the Firefox extension SQLite Manager to manage the database (it's as simple as just opening up the development.sqlite DB file)

I tried to work with Ruby on Rails on Windows for about 3 years, but I ended up using VirtualBox to set up an Ubuntu installation for all my Rails work, and then bought a MacBook Air. The reason is that there's not as much documentation when something isn't working on Windows. In addition, gems sometimes have dependencies for libraries or software that just aren't available for Windows.

Hope this helps a bit.
kaizenfury7 is offline   Reply With Quote
Old 07-05-2012, 03:27 AM   PM User | #3
LMHmedchem
New to the CF scene

 
Join Date: Jun 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
LMHmedchem is an unknown quantity at this point
I use cygwin for all of these windows applications. In cygwin, I have ruby, python, perl, sed, grep, awk, and all the other unix goodies. You also are working out of bash/mintty for a shell, which totally blows away doing things in the windows shell. If you read my other thread, cygwin is not problem free, but there is a good support group. You also learn linux while using it, which is an added bonus. If you read my other thread, there are instructions for getting ruby going with SQLite3. Cygwin also has mySQL as well as SQLite and some other database utilities, as well as the full set of gnu programming compilers and tons of other stuff.

LMHmedchem
LMHmedchem is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 05:41 AM.


Advertisement
Log in to turn off these ads.