Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, I hesitated to use <code>rvm</code> as it seemed to be aimed at solving problems I didn't intend to have (multiple ruby versions? c'mon, I just want to play with rails...) and installing from source is generally something I want to avoid...</p> <p>Anyway, I gave in and followed along with <a href="http://rvm.beginrescueend.com/rvm/install/" rel="noreferrer">http://rvm.beginrescueend.com/rvm/install/</a></p> <pre><code>$ bash &lt; &lt;( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) </code></pre> <p>Then (mostly suggested by the output of the above, but I needed to add <code>libmysqlclient-dev</code>):</p> <pre><code>$ sudo aptitude install build-essential bison openssl libreadline5 \ libreadline5-dev curl git zlib1g zlib1g-dev \ libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 \ libxml2-dev libmysqlclient-dev </code></pre> <p>Then I edited my <code>.bashrc</code> as required and opened a new terminal.</p> <pre><code>$ rvm install 1.9.2 $ rvm --default use 1.9.2 $ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux] $ gem install rails $ rails -v Rails 3.0.1 </code></pre> <p>After creating a new project, I still had a few things to do to make it work:</p> <pre><code>$ rails new myproject --database=mysql $ cd myproject $ emacs config/database.yml # set passwords $ bundle install $ rake db:create $ rails server </code></pre> <p>And finally it all seems to be working. I hope that helps someone else, it certainly wasn't a particularly pleasant intro to a framework. I've reordered the commands I actually entered to avoid double handling for anyone following along.</p>
    singulars
    1. This table or related slice is empty.
    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