Rails 3.0.0.beta install

Installed Rails 3.0.0.beta on my test machine. Here’s a few notes on what was easy, what was not.

My test machine uses Debian squeeze (testing), ruby 1.9.1 and rubygems 1.3.5. You need to have ruby 1.8.7 or newer. Ruby 1.8.6 will not work.

To find out what version of ruby you have, enter: ruby -v.

For a full rubygems environment listing, enter: gem env

To find out what paths ruby is looking for, enter: irb

followed by: puts $LOAD_PATH

My first attempt in installing Rails 3 failed, with this error message:

sudo gem install rails –pre
ERROR:  Error installing rails:
actionpack requires rack-mount (~> 0.4.0, runtime)

So, I get to go a bit deeper:

sudo gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
sudo gem install rack-mount –version 0.4.0
sudo gem install rails –pre

But this isn’t enough to create a new project. So:

sudo gem install abstract
rails rubyat.com -d mysql

Now, there’s still more to be done in order to use rails console:

sudo apt-get install libmysql-ruby1.9
sudo apt-get install libmysqlclient-dev
sudo gem install mysql — –with-mysql-dir=/usr/bin –with-mysql-lib=/usr/lib/mysql
sudo gem install mime-types
sudo gem install text-hyphen

Finally, enter: rails console and we have the familiar irb console.

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>