Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm going to assume that you're new to Ruby as well, just in case doing so can help others who need this answered. Please don't take offense.</p> <p>It looks like your installation of Ruby is out of date or broken. Mac OSX comes with a default Ruby installed, but I honestly have no idea if it's complete or out of date because I always install my own.</p> <h1>Getting a Build Environment Ready</h1> <p>By default, MacOSX does not have the capacity to build C applications, which is what the "standard" ruby runtime is. So, you need to install a C building toolchain, which in many cases is GCC &amp; friends.</p> <h2>Without XCode Installed</h2> <ol> <li>Find the "<em>Additional Developer Tools</em>" link on the <a href="https://developer.apple.com/xcode/" rel="nofollow">XCode product page</a></li> <li>Click it</li> <li>Find and install the "<em>Command Line Tools</em>" for your version of OSX</li> </ol> <h2>With XCode Installed</h2> <ol> <li>Open XCode</li> <li>Open the Downloads preferences pane</li> <li>Find the "<em>Command Line Tools</em>" and install them</li> </ol> <p>Once you've installed them, close any open terminal windows before proceeding to ensure that the build tools are in your path.</p> <h1>Installing Ruby</h1> <p>There are a few ways to get Ruby going on a new linux system, but the most widely recommended one is to use <strong>rvm</strong>.</p> <p>RVM is a tool which helps install and manage different Ruby environments, so you can easily switch between them and upgrade (or downgrade for a specific project or issue). <a href="https://rvm.io/rvm/install/" rel="nofollow">It's found here (direct link to the installation instructions)</a> You most likely want to do the first of the Quick guided installs, which will simply install it for your user. It'll also install the latest stable version of ruby.</p> <p>There is a GUI for installing RVM, called <a href="http://unfiniti.com/software/mac/jewelrybox" rel="nofollow">JewelleryBox</a>. It's fairly pretty and will notify you when there's new versions.</p> <p>Once the app itself is installed:</p> <ol> <li>Click Add Ruby in the toolbar</li> <li>Choose a Ruby version. MRI is the "Official" ruby... It's the one which kicked everything off. For now, the latest stable is ruby-1.9.3-p327, so pick that one ;)</li> <li>Make sure the <em>make default</em> checkbox is ticked, then hit the "Install" button.</li> <li>Hopefully everything worked!</li> </ol> <h1>Installing Rails</h1> <p>Ruby's almost ubiquitous means of fetching libraries, including Rails, is with rubygems and the <code>gem</code> command. In this case, <code>gem install rails</code> should get you started. Oh, and make sure you open a new terminal window after installing a new ruby, and check it's installed with <code>ruby -v</code>.</p> <h1>Another nice thing</h1> <p>Bundler is a neat package manager built on top of rubygems. Install it with <code>gem install bundle</code> (oh, and Rails will install it as a dependancy). Its got its docs at <a href="http://gembundler.com/" rel="nofollow">this link</a> but for basic, raw rails, you shouldn't need to do anything with it.</p> <h1>Good Luck</h1> <p>Have a blast learning Rails, I hope you find it makes webapp development more fun for you ^_^</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload