とんちゃんといっしょ

Cloudに関する技術とか日常とかについて書いたり書かなかったり

玄箱PRO(lenny)にRubygemsを入れてUpdateしてみた

玄箱PRO(lenny)でRedmineを動かそうと思ってその準備。


Rubygemsのバージョンを確認。

debian:~# gem -v
1.2.0

今だと1.3.x系なので古い。


gemからRubygemsのupdateを行う。

debian:~# gem update --system
ERROR:  While executing gem ... (RuntimeError)
    gem update --system is disabled on Debian. RubyGems can be updated using the official                        Debian repositories by aptitude or apt-get.

なんかエラーで怒られた。


仕方が無いのでgemでrubygems-updateをインストールする。

debian:~# gem search --remote rubygems

*** REMOTE GEMS ***

faster_rubygems (0.2.1)
hoe-rubygems (1.0.0)
rubygems-desc (1.2.0)
rubygems-isit19 (1.0)
rubygems-isitjruby (1.1.2)
rubygems-mate (0.0.1)
rubygems-proxy_server (0.1.0)
rubygems-sing (1.2.0)
rubygems-update (1.3.6)
rubygems_dump (0.1.0)
rubygems_snapshot (0.1.3)
debian:~# gem install rubygems-update
Successfully installed rubygems-update-1.3.6
1 gem installed
Installing ri documentation for rubygems-update-1.3.6...
Installing RDoc documentation for rubygems-update-1.3.6...
Could not find main page README
Could not find main page README
Could not find main page README
Could not find main page README

次にupdate_rubygemsでupdate。

debian:~# update_rubygems
-bash: update_rubygems: command not found

なぜかupdate_rubygemsがないと怒られる。


仕方がないのでupdate_rubygemsを検索。

debian:~# find  / -name update_rubygems
/var/lib/gems/1.8/gems/rubygems-update-1.3.6/bin/update_rubygems
/var/lib/gems/1.8/bin/update_rubygems

どうやらパスが通ってないらしい。
諦めてフルパスで実行。

debian:~# /var/lib/gems/1.8/bin/update_rubygems
RubyGems 1.3.6 installed

=== 1.3.6 / 2010-02-17

NOTE:

http://rubygems.org is now the default source for downloading gems.

You may have sources set via ~/.gemrc, so you should replace
http://gems.rubyforge.org with http://rubygems.org

http://gems.rubyforge.org will continue to work for the forseeable future.

New features:

* `gem` commands
  * Added `gem push` and `gem owner` for interacting with modern/Gemcutter
    sources
  * `gem dep` now supports --prerelease.
  * `gem fetch` now supports --prerelease.
  * `gem server` now supports --bind.  Patch #27357 by Bruno Michel.
  * `gem rdoc` no longer overwrites built documentation.  Use --overwrite
    force rebuilding.  Patch #25982 by Akinori MUSHA.
* Captial letters are now allowed in prerelease versions.

Bug fixes:

* Development deps are no longer added to rubygems-update gem so older
  versions can update sucessfully.
* Installer bugs:
  * Prerelease gems can now depend on non-prerelease gems.
  * Development dependencies are ignored unless explicitly needed.  Bug #27608
    by Roger Pack.
* `gem` commands
  * `gem which` now fails if no paths were found.  Adapted patch #27681 by
    Caio Chassot.
  * `gem server` no longer has invalid markup.  Bug #27045 by Eric Young.
  * `gem list` and friends show both prerelease and regular gems when
    --prerelease --all is given
* Gem::Format no longer crashes on empty files.  Bug #27292 by Ian Ragsdale.
* Gem::GemPathSearcher handles nil require_paths. Patch #27334 by Roger Pack.
* Gem::RemoteFetcher no longer copies the file if it is where we want it.
  Patch #27409 by Jakub ??astny.

Deprecation Notices:

* lib/rubygems/timer.rb has been removed.
* Gem::Dependency#version_requirements is deprecated and will be removed on or
  after August 2010.
* Bulk index update is no longer supported.
* Gem::manage_gems was removed in 1.3.3.
* Time::today was removed in 1.3.3.


------------------------------------------------------------------------------

RubyGems installed the following executables:
        /usr/bin/gem1.8

これでRubygems1.3.6のインストール完了。


一応確認。

debian:~# gem -v
1.3.6