gemでのインストールエラー

bundlerのインストール

社内プロキシの関係でインストールできない場合がある

[bash]
$ gem install bundler –no-rdoc –no-ri -p http://user:password@proxy:8080
ERROR: Could not find a valid gem ‘bundler’ (>= 0), here is why:
Unable to download data from https://rubygems.org/
– no such name (https://rubygems.org/specs.4.8.gz)
[/bash]

社内プロキシの関係でインストールできない場合は、ローカルにダウンロードしてインストールする。

[bash]
$ gem install –local /usr/local/src/bundler-1.10.6.gem
Successfully installed bundler-1.10.6
Parsing documentation for bundler-1.10.6
Installing ri documentation for bundler-1.10.6
Done installing documentation for bundler after 7 seconds
1 gem installed
[/bash]

但し、インストール対象に依存関係がある場合は面倒くさい。

This entry was posted in Ruby, 技術情報. Bookmark the permalink.

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です