Moving to Rails 3.1 beta (19 apr 11)
It's ******g hard.
#!/bin/sh # The Rails 3.1 beta environment # This is what worked for me (on Ubuntu Linux 10.10 64 bit) - your mileage may vary # Before running the script, install rvm: # sudo apt-get install curl # bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) # Then
sudo apt-get install g++ sudo apt-get install zlib1g-dev
sudo apt-get install ruby1.8-dev
sudo apt-get install rubygems1.9.1
rvm package install zlib rvm package install readline sudo apt-get install libsqlite3-dev
rvm package install openssl rvm package install iconv rvm install 1.9.2-p0 rvm use 1.9.2-p0
gem install bundler sudo apt-get install git sudo apt-get install libxslt-dev sudp apt-get install libxml2-dev gem install ruby_core_source
if [ -d rails ] ; then rm -Rf rails fi git clone git://github.com/rails/rails.git cd rails bundle gem install i18n gem install thor
rvm gemset create rails31b rvm use 1.9.2-p0@rails31b
gem install postgres sudo apt-get install libdbd-pg-ruby gem install postgres-pr sudo apt-get install postgresql-server-dev-8.4 gem install pg
for dir in activesupport activemodel actionpack actionmailer activerecord activeresource railties ; do echo $dir cd $dir gem build *.gemspec ; gem install *.gem cd .. done gem build rails.gemspec gem install rails-3.1.0.beta.gem bundle install
git clone git://github.com/Satish/restful-authentication.git restful-authentication cd restful-authentication gem build *.gemspec ; gem install *.gem # rails g authenticated user sessions --include-activation --stateful --rspec --skip-migration --skip-routes--old-passwords # didn't work
rails new app
cd app # I removed all lines referring to ruby-debug in the Gemfile, and did this gem install ruby-debug19
# My Gemfile looks like this:
source 'http://rubygems.org'
gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'rack', :git => 'git://github.com/rack/rack.git'
gem 'pg', '~>0.11' gem 'arel', :git => "git://github.com/rails/arel.git"
gem 'barista' gem 'therubyracer' gem 'jquery-rails', '>=0.2.6'
gem 'logging'
group :development, :test do gem 'rspec-rails' gem 'capybara' gem 'factory_girl_rails' end gem 'awesome_print'
# Now... rails server &
# Point Firefox at http://localhost:3000
# Fingers crossed...
On a related note, here's someone trying to make Ruby on Rails talk to a Postgresql database server:
http://joshkim.org/2008/10/26/postgresql-ruby-and-rails-i-quit/
'“Ruby-pg” is the project name. They maintain two modules, “pg” and “postgres”, even though the packages themselves are called “ruby-pg” and “ruby-postgres”. ARGH.'
Isn't it obvious? The name of the project is called Ruby-pg. The name of the project IS pg. The project is called ruby-postgres. The project IS postgres.
`"Oh, that's the name of the song, is it?" Alice said, trying to feel interested`...
http://www.alice-in-wonderland.net/school/alice1020.html
Back
Portland |
|
London |
|