1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windows7の.gemrc設定手順(プロキシ環境有)

Last updated at Posted at 2016-02-18

やりたいこと

  • gem を Windows7 で設定する。

前提環境

設定するファイル

  • .gemrc

手順

.gemrc ファイルを作成

コマンドプロンプト(cmd)で下記のコマンドを実行します。

  • %User_Profile%: ログインユーザーのアカウント(ユーザープロファイル)を指定
  • %id%: プロキシサーバのユーザーID (必要なら設定)
  • %pw%: プロキシサーバのユーザーIDに紐付くパスワード (必要なら設定)
  • %proxyserver%: プロキシサーバ名
  • %port%: プロキシサーバのポート
cmd.exe
c:  :: <= 実行するコマンド
cd C:\Users\%User_Profile%\ :: <= 実行するコマンド
echo 'gem: --no-ri --no-rdoc' >> .gemrc :: <= 実行するコマンド
echo 'http_proxy: http://%id%:%pw%@%proxyserver%:%port%' >> .gemrc :: <= 実行するコマンド
.gemrc
gem: --no-ri --no-rdoc
http_proxy: http://%id%:%pw%@%proxyserver%:%port%

※ 作成された『.gemrc』は文字コードがUTF-8であること

完了

参考文献

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?