Created
September 15, 2010 11:57
-
-
Save pjb3/580626 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just in case you still think bundle sucks, consider the alternative | |
This is me getting my blog, a very small Rails 2.3 app with only a few dependencies, | |
Up and running on my local machine | |
PAINFUL! | |
~/dev $ git clone paulbarry.com:paulbarry.git | |
Cloning into paulbarry... | |
remote: Counting objects: 1408, done. | |
remote: Compressing objects: 100% (1071/1071), done. | |
remote: Total 1408 (delta 274), reused 1285 (delta 207) | |
Receiving objects: 100% (1408/1408), 693.59 KiB | 220 KiB/s, done. | |
Resolving deltas: 100% (274/274), done. | |
~/dev $ cd paulbarry/ | |
~/dev/paulbarry[master] $ scp paulbarry.com:paulbarry.sql.gz . | |
paulbarry.sql.gz 100% 486KB 161.9KB/s 00:03 | |
~/dev/paulbarry[master] $ mysqladmin -u root drop paulbarry_development | |
Dropping the database is potentially a very bad thing to do. | |
Any data stored in the database will be destroyed. | |
Do you really want to drop the 'paulbarry_development' database [y/N] y | |
Database "paulbarry_development" dropped | |
~/dev/paulbarry[master] $ mysqladmin -u root create paulbarry_development | |
~/dev/paulbarry[master] $ gunzip paulbarry.sql.gz | |
~/dev/paulbarry[master] $ mysql -u root -D paulbarry_development < paulbarry.sql | |
~/dev/paulbarry[master] $ rvm use 1.9.2 | |
info: Using ruby 1.9.2 p0 | |
ruby-1.9.2-p0 ~/dev/paulbarry[master] $ vim .rvmrc | |
ruby-1.9.2-p0 ~/dev/paulbarry[master] $ rvm gemset create paulbarry | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ cd .. | |
info: Now using system ruby. | |
~/dev $ cd paulbarry/ | |
============================================================ | |
RVM has encountered a not yet trusted .rvmrc file in the | |
current working directory which contains the following code: | |
============================================================ | |
rvm use 1.9.2@paulbarry | |
============================================================ | |
Trusting an .rvmrc file means that whenever you cd into the | |
directory RVM will excecute this .rvmrc script in your shell | |
Do you wish to trust this .rvmrc from now on? | |
============================================================ | |
(y for yes, n for no) > y | |
info: Using ruby 1.9.2 p0 with gemset paulbarry | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ rake gems | |
(in /Users/paul/dev/paulbarry) | |
Missing the Rails 2.3.3 gem. Please `gem install -v=2.3.3 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ gem install -v 2.3.3 rails | |
Successfully installed rake-0.8.7 | |
Successfully installed activesupport-2.3.3 | |
Successfully installed activerecord-2.3.3 | |
Successfully installed rack-1.0.1 | |
Successfully installed actionpack-2.3.3 | |
Successfully installed actionmailer-2.3.3 | |
Successfully installed activeresource-2.3.3 | |
Successfully installed rails-2.3.3 | |
8 gems installed | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ rake gems | |
(in /Users/paul/dev/paulbarry) | |
rake aborted! | |
Could not find RubyGem test-unit (= 1.2.3) | |
/Users/paul/dev/paulbarry/Rakefile:10:in `<top (required)>' | |
(See full trace by running task with --trace) | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ gem install -v 1.2.3 test-unit | |
Successfully installed json_pure-1.4.6 | |
Successfully installed rubyforge-2.0.4 | |
Successfully installed hoe-2.6.2 | |
Successfully installed test-unit-1.2.3 | |
4 gems installed | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ rake gems | |
(in /Users/paul/dev/paulbarry) | |
rake aborted! | |
no such file to load -- haml | |
(See full trace by running task with --trace) | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ gem install haml | |
Successfully installed haml-3.0.18 | |
1 gem installed | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ rake gems | |
(in /Users/paul/dev/paulbarry) | |
- [ ] mislav-will_paginate | |
- [ ] rdiscount | |
- [ ] uuidtools = 1.0.7 | |
I = Installed | |
F = Frozen | |
R = Framework (loaded before rails starts) | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ rake gems:install | |
(in /Users/paul/dev/paulbarry) | |
gem install mislav-will_paginate --source http://gems.github.com | |
Successfully installed mislav-will_paginate-2.3.11 | |
1 gem installed | |
gem install rdiscount | |
Building native extensions. This could take a while... | |
Successfully installed rdiscount-1.6.5 | |
1 gem installed | |
gem install uuidtools --version "= 1.0.7" | |
Successfully installed uuidtools-1.0.7 | |
1 gem installed | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ rake gems:install RAILS_ENV=test | |
(in /Users/paul/dev/paulbarry) | |
gem install thoughtbot-factory_girl --source http://gems.github.com | |
Successfully installed thoughtbot-factory_girl-1.2.2 | |
1 gem installed | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ gem list | |
*** LOCAL GEMS *** | |
actionmailer (2.3.3) | |
actionpack (2.3.3) | |
activerecord (2.3.3) | |
activeresource (2.3.3) | |
activesupport (2.3.3) | |
haml (3.0.18) | |
hoe (2.6.2) | |
json_pure (1.4.6) | |
mislav-will_paginate (2.3.11) | |
rack (1.0.1) | |
rails (2.3.3) | |
rake (0.8.7) | |
rdiscount (1.6.5) | |
rubyforge (2.0.4) | |
test-unit (1.2.3) | |
thoughtbot-factory_girl (1.2.2) | |
uuidtools (1.0.7) | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ script/server | |
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- script/../config/boot (LoadError) | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from script/server:2:in `<main>' | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ vim script/server | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ vim script/server | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ script/server | |
=> Booting WEBrick | |
=> Rails 2.3.3 application starting on http://0.0.0.0:3000 | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rails-2.3.3/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
[2010-09-15 07:50:07] INFO WEBrick 1.3.1 | |
[2010-09-15 07:50:07] INFO ruby 1.9.2 (2010-08-18) [x86_64-darwin10.4.0] | |
[2010-09-15 07:50:07] INFO WEBrick::HTTPServer#start: pid=51757 port=3000 | |
^C[2010-09-15 07:50:09] INFO going to shutdown ... | |
[2010-09-15 07:50:09] INFO WEBrick::HTTPServer#start done. | |
Exiting | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ gem install mongrel --pre | |
Building native extensions. This could take a while... | |
Successfully installed gem_plugin-0.2.3 | |
Successfully installed daemons-1.0.10 | |
Successfully installed mongrel-1.2.0.pre2 | |
3 gems installed | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ script/server | |
=> Booting Mongrel | |
=> Rails 2.3.3 application starting on http://0.0.0.0:3000 | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rails-2.3.3/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. | |
/!\ FAILSAFE /!\ 2010-09-15 07:51:26 -0400 | |
Status: 500 Internal Server Error | |
no such file to load -- mysql | |
<internal:lib/rubygems/custom_require>:29:in `require' | |
<internal:lib/rubygems/custom_require>:29:in `require' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in `block in require' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:521:in `new_constants_in' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in `require' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activesupport-2.3.3/lib/active_support/core_ext/kernel/requires.rb:7:in `block in require_library_or_gem' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activesupport-2.3.3/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activesupport-2.3.3/lib/active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/mysql_adapter.rb:65:in `mysql_connection' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `block (2 levels) in checkout' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `block in checkout' | |
/Users/paul/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9:in `cache' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/haml-3.0.18/lib/sass/plugin/rack.rb:41:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rack-1.0.1/lib/rack/head.rb:9:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/actionpack-2.3.3/lib/action_controller/session/cookie_store.rb:93:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/actionpack-2.3.3/lib/action_controller/reloader.rb:29:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rack-1.0.1/lib/rack/lock.rb:11:in `block in call' | |
<internal:prelude>:10:in `synchronize' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rails-2.3.3/lib/rails/rack/static.rb:31:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `block in call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rails-2.3.3/lib/rails/rack/log_tailer.rb:17:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rack-1.0.1/lib/rack/content_length.rb:13:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rack-1.0.1/lib/rack/chunked.rb:15:in `call' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:64:in `process' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:165:in `block in process_client' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:164:in `each' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:164:in `process_client' | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:291:in `block (2 levels) in run' | |
^CExiting | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ gem install mysql | |
Building native extensions. This could take a while... | |
Successfully installed mysql-2.8.1 | |
1 gem installed | |
ruby-1.9.2-p0@paulbarry ~/dev/paulbarry[master] $ script/server | |
=> Booting Mongrel | |
=> Rails 2.3.3 application starting on http://0.0.0.0:3000 | |
/Users/paul/.rvm/gems/ruby-1.9.2-p0@paulbarry/gems/rails-2.3.3/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment