Ruby

Proxy経由でのGEM設定

Proxy経由でGEMを使用する方法

HTTP_PROXY      ProxyサーバのURL 
HTTP_PROXY_USER ユーザID
HTTP_PROXY_PASS パスワード

Bashの場合

export HTTP_PROXY=http://proxy.example.com
export HTTP_PROXY_USER=taro
export HTTP_PROXY_PASS=pass00

gemでsproutcoreをインストール

gemのバージョンアップ

# gem --version   現在のバージョンを確認
0.9.4
#
# gem update --system   gemをバージョンアップ
Updating RubyGems...
Attempting remote update of rubygems-update
Successfully installed rubygems-update-1.3.4
Installing ri documentation for rubygems-update-1.3.4...
Installing RDoc documentation for rubygems-update-1.3.4...
Updating version of RubyGems to 1.3.4
Installing RubyGems 1.3.4
Installing RubyGems
Installing gem executable
Removing old source_cache files
Removing old RubyGems RDoc and ri
Installing rubygems-1.3.4 ri into /usr/lib/ruby/gems/1.8/doc/rubygems-1.3.4/ri
Installing rubygems-1.3.4 rdoc into /usr/lib/ruby/gems/1.8/doc/rubygems-1.3.4/rdoc

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

Oh-no! Unable to find release notes!

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

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

RubyGems system software updated
#

