Der Artikel beschreibt, wie ich Ruby on Rails auf Debian 5.0 Lenny installiert und eingerichtet habe.
$ 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
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
Writing extended state information... Done
Get:1 http://ftp.debian.org stable/main libruby1.8 1.8.7.72-3 [1672kB]
Get:2 http://ftp.debian.org stable/main ruby1.8 1.8.7.72-3 [283kB]
Get:3 http://ftp.debian.org stable/main ruby 4.2 [20.6kB]
Get:4 http://ftp.debian.org stable/main rake 0.8.1-3 [124kB]
Get:5 http://ftp.debian.org stable/main libreadline-ruby1.8 1.8.7.72-3 [264kB]
Get:6 http://ftp.debian.org stable/main irb1.8 1.8.7.72-3 [303kB]
Get:7 http://ftp.debian.org stable/main rdoc1.8 1.8.7.72-3 [377kB]
Get:8 http://ftp.debian.org stable/main rdoc 4.2 [5274B]
Get:9 http://ftp.debian.org stable/main libsqlite3-ruby1.8 1.2.2-1 [46.0kB]
Get:10 http://ftp.debian.org stable/main libredcloth-ruby1.8 3.0.99.0.svn.20060519-1 [68.0kB]
Get:11 http://ftp.debian.org stable/main libruby 4.2 [5240B]
Get:12 http://ftp.debian.org stable/main liberb-ruby 4.2 [4828B]
Get:13 http://ftp.debian.org stable/main libbreakpoint-ruby1.8 0.5.1-2 [15.6kB]
Get:14 http://ftp.debian.org stable/main libcmdparse2-ruby1.8 2.0.2-2 [11.8kB]
Get:15 http://ftp.debian.org stable/main libdaemons-ruby1.8 1.0.10-2 [19.1kB]
Get:16 http://ftp.debian.org stable/main rubygems1.8 1.2.0-3 [164kB]
Get:17 http://ftp.debian.org stable/main liblog4r-ruby1.8 1.0.5-7 [153kB]
Get:18 http://ftp.debian.org stable/main libmmap-ruby1.8 0.2.6-3 [19.3kB]
Get:19 http://ftp.debian.org stable/main libncurses-ruby1.8 1.1-3 [56.1kB]
Get:20 http://ftp.debian.org stable/main libopenssl-ruby1.8 1.8.7.72-3 [378kB]
Get:21 http://ftp.debian.org stable/main libruby1.8-extras 0.5 [2450B]
Get:22 http://ftp.debian.org stable/main libjs-prototype 1.6.0.2-4 [32.1kB]
Get:23 http://ftp.debian.org stable/main libxml-simple-ruby 1.0.11-1 [10.3kB]
Get:24 http://ftp.debian.org stable/main libbuilder-ruby1.8 2.1.2-1 [15.2kB]
Get:25 http://ftp.debian.org stable/main rails 2.1.0-6 [2382kB]
Get:26 http://ftp.debian.org stable/main irb 4.2 [5076B]
Get:27 http://ftp.debian.org stable/main wwwconfig-common 0.1.2 [21.9kB]
Get:28 http://ftp.debian.org stable/main javascript-common 5 [3574B]
Get:29 http://ftp.debian.org stable/main libmocha-ruby1.8 0.9.0-1 [21.5kB]
Get:30 http://ftp.debian.org stable/main unzip 5.52-12 [151kB]
Get:31 http://ftp.debian.org stable/main zip 2.32-1 [107kB]
Fetched 6742kB in 10s (654kB/s)
Extracting templates from packages: 100%
Selecting previously deselected package libruby1.8.
(Reading database ... 37504 files and directories currently installed.)
Unpacking libruby1.8 (from .../libruby1.8_1.8.7.72-3_i386.deb) ...
Selecting previously deselected package ruby1.8.
Unpacking ruby1.8 (from .../ruby1.8_1.8.7.72-3_i386.deb) ...
Selecting previously deselected package ruby.
Unpacking ruby (from .../apt/archives/ruby_4.2_all.deb) ...
Selecting previously deselected package rake.
Unpacking rake (from .../archives/rake_0.8.1-3_all.deb) ...
Selecting previously deselected package libreadline-ruby1.8.
Unpacking libreadline-ruby1.8 (from .../libreadline-ruby1.8_1.8.7.72-3_i386.deb) ...
Selecting previously deselected package irb1.8.
Unpacking irb1.8 (from .../irb1.8_1.8.7.72-3_all.deb) ...
Selecting previously deselected package rdoc1.8.
Unpacking rdoc1.8 (from .../rdoc1.8_1.8.7.72-3_all.deb) ...
Selecting previously deselected package rdoc.
Unpacking rdoc (from .../apt/archives/rdoc_4.2_all.deb) ...
Selecting previously deselected package libsqlite3-ruby1.8.
Unpacking libsqlite3-ruby1.8 (from .../libsqlite3-ruby1.8_1.2.2-1_i386.deb) ...
Selecting previously deselected package libredcloth-ruby1.8.
Unpacking libredcloth-ruby1.8 (from .../libredcloth-ruby1.8_3.0.99.0.svn.20060519-1_all.deb) ...
Selecting previously deselected package libruby.
Unpacking libruby (from .../archives/libruby_4.2_all.deb) ...
Selecting previously deselected package liberb-ruby.
Unpacking liberb-ruby (from .../liberb-ruby_4.2_all.deb) ...
Selecting previously deselected package libbreakpoint-ruby1.8.
Unpacking libbreakpoint-ruby1.8 (from .../libbreakpoint-ruby1.8_0.5.1-2_all.deb) ...
Selecting previously deselected package libcmdparse2-ruby1.8.
Unpacking libcmdparse2-ruby1.8 (from .../libcmdparse2-ruby1.8_2.0.2-2_all.deb) ...
Selecting previously deselected package libdaemons-ruby1.8.
Unpacking libdaemons-ruby1.8 (from .../libdaemons-ruby1.8_1.0.10-2_all.deb) ...
Selecting previously deselected package rubygems1.8.
Unpacking rubygems1.8 (from .../rubygems1.8_1.2.0-3_all.deb) ...
Selecting previously deselected package liblog4r-ruby1.8.
Unpacking liblog4r-ruby1.8 (from .../liblog4r-ruby1.8_1.0.5-7_all.deb) ...
Selecting previously deselected package libmmap-ruby1.8.
Unpacking libmmap-ruby1.8 (from .../libmmap-ruby1.8_0.2.6-3_i386.deb) ...
Selecting previously deselected package libncurses-ruby1.8.
Unpacking libncurses-ruby1.8 (from .../libncurses-ruby1.8_1.1-3_i386.deb) ...
Selecting previously deselected package libopenssl-ruby1.8.
Unpacking libopenssl-ruby1.8 (from .../libopenssl-ruby1.8_1.8.7.72-3_i386.deb) ...
Selecting previously deselected package libruby1.8-extras.
Unpacking libruby1.8-extras (from .../libruby1.8-extras_0.5_all.deb) ...
Selecting previously deselected package libjs-prototype.
Unpacking libjs-prototype (from .../libjs-prototype_1.6.0.2-4_all.deb) ...
Selecting previously deselected package libxml-simple-ruby.
Unpacking libxml-simple-ruby (from .../libxml-simple-ruby_1.0.11-1_all.deb) ...
Selecting previously deselected package libbuilder-ruby1.8.
Unpacking libbuilder-ruby1.8 (from .../libbuilder-ruby1.8_2.1.2-1_i386.deb) ...
Selecting previously deselected package rails.
Unpacking rails (from .../archives/rails_2.1.0-6_all.deb) ...
Selecting previously deselected package irb.
Unpacking irb (from .../apt/archives/irb_4.2_all.deb) ...
Selecting previously deselected package wwwconfig-common.
Unpacking wwwconfig-common (from .../wwwconfig-common_0.1.2_all.deb) ...
Selecting previously deselected package javascript-common.
Unpacking javascript-common (from .../javascript-common_5_all.deb) ...
Selecting previously deselected package libmocha-ruby1.8.
Unpacking libmocha-ruby1.8 (from .../libmocha-ruby1.8_0.9.0-1_all.deb) ...
Selecting previously deselected package unzip.
Unpacking unzip (from .../unzip_5.52-12_i386.deb) ...
Selecting previously deselected package zip.
Unpacking zip (from .../archives/zip_2.32-1_i386.deb) ...
Processing triggers for man-db ...
Setting up libruby1.8 (1.8.7.72-3) ...
Setting up ruby1.8 (1.8.7.72-3) ...
Setting up ruby (4.2) ...
Setting up rake (0.8.1-3) ...
Setting up libreadline-ruby1.8 (1.8.7.72-3) ...
Setting up irb1.8 (1.8.7.72-3) ...
Setting up rdoc1.8 (1.8.7.72-3) ...
Setting up rdoc (4.2) ...
Setting up libsqlite3-ruby1.8 (1.2.2-1) ...
Setting up libredcloth-ruby1.8 (3.0.99.0.svn.20060519-1) ...
Setting up libruby (4.2) ...
Setting up liberb-ruby (4.2) ...
Setting up libbreakpoint-ruby1.8 (0.5.1-2) ...
Setting up libcmdparse2-ruby1.8 (2.0.2-2) ...
Setting up libdaemons-ruby1.8 (1.0.10-2) ...
Setting up rubygems1.8 (1.2.0-3) ...
Setting up liblog4r-ruby1.8 (1.0.5-7) ...
Setting up libmmap-ruby1.8 (0.2.6-3) ...
Setting up libncurses-ruby1.8 (1.1-3) ...
Setting up libopenssl-ruby1.8 (1.8.7.72-3) ...
Setting up libruby1.8-extras (0.5) ...
Setting up libjs-prototype (1.6.0.2-4) ...
Setting up libxml-simple-ruby (1.0.11-1) ...
Setting up libbuilder-ruby1.8 (2.1.2-1) ...
Setting up rails (2.1.0-6) ...
Setting up irb (4.2) ...
Setting up wwwconfig-common (0.1.2) ...
Setting up javascript-common (5) ...
Setting up libmocha-ruby1.8 (0.9.0-1) ...
Setting up unzip (5.52-12) ...
Setting up zip (2.32-1) ...
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
Von der Befehlszeile kann man in die Ruby Shell wechseln und einfache Befehle ausführen.
rails:~# irb irb(main):001:0> 5+7 => 12 irb(main):002:0> 3*11 => 33 irb(main):003:0> 15.0/12.0 => 1.25 irb(main):004:0> 15/12 => 1 irb(main):005:0> quit
Das Paketverwaltungssystem für Ruby heißt gem.
Die aktuellste Version erhält man unter rubyforge website - rubygems.
LC_ALL=C wget -S http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz --2009-02-15 17:25:45-- 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: Sun, 15 Feb 2009 16:25:45 GMT Server: Apache X-Powered-By: PHP/4.4.9 Location: http://de.mirror.rubyforge.org/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://de.mirror.rubyforge.org/rubygems/rubygems-1.3.1.tgz [following] --2009-02-15 17:25:46-- http://de.mirror.rubyforge.org/rubygems/rubygems-1.3.1.tgz Resolving de.mirror.rubyforge.org... 80.237.222.133 Connecting to de.mirror.rubyforge.org|80.237.222.133|:80... connected. HTTP request sent, awaiting response... HTTP/1.0 200 OK Connection: keep-alive Content-Type: application/x-tgz Accept-Ranges: bytes ETag: "1555267845" Last-Modified: Wed, 29 Oct 2008 00:28:23 GMT Content-Length: 263748 Date: Sun, 15 Feb 2009 16:25:46 GMT Server: lighttpd/1.4.18 Length: 263748 (258K) [application/x-tgz] Saving to: `rubygems-1.3.1.tgz' 100%[=================================================================================>] 263,748 255K/s in 1.0s 2009-02-15 17:25:47 (255 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# ll
insgesamt 296
drwxr-xr-x 2 501 staff 4096 26. Okt 00:51 bin
-rw-r--r-- 1 501 staff 183845 26. Okt 00:16 ChangeLog
drwxr-xr-x 3 501 staff 4096 26. Okt 00:51 doc
-rw-r--r-- 1 501 staff 35 31. Dez 2006 .document
-rw-r--r-- 1 501 staff 161 31. Dez 2006 ._.document
-rw-r--r-- 1 501 staff 17989 12. Dez 2006 GPL.txt
-rw-r--r-- 1 501 staff 161 12. Dez 2006 ._GPL.txt
drwxr-xr-x 4 501 staff 4096 26. Okt 00:51 lib
-rw-r--r-- 1 501 staff 2323 6. Jan 2007 LICENSE.txt
-rw-r--r-- 1 501 staff 161 6. Jan 2007 ._LICENSE.txt
drwxr-xr-x 3 501 staff 4096 26. Okt 00:51 pkgs
-rw-r--r-- 1 501 staff 13557 25. Sep 10:26 Rakefile
-rw-r--r-- 1 501 staff 1881 29. Mär 2008 README
-rw-r--r-- 1 501 staff 161 29. Mär 2008 ._README
drwxr-xr-x 2 501 staff 4096 26. Okt 00:51 scripts
-rw-r--r-- 1 501 staff 161 11. Jul 2008 ._setup.rb
-rw-r--r-- 1 501 staff 8774 11. Jul 2008 setup.rb
drwxr-xr-x 4 501 staff 4096 26. Okt 00:51 test
-rw-r--r-- 1 501 staff 211 14. Okt 2007 TODO
-rw-r--r-- 1 501 staff 161 14. Okt 2007 ._TODO
rails:~/rubygems-1.3.1# ruby setup.rb
mkdir -p /usr/local/lib/site_ruby/1.8
mkdir -p /usr/bin
install -c -m 0644 ubygems.rb /usr/local/lib/site_ruby/1.8/ubygems.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rbconfig
install -c -m 0644 rbconfig/datadir.rb /usr/local/lib/site_ruby/1.8/rbconfig/datadir.rb
install -c -m 0644 rubygems.rb /usr/local/lib/site_ruby/1.8/rubygems.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems
install -c -m 0644 rubygems/command.rb /usr/local/lib/site_ruby/1.8/rubygems/command.rb
install -c -m 0644 rubygems/gem_runner.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems/package
install -c -m 0644 rubygems/package/tar_reader.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader.rb
install -c -m 0644 rubygems/package/tar_input.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_input.rb
install -c -m 0644 rubygems/package/tar_output.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_output.rb
install -c -m 0644 rubygems/package/tar_writer.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_writer.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader
install -c -m 0644 rubygems/package/tar_reader/entry.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader/entry.rb
install -c -m 0644 rubygems/package/f_sync_dir.rb /usr/local/lib/site_ruby/1.8/rubygems/package/f_sync_dir.rb
install -c -m 0644 rubygems/package/tar_header.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_header.rb
install -c -m 0644 rubygems/server.rb /usr/local/lib/site_ruby/1.8/rubygems/server.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems/commands
install -c -m 0644 rubygems/commands/check_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/check_command.rb
install -c -m 0644 rubygems/commands/contents_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/contents_command.rb
install -c -m 0644 rubygems/commands/stale_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/stale_command.rb
install -c -m 0644 rubygems/commands/environment_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/environment_command.rb
install -c -m 0644 rubygems/commands/cert_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/cert_command.rb
install -c -m 0644 rubygems/commands/cleanup_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/cleanup_command.rb
install -c -m 0644 rubygems/commands/uninstall_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/uninstall_command.rb
install -c -m 0644 rubygems/commands/fetch_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/fetch_command.rb
install -c -m 0644 rubygems/commands/dependency_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/dependency_command.rb
install -c -m 0644 rubygems/commands/update_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/update_command.rb
install -c -m 0644 rubygems/commands/outdated_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/outdated_command.rb
install -c -m 0644 rubygems/commands/generate_index_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/generate_index_command.rb
install -c -m 0644 rubygems/commands/which_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/which_command.rb
install -c -m 0644 rubygems/commands/rdoc_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/rdoc_command.rb
install -c -m 0644 rubygems/commands/lock_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/lock_command.rb
install -c -m 0644 rubygems/commands/install_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/install_command.rb
install -c -m 0644 rubygems/commands/unpack_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/unpack_command.rb
install -c -m 0644 rubygems/commands/query_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/query_command.rb
install -c -m 0644 rubygems/commands/list_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/list_command.rb
install -c -m 0644 rubygems/commands/search_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/search_command.rb
install -c -m 0644 rubygems/commands/build_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/build_command.rb
install -c -m 0644 rubygems/commands/help_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/help_command.rb
install -c -m 0644 rubygems/commands/pristine_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/pristine_command.rb
install -c -m 0644 rubygems/commands/specification_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/specification_command.rb
install -c -m 0644 rubygems/commands/mirror_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/mirror_command.rb
install -c -m 0644 rubygems/commands/sources_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/sources_command.rb
install -c -m 0644 rubygems/commands/server_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/server_command.rb
install -c -m 0644 rubygems/old_format.rb /usr/local/lib/site_ruby/1.8/rubygems/old_format.rb
install -c -m 0644 rubygems/security.rb /usr/local/lib/site_ruby/1.8/rubygems/security.rb
install -c -m 0644 rubygems/source_info_cache.rb /usr/local/lib/site_ruby/1.8/rubygems/source_info_cache.rb
install -c -m 0644 rubygems/dependency_list.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency_list.rb
install -c -m 0644 rubygems/test_utilities.rb /usr/local/lib/site_ruby/1.8/rubygems/test_utilities.rb
install -c -m 0644 rubygems/config_file.rb /usr/local/lib/site_ruby/1.8/rubygems/config_file.rb
install -c -m 0644 rubygems/indexer.rb /usr/local/lib/site_ruby/1.8/rubygems/indexer.rb
install -c -m 0644 rubygems/gem_openssl.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_openssl.rb
install -c -m 0644 rubygems/remote_fetcher.rb /usr/local/lib/site_ruby/1.8/rubygems/remote_fetcher.rb
install -c -m 0644 rubygems/exceptions.rb /usr/local/lib/site_ruby/1.8/rubygems/exceptions.rb
install -c -m 0644 rubygems/version_option.rb /usr/local/lib/site_ruby/1.8/rubygems/version_option.rb
install -c -m 0644 rubygems/builder.rb /usr/local/lib/site_ruby/1.8/rubygems/builder.rb
install -c -m 0644 rubygems/install_update_options.rb /usr/local/lib/site_ruby/1.8/rubygems/install_update_options.rb
install -c -m 0644 rubygems/specification.rb /usr/local/lib/site_ruby/1.8/rubygems/specification.rb
install -c -m 0644 rubygems/local_remote_options.rb /usr/local/lib/site_ruby/1.8/rubygems/local_remote_options.rb
install -c -m 0644 rubygems/timer.rb /usr/local/lib/site_ruby/1.8/rubygems/timer.rb
install -c -m 0644 rubygems/ext.rb /usr/local/lib/site_ruby/1.8/rubygems/ext.rb
install -c -m 0644 rubygems/gem_path_searcher.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb
install -c -m 0644 rubygems/defaults.rb /usr/local/lib/site_ruby/1.8/rubygems/defaults.rb
install -c -m 0644 rubygems/source_index.rb /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb
install -c -m 0644 rubygems/uninstaller.rb /usr/local/lib/site_ruby/1.8/rubygems/uninstaller.rb
install -c -m 0644 rubygems/platform.rb /usr/local/lib/site_ruby/1.8/rubygems/platform.rb
install -c -m 0644 rubygems/require_paths_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/require_paths_builder.rb
install -c -m 0644 rubygems/spec_fetcher.rb /usr/local/lib/site_ruby/1.8/rubygems/spec_fetcher.rb
install -c -m 0644 rubygems/rubygems_version.rb /usr/local/lib/site_ruby/1.8/rubygems/rubygems_version.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems/ext
install -c -m 0644 rubygems/ext/builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/builder.rb
install -c -m 0644 rubygems/ext/rake_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/rake_builder.rb
install -c -m 0644 rubygems/ext/ext_conf_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/ext_conf_builder.rb
install -c -m 0644 rubygems/ext/configure_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/configure_builder.rb
install -c -m 0644 rubygems/custom_require.rb /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems/digest
install -c -m 0644 rubygems/digest/sha1.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/sha1.rb
install -c -m 0644 rubygems/digest/sha2.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/sha2.rb
install -c -m 0644 rubygems/digest/md5.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/md5.rb
install -c -m 0644 rubygems/digest/digest_adapter.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/digest_adapter.rb
install -c -m 0644 rubygems/version.rb /usr/local/lib/site_ruby/1.8/rubygems/version.rb
install -c -m 0644 rubygems/requirement.rb /usr/local/lib/site_ruby/1.8/rubygems/requirement.rb
install -c -m 0644 rubygems/doc_manager.rb /usr/local/lib/site_ruby/1.8/rubygems/doc_manager.rb
install -c -m 0644 rubygems/package.rb /usr/local/lib/site_ruby/1.8/rubygems/package.rb
install -c -m 0644 rubygems/dependency.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb
install -c -m 0644 rubygems/command_manager.rb /usr/local/lib/site_ruby/1.8/rubygems/command_manager.rb
install -c -m 0644 rubygems/source_info_cache_entry.rb /usr/local/lib/site_ruby/1.8/rubygems/source_info_cache_entry.rb
install -c -m 0644 rubygems/format.rb /usr/local/lib/site_ruby/1.8/rubygems/format.rb
install -c -m 0644 rubygems/user_interaction.rb /usr/local/lib/site_ruby/1.8/rubygems/user_interaction.rb
install -c -m 0644 rubygems/dependency_installer.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency_installer.rb
install -c -m 0644 rubygems/validator.rb /usr/local/lib/site_ruby/1.8/rubygems/validator.rb
install -c -m 0644 rubygems/installer.rb /usr/local/lib/site_ruby/1.8/rubygems/installer.rb
cp gem /tmp/gem
install -c -m 0755 /tmp/gem /usr/bin/gem1.8
rm /tmp/gem
rm -f /root/.gem/source_cache
rm -f /usr/lib/ruby/gems/1.8/source_cache
Removing old RubyGems RDoc and ri
Installing rubygems-1.3.1 ri into /usr/lib/ruby/gems/1.8/doc/rubygems-1.3.1/ri
Installing rubygems-1.3.1 rdoc into /usr/lib/ruby/gems/1.8/doc/rubygems-1.3.1/rdoc
------------------------------------------------------------------------------
= 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 rubygems-update
Successfully installed rubygems-update-1.3.1
1 gem installed
rails:~/rubygems-1.3.1#
rails:~/rubygems-1.3.1# gem install rails 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:~# cd ~
rails:~# rails tiriTest
create
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:~# cd tiriTest/
rails:~/tiriTest# script/generate controller tiritest
exists app/controllers/
exists app/helpers/
create app/views/tiritest
exists test/functional/
create app/controllers/tiritest_controller.rb
create test/functional/tiritest_controller_test.rb
create app/helpers/tiritest_helper.rb
rails:~/tiriTest# script/server & [1] 7227 rails:~/tiriTest# => Booting WEBrick... => Rails 2.2.2 application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2009-02-15 17:35:27] INFO WEBrick 1.3.1 [2009-02-15 17:35:27] INFO ruby 1.8.7 (2008-08-11) [i486-linux] [2009-02-15 17:35:27] INFO WEBrick::HTTPServer#start: pid=7227 port=3000 192.168.178.161 - - [15/Feb/2009:17:35:45 CET] "GET / HTTP/1.1" 200 7385 - -> / 192.168.178.161 - - [15/Feb/2009:17:35:45 CET] "GET /javascripts/prototype.js HTTP/1.1" 200 129738 http://192.168.178.16:3000/ -> /javascripts/prototype.js 192.168.178.161 - - [15/Feb/2009:17:35:45 CET] "GET /javascripts/effects.js HTTP/1.1" 200 38675 http://192.168.178.16:3000/ -> /javascripts/effects.js 192.168.178.161 - - [15/Feb/2009:17:35:45 CET] "GET /images/rails.png HTTP/1.1" 200 6646 http://192.168.178.16:3000/ -> /images/rails.png 192.168.178.161 - - [15/Feb/2009:17:35:45 CET] "GET /favicon.ico HTTP/1.1" 200 0 - -> /favicon.ico 192.168.178.161 - - [15/Feb/2009:17:35:48 CET] "GET /favicon.ico HTTP/1.1" 304 0 - -> /favicon.ico