rails:~# LC_ALL=C aptitude install rails
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
The following NEW packages will be installed:
irb{a} irb1.8{a} javascript-common{a} libbreakpoint-ruby1.8{a} libbuilder-ruby1.8{a} libcmdparse2-ruby1.8{a}
libdaemons-ruby1.8{a} liberb-ruby{a} libjs-prototype{a} liblog4r-ruby1.8{a} libmmap-ruby1.8{a} libmocha-ruby1.8{a}
libncurses-ruby1.8{a} libopenssl-ruby1.8{a} libreadline-ruby1.8{a} libredcloth-ruby1.8{a} libruby{a} libruby1.8{a}
libruby1.8-extras{a} libsqlite3-ruby1.8{a} libxml-simple-ruby{a} rails rake{a} rdoc{a} rdoc1.8{a} ruby{a} ruby1.8{a}
rubygems1.8{a} unzip{a} wwwconfig-common{a} zip{a}
0 packages upgraded, 31 newly installed, 0 to remove and 0 not upgraded.
Need to get 6742kB of archives. After unpacking 39.6MB will be used.
Do you want to continue? [Y/n/?] y
rails:~# LC_ALL=C wget -S http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
--2009-02-16 12:46:14-- http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
Resolving rubyforge.org... 205.234.109.19
Connecting to rubyforge.org|205.234.109.19|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 302 Found
Date: Mon, 16 Feb 2009 12:46:14 GMT
Server: Apache
X-Powered-By: PHP/4.4.9
Location: http://files.rubyforge.mmmultiworks.com/rubygems/rubygems-1.3.1.tgz
Vary: Accept-Encoding
Content-Length: 0
Keep-Alive: timeout=3, max=100
Connection: Keep-Alive
Content-Type: text/html
Location: http://files.rubyforge.mmmultiworks.com/rubygems/rubygems-1.3.1.tgz [following]
--2009-02-16 12:46:15-- http://files.rubyforge.mmmultiworks.com/rubygems/rubygems-1.3.1.tgz
Resolving files.rubyforge.mmmultiworks.com... 216.243.185.119
Connecting to files.rubyforge.mmmultiworks.com|216.243.185.119|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Wed, 07 Jan 2009 12:06:48 GMT
Server: Apache/2.2.2 (Unix) DAV/2 SVN/1.3.2 mod_ssl/2.2.2 OpenSSL/0.9.7j
Last-Modified: Wed, 29 Oct 2008 00:28:23 GMT
ETag: "50b49-40644-45a59711a97c0"
Accept-Ranges: bytes
Content-Length: 263748
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/x-gzip
Length: 263748 (258K) [application/x-gzip]
Saving to: `rubygems-1.3.1.tgz'
100%[=================================================================================>] 263,748 102K/s in 2.5s
2009-02-16 12:46:19 (102 KB/s) - `rubygems-1.3.1.tgz' saved [263748/263748]
rails:~# tar xzf rubygems-1.3.1.tgz
rails:~# cd rubygems-1.3.1
rails:~/rubygems-1.3.1# ruby setup.rb
...
= Announce: RubyGems Release 1.3.0
NOTE: RubyGems 1.1 and 1.2 have problems upgrading when there is no
rubygems-update installed. You will need to follow the second set of update
instructions if you see "Nothing to update".
Release 1.3.0 fixes some bugs.
Bugs fixed:
* Disregard ownership of ~ under Windows while creating ~/.gem. Fixes
issues related to no uid support under Windows.
* Fix requires for Gem::inflate, Gem::deflate, etc.
* Make Gem.dir respect :gemhome value from config. (Note: this feature may be
removed since it is hard to implement on 1.9.)
* Kernel methods are now private. Patch #20801 by Stefan Rusterholz.
* Gem::location_of_caller now behaves on Windows. Patch by Daniel Berger.
* Silence PATH warning.
Deprecation Notices:
* Gem::manage_gems will be removed on or after March 2009.
For a full list of changes to RubyGems and the contributor for each change, see
the ChangeLog file.
Special thanks to Chad Wooley for backwards compatibility testing and Luis
Lavena for continuing windows support.
== How can I get RubyGems?
NOTE: If you have installed RubyGems using a package system you may want to
install a new RubyGems through the same packaging system.
If you have a recent version of RubyGems (0.8.5 or later), then all
you need to do is:
$ gem update --system (you might need to be admin/root)
NOTE: RubyGems 1.1 and 1.2 have problems upgrading when there is no
rubygems-update installed. You will need to follow the second set of update
instructions if you see "Nothing to update".
NOTE: You may have to run the command twice if you have any previosly
installed rubygems-update gems.
If you have an older version of RubyGems installed, then you can still
do it in two steps:
$ gem install rubygems-update (again, might need to be admin/root)
$ update_rubygems (... here too)
If you don't have any gems install, there is still the pre-gem
approach to getting software ... doing it manually:
1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126
2. UNPACK INTO A DIRECTORY AND CD THERE
3. INSTALL WITH: ruby setup.rb (you may need admin/root privilege)
== To File Bugs
The RubyGems bug tracker can be found on RubyForge at:
http://rubyforge.org/tracker/?func=add&group_id=126&atid=575
When filing a bug, `gem env` output will be helpful in diagnosing the issue.
If you find a bug where RubyGems crashes, please provide debug output. You can
do that with `gem --debug the_command`.
== Thanks
Keep those gems coming!
-- Jim & Chad & Eric (for the RubyGems team)
------------------------------------------------------------------------------
RubyGems installed the following executables:
/usr/bin/gem1.8
If `gem` was installed by a previous RubyGems installation, you may need
to remove it by hand.
rails:~/rubygems-1.3.1# gem install rails --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Successfully installed rake-0.8.3
Successfully installed activesupport-2.2.2
Successfully installed activerecord-2.2.2
Successfully installed actionpack-2.2.2
Successfully installed actionmailer-2.2.2
Successfully installed activeresource-2.2.2
Successfully installed rails-2.2.2
7 gems installed
Installing ri documentation for rake-0.8.3...
Installing ri documentation for activesupport-2.2.2...
Installing ri documentation for activerecord-2.2.2...
Installing ri documentation for actionpack-2.2.2...
Installing ri documentation for actionmailer-2.2.2...
Installing ri documentation for activeresource-2.2.2...
Installing RDoc documentation for rake-0.8.3...
Installing RDoc documentation for activesupport-2.2.2...
Installing RDoc documentation for activerecord-2.2.2...
Installing RDoc documentation for actionpack-2.2.2...
Installing RDoc documentation for actionmailer-2.2.2...
Installing RDoc documentation for activeresource-2.2.2...
rails:~/rubygems-1.3.1# aptitude install mysql-server
The following NEW packages will be installed:
bsd-mailx{a} exim4{a} exim4-base{a} exim4-config{a} exim4-daemon-light{a} libdbd-mysql-perl{a} libdbi-perl{a}
libhtml-template-perl{a} liblockfile1{a} libmysqlclient15off{a} libnet-daemon-perl{a} libplrpc-perl{a}
libterm-readkey-perl{a} mailx{a} mysql-client-5.0{a} mysql-common{a} mysql-server mysql-server-5.0{a}
0 packages upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 39.3MB of archives. After unpacking 113MB will be used.
Do you want to continue? [Y/n/?] y
rails:~/rubygems-1.3.1# aptitude install libmysqlclient15-dev
The following NEW packages will be installed:
binutils{a} gcc{a} gcc-4.3{a} libc6-dev{a} libgomp1{a} libmysqlclient15-dev linux-libc-dev{a} zlib1g-dev{a}
The following packages will be REMOVED:
linux-kernel-headers{a}
0 packages upgraded, 8 newly installed, 1 to remove and 0 not upgraded.
Need to get 16.9MB of archives. After unpacking 39.4MB will be used.
Do you want to continue? [Y/n/?] y
rails:~/rubygems-1.3.1# aptitude install ruby1.8-dev
The following NEW packages will be installed:
ruby1.8-dev
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 826kB of archives. After unpacking 1868kB will be used.
rails:~/rubygems-1.3.1# aptitude install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
build-essential bzip2{a} dpkg-dev{a} g++{a} g++-4.3{a} libstdc++6-4.3-dev{a} libtimedate-perl{a} make{a} patch{a}
0 packages upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 6134kB of archives. After unpacking 21.8MB will be used.
rails:~/rubygems-1.3.1# gem install mysql
Building native extensions. This could take a while...
Successfully installed mysql-2.7
1 gem installed
rails:~/rubygems-1.3.1# gem install mime-types #http://mime-types.rubyforge.org/
Successfully installed mime-types-1.15
1 gem installed
Installing ri documentation for mime-types-1.15...
Installing RDoc documentation for mime-types-1.15...
rails:~/rubygems-1.3.1# gem install right_aws
Successfully installed right_http_connection-1.2.4
Successfully installed right_aws-1.9.0
2 gems installed
Installing ri documentation for right_http_connection-1.2.4...
Installing ri documentation for right_aws-1.9.0...
Installing RDoc documentation for right_http_connection-1.2.4...
Installing RDoc documentation for right_aws-1.9.0...
rails:~/rubygems-1.3.1# aptitude install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
ca-certificates{a} git-core libcurl3-gnutls{a} libdigest-sha1-perl{a} liberror-perl{a} libidn11{a} openssl{a}
rsync{a}
0 packages upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 5046kB of archives. After unpacking 11.1MB will be used.
rails:~/rubygems-1.3.1# mkdir -p /rails
rails:~/rubygems-1.3.1# mkdir -p /rails/Album
rails:~/rubygems-1.3.1# rails /rails/Album
exists
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create script/process
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application.rb
create app/helpers/application_helper.rb
create test/test_helper.rb
create test/performance/browsing_test.rb
create config/database.yml
create config/routes.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/locales/en.yml
create config/boot.rb
create config/environment.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/performance/benchmarker
create script/performance/profiler
create script/performance/request
create script/process/reaper
create script/process/spawner
create script/process/inspector
create script/runner
create script/server
create script/plugin
create public/dispatch.rb
create public/dispatch.cgi
create public/dispatch.fcgi
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log
rails:~/rubygems-1.3.1# cd /rails/Album
rails:/rails/Album# git clone git://github.com/rapind/albumdy.git
Initialized empty Git repository in /rails/Album/albumdy/.git/
remote: Counting objects: 2288, done.
remote: Compressing objects: 100% (1282/1282), done.
remote: Total 2288 (delta 864), reused 2109 (delta 757)
Receiving objects: 100% (2288/2288), 26.30 MiB | 300 KiB/s, done.
Resolving deltas: 100% (864/864), done.
rails:/rails/Album# cd albumdy/
rails:/rails/Album/albumdy# cp config/database.yml.sample config/database.yml
rails:/rails/Album/albumdy# gem install unicode
Building native extensions. This could take a while...
Successfully installed unicode-0.1
1 gem installed
rails:/rails/Album/albumdy# gem install iconv
ERROR: could not find gem iconv locally or in a repository
rails:/rails/Album/albumdy# irb
irb(main):001:0> require 'iconv'
=> true
irb(main):002:0> quit
rails:/rails/Album/albumdy# rake db:create
(in /rails/Album/albumdy)
Missing the Rails 2.1.2 gem. Please `gem install -v=2.1.2 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.
rails:/rails/Album/albumdy# gem install -v=2.1.2 rails
Successfully installed activesupport-2.1.2
Successfully installed activerecord-2.1.2
Successfully installed actionpack-2.1.2
Successfully installed actionmailer-2.1.2
Successfully installed activeresource-2.1.2
Successfully installed rails-2.1.2
6 gems installed
Installing ri documentation for activesupport-2.1.2...
Installing ri documentation for activerecord-2.1.2...
Installing ri documentation for actionpack-2.1.2...
Installing ri documentation for actionmailer-2.1.2...
Installing ri documentation for activeresource-2.1.2...
Installing RDoc documentation for activesupport-2.1.2...
Installing RDoc documentation for activerecord-2.1.2...
Installing RDoc documentation for actionpack-2.1.2...
Installing RDoc documentation for actionmailer-2.1.2...
Installing RDoc documentation for activeresource-2.1.2...
rails:/rails/Album/albumdy# rake db:create
(in /rails/Album/albumdy)
Missing these required gems:
mislav-will_paginate ~> 2.3.2
You're running:
ruby 1.8.7.72 at /usr/bin/ruby1.8
rubygems 1.3.1 at /root/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8
Run `rake gems:install` to install the missing gems.
rails:/rails/Album/albumdy# rake gems:install
(in /rails/Album/albumdy)
gem install mislav-will_paginate --version "~> 2.3.2" --source http://gems.github.com
Successfully installed mislav-will_paginate-2.3.7
1 gem installed
Installing ri documentation for mislav-will_paginate-2.3.7...
Installing RDoc documentation for mislav-will_paginate-2.3.7...
rails:/rails/Album/albumdy# rake db:create
(in /rails/Album/albumdy)
Couldn't create database for {"adapter"=>"mysql", "username"=>"root", "database"=>"albumdy_development", "password"=>nil, "socket"=>"/tmp/mysql.sock"}, charset: utf8, collation: utf8_general_ci (if you set the charset manually, make sure you have a matching collation)
rails:/rails/Album/albumdy# rake db:create
(in /rails/Album/albumdy)
Couldn't create database for {"adapter"=>"mysql", "username"=>"root", "database"=>"albumdy_development", "password"=>"qw2000", "socket"=>"/tmp/mysql.sock"}, charset: utf8, collation: utf8_general_ci (if you set the charset manually, make sure you have a matching collation)
rails:/rails/Album/albumdy# rake db:create
(in /rails/Album/albumdy)
rails:/rails/Album/albumdy# rake db:migrate
(in /rails/Album/albumdy)
== 1 CreateUsers: migrating ===================================================
-- create_table("users", {:force=>true})
-> 0.0034s
== 1 CreateUsers: migrated (0.0036s) ==========================================
== 2 CreateAlbums: migrating ==================================================
-- create_table(:albums)
-> 0.0020s
== 2 CreateAlbums: migrated (0.0022s) =========================================
== 3 CreatePhotos: migrating ==================================================
-- create_table(:photos)
-> 0.0482s
== 3 CreatePhotos: migrated (0.0484s) =========================================
== 4 CreateSlugs: migrating ===================================================
-- create_table(:slugs)
-> 0.0344s
-- add_index(:slugs, :name)
-> 0.0333s
-- add_index(:slugs, :sluggable_type)
-> 0.0312s
-- add_index(:slugs, :sluggable_id)
-> 0.0337s
== 4 CreateSlugs: migrated (0.1334s) ==========================================
rails:/rails/Album/albumdy# rake db:bootstrap
(in /rails/Album/albumdy)
== 1 CreateUsers: migrating ===================================================
-- create_table("users", {:force=>true})
-> 0.0532s
== 1 CreateUsers: migrated (0.0534s) ==========================================
== 2 CreateAlbums: migrating ==================================================
-- create_table(:albums)
-> 0.0475s
== 2 CreateAlbums: migrated (0.0476s) =========================================
== 3 CreatePhotos: migrating ==================================================
-- create_table(:photos)
-> 0.0021s
== 3 CreatePhotos: migrated (0.0022s) =========================================
== 4 CreateSlugs: migrating ===================================================
-- create_table(:slugs)
-> 0.0464s
-- add_index(:slugs, :name)
-> 0.0411s
-- add_index(:slugs, :sluggable_type)
-> 0.0491s
-- add_index(:slugs, :sluggable_id)
-> 0.0498s
== 4 CreateSlugs: migrated (0.1870s) ==========================================