バージョンを再度確認してみると
# gem --version
/usr/bin/gem:10: undefined method `manage_gems' for Gem:Module (NoMethodError)
#

エラーになるので、以下の部分を修正
/usr/bin/gem
(修正前)
------------------------------------------------------------------
require 'rubygems'
Gem.manage_gems

(修正後)
------------------------------------------------------------------
require 'rubygems'
require 'rubygems/gem_runner'
#Gem.manage_gems
------------------------------------------------------------------
正常に確認できた
# gem --version
1.3.4
#

sproutcoreのインストール

# gem install sproutcore
**************************************************

  Thank you for installing rspec-1.2.7

  Please be sure to read History.rdoc and Upgrade.rdoc
  for useful information about this release.

**************************************************
Building native extensions.  This could take a while...
Building native extensions.  This could take a while...
Successfully installed extlib-0.9.12
Successfully installed abstract-1.0.0
Successfully installed erubis-2.6.4
Successfully installed rake-0.8.7
Successfully installed json_pure-1.1.6
Successfully installed rspec-1.2.7
Successfully installed gem_plugin-0.2.3
Successfully installed daemons-1.0.10
Successfully installed fastthread-1.0.7
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5
Successfully installed rack-1.0.0
Successfully installed mime-types-1.16
Successfully installed thor-0.9.9
Successfully installed merb-core-1.0.11
Successfully installed activesupport-2.3.2
Successfully installed rubigen-1.5.2
Successfully installed sproutcore-0.9.23
18 gems installed
Installing ri documentation for extlib-0.9.12...
Installing ri documentation for abstract-1.0.0...
Installing ri documentation for erubis-2.6.4...
Installing ri documentation for rake-0.8.7...
Installing ri documentation for json_pure-1.1.6...
Installing ri documentation for rspec-1.2.7...
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for daemons-1.0.10...
Installing ri documentation for fastthread-1.0.7...

No definition for dummy_dump

No definition for dummy_dump

No definition for rb_queue_marshal_load

No definition for rb_queue_marshal_dump

No definition for dummy_dump

No definition for dummy_dump

No definition for rb_queue_marshal_load

No definition for rb_queue_marshal_dump
Installing ri documentation for cgi_multipart_eof_fix-2.5.0...
Installing ri documentation for mongrel-1.1.5...
Installing ri documentation for rack-1.0.0...
Installing ri documentation for mime-types-1.16...
Installing ri documentation for thor-0.9.9...
Installing ri documentation for merb-core-1.0.11...
Installing ri documentation for activesupport-2.3.2...
Installing ri documentation for rubigen-1.5.2...
Installing ri documentation for sproutcore-0.9.23...
Installing RDoc documentation for extlib-0.9.12...
Installing RDoc documentation for abstract-1.0.0...
Installing RDoc documentation for erubis-2.6.4...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for json_pure-1.1.6...
Installing RDoc documentation for rspec-1.2.7...
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for daemons-1.0.10...
Installing RDoc documentation for fastthread-1.0.7...

No definition for dummy_dump

No definition for dummy_dump

No definition for rb_queue_marshal_load

No definition for rb_queue_marshal_dump

No definition for dummy_dump

No definition for dummy_dump

No definition for rb_queue_marshal_load

No definition for rb_queue_marshal_dump
Installing RDoc documentation for cgi_multipart_eof_fix-2.5.0...
Installing RDoc documentation for mongrel-1.1.5...
Installing RDoc documentation for rack-1.0.0...
Installing RDoc documentation for mime-types-1.16...
Installing RDoc documentation for thor-0.9.9...
Installing RDoc documentation for merb-core-1.0.11...
Installing RDoc documentation for activesupport-2.3.2...
Installing RDoc documentation for rubigen-1.5.2...
Installing RDoc documentation for sproutcore-0.9.23...
#

# sproutcore --help
Creates a new SproutCore application for use with the BlueRibbon toolset

USAGE: sproutcore name

Options:
  -v, --version      Show the sproutcore version number and quit.
General Options:
  -h, --help         Show this help message and quit.
  -p, --pretend      Run but do not make any changes.
  -f, --force        Overwrite files that already exist.
  -s, --skip         Skip files that already exist.
  -q, --quiet        Suppress normal output.
  -t, --backtrace    Debugging: show backtrace on errors.
  -c, --svn          Modify files with subversion. (Note: svn must be in path)
  -g, --git          Modify files with git. (Note: git must be in path)

Description:


Usage:
#

# gem which sproutcore -q
/usr/lib/ruby/gems/1.8/gems/sproutcore-0.9.23/lib/sproutcore.rb
#



      Document-Folder          一覧
HP-UX
HULFT
JAVA
JP1
JavaScript
Linux
MAC
PHP
Perl
Python
Ruby
SOA
Solaris
Unix全般
Windows
XML
エクセル
スタイルシート
セキュリティー
データベース
ネットワーク
パソコン
ブラウザ
プログラム構文
仮想化
          RSS-Folder
ニュース
   アットマーク・アイティ(@IT)
   シンクイット(ThinkIT)
   インターネットコム
   インターネットウォッチ
   日経IT-Pro
   日経パソコン
   CNET Japan
   ZD-NetJapan
   MYCOM
   RBB-Today
ベンダー
   日本IBM
   日本HP
   サンマイクロシステムズ
   NEC
   富士通
   日立
ソフトウェア
   マイクロソフト
   トレンドマイクロ
   オラクル
   サイボウズ
   Mozilla
   野村総合研究所
   (その他ソフトウェア企業)
更新履歴 一覧
 07/08 PERF
プログラム構文
 07/07 PERF
プログラム構文
 06/25 オブジェクトプログラミング2
Perl>サンプル
 07/12 クローン作成
仮想化>vCenter
 07/12 vyatta設定
ネットワーク>vyatta
 07/12 vyattaインストール
ネットワーク>vyatta
 07/12 リポジトリサーバ
Linux>サーバ構築
 07/05 VMwareのインストール
仮想化>VMware
 07/05 PXEブート
仮想化>KVM
 07/01 DHCPでのPXEブート
仮想化>KVM
 06/27 qcow2仮想DISK作成
仮想化>KVM
 06/13 NWの設定
仮想化>VMwareEsxi
 06/13 IPアドレスの変更
仮想化>VMwareEsxi
 06/12 自動ssh
Unix全般>シェル>Bash
 06/12 diffプログラミング
Python
Google