## Ubuntu 10.04.1 LTS spree commerce setup rails 3.0.9 + ruby 1.9.2

cat /etc/issue
Ubuntu 10.04.1 LTS \n \l

## Install ruby for rvm
# aptitude install curl git-core ruby
The following NEW packages will be installed:
libruby1.8{a} ruby ruby1.8{a}

# ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]

# bash < <( curl https://rvm.beginrescueend.com/releases/rvm-install-head )

## edit the .bashrc with lines:

# Replace:
#[ -z “$PS1” ] && return
# With:
if [[ -n “$PS1” ]]; then
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi

fi

# source ~/.bashrc

## export UTF8 lang

# export LANG=en_US.UTF-8

## Install necessary libs and tools

# aptitude install build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim libsqlite3-0 libsqlite3-dev sqlite3 libreadline-dev libxml2-dev git-core subversion autoconf imagemagick libmagickcore-dev libmagickwand-dev

## Install ruby 1.9.2
# rvm install 1.9.2-head

## Set ruby 1.9.2 default
# rvm –default 1.9.2-head
# ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32478) [x86_64-linux]

## Install rails 3.0.9
# gem -v
1.8.6
# gem install rails

## Install spree
# gem install spree

## Install bundler
# gem install bundler

## Create new store
# rails new mystore

## Edit Gemfile
source ‘http://rubygems.org

gem ‘rails’, ‘3.0.9’

# Bundle edge Rails instead:
# gem ‘rails’, :git => ‘git://github.com/rails/rails.git’

gem ‘builder’
gem ‘activemerchant’
gem ‘mysql2’, ‘<0.3’
gem ‘aws-s3’, :require => ‘aws/s3’
gem ‘dynamic_form’
gem ‘heroku’
gem ‘memcache-client’
gem ‘rmagick’
gem ‘jrails’
gem ‘jquery-rails’
# Spree extensions
gem ‘spree’, ‘0.60.1’
# Followed by spree itself first, all spree-specific extensions second
gem ‘spree_active_shipping’, :git => ‘git://github.com/spree/spree_active_shipping.git’
gem ‘spree_product_assembly’, :git => ‘git://github.com/spree/spree-product-assembly.git’
gem ‘spree_static_content’, :git => ‘git://github.com/spree/spree_static_content.git’

# Dev/Test gems
group :development, :test do
gem ‘sqlite3’
gem ‘webrat’
gem ‘cucumber-rails’
gem ‘rspec-rails’
end
# EOF

## Run bundle install
# bundle install

## Initialize database
# rake db:create
rake aborted!
uninitialized constant Deface

(See full trace by running task with –trace)

## Running with trace shows:
# rake db:create –trace
uninitialized constant Deface
/usr/local/rvm/gems/ruby-1.9.2-head/bundler/gems/spree-product-assembly-5a150731393a/lib/spree_product_assembly_hooks.rb:1:in `<top (required)>’
/usr/local/rvm/gems/ruby-1.9.2-head/bundler/gems/spree-product-assembly-5a150731393a/lib/spree_product_assembly.rb:2:in `<top (required)>’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler.rb:120:in `require’
/var/www/cutedress/config/application.rb:7:in `<top (required)>’
/usr/local/rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’
/usr/local/rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’
/var/www/cutedress/Rakefile:4:in `<top (required)>’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load_rakefile’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:495:in `raw_load_rakefile’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:78:in `block in load_rakefile’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:77:in `load_rakefile’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:61:in `block in run’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:59:in `run’
/usr/local/rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/bin/rake:32:in `<top (required)>’
/usr/local/rvm/gems/ruby-1.9.2-head/bin/rake:19:in `load’
/usr/local/rvm/gems/ruby-1.9.2-head/bin/rake:19:in `<main>’

## Running rails g spree:site shows same error
#rails g spree:site
/usr/local/rvm/gems/ruby-1.9.2-head/bundler/gems/spree-product-assembly-5a150731393a/lib/spree_product_assembly_hooks.rb:1:in `<top (required)>’: uninitialized constant Deface (NameError)
from /usr/local/rvm/gems/ruby-1.9.2-head/bundler/gems/spree-product-assembly-5a150731393a/lib/spree_product_assembly.rb:2:in `<top (required)>’
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require’
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require’
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each’
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require’
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each’
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require’
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.15/lib/bundler.rb:120:in `require’
from /var/www/cutedress/config/application.rb:7:in `<top (required)>’
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/railties-3.0.9/lib/rails/commands.rb:15:in `require’
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/railties-3.0.9/lib/rails/commands.rb:15:in `<top (required)>’
from script/rails:6:in `require’
from script/rails:6:in `<main>’

## Full gemlist

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.9)
actionpack (3.0.9)
active_shipping (0.9.13)
activemerchant (1.15.0)
activemodel (3.0.9)
activerecord (3.0.9)
activeresource (3.0.9)
activesupport (3.0.9)
acts_as_list (0.1.2)
addressable (2.2.6)
arel (2.0.10)
aws-s3 (0.6.2)
bcrypt-ruby (2.1.4)
braintree (2.10.1)
builder (2.1.2)
bundler (1.0.15)
cancan (1.6.4)
capybara (1.0.0)
childprocess (0.2.0)
cocaine (0.1.0)
cucumber (1.0.2)
cucumber-rails (1.0.2)
devise (1.3.3)
diff-lcs (1.1.2)
dynamic_form (1.1.4)
erubis (2.6.6)
faker (0.9.5)
ffi (1.0.9)
formtastic (1.2.4)
gherkin (2.4.5)
heroku (2.4.0)
highline (1.5.1)
i18n (0.5.0)
jquery-rails (0.2.6)
jrails (0.6.0)
json (1.5.3)
json_pure (1.5.3)
launchy (2.0.5)
mail (2.2.19)
memcache-client (1.8.5)
meta_search (1.0.5)
mime-types (1.16)
mysql (2.8.1)
mysql2 (0.2.11)
nested_set (1.6.6)
nokogiri (1.5.0)
orm_adapter (0.0.5)
paperclip (2.3.16, 2.3.11)
polyglot (0.3.2)
rack (1.2.3)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.9)
railties (3.0.9)
rake (0.9.2, 0.8.7 ruby)
rd_find_by_param (0.1.1)
rd_resource_controller (1.0.1)
rd_unobtrusive_date_picker (0.1.0)
rdoc (3.8)
rest-client (1.6.3)
rmagick (2.13.1)
rspec (2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
rspec-mocks (2.6.0)
rspec-rails (2.6.1)
rubyzip (0.9.4)
selenium-webdriver (0.2.2)
spree (0.60.1)
spree_api (0.60.1)
spree_auth (0.60.1)
spree_core (0.60.1)
spree_dash (0.60.1)
spree_editor (0.50.1)
spree_promo (0.60.1)
spree_sample (0.60.1)
sqlite3 (1.3.4)
state_machine (0.9.4)
stringex (1.0.3)
term-ansicolor (1.0.6)
thor (0.14.6)
treetop (1.4.10)
tzinfo (0.3.29)
warden (1.0.5)
webrat (0.7.3)
will_paginate (3.0.pre2)
xml-simple (1.1.0)
xpath (0.1.4)

Advertisements