20
20

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.

rbenv環境でBundlerを使ってgemを管理する

Posted at

ともあれBundlerをインストール。

$ rbenv exec gem install bundler
$ rbenv rehash

Gemfileを作成する。

$ rbenv exec bundle init

Gemfileを編集する。

source "https://rubygems.org"

gem "sinatra"
gem "pry"

gemをインストールする。

$ rbenv exec bundle install --path vendor/bundle

インストールされたgemを確認する。

$ bundle list
    Gems included by the bundle:
      * bundler (1.7.2)
      * rack (1.5.2)
      * rack-protection (1.5.3)
      * sinatra (1.4.5)
      * tilt (1.4.1)

コマンドを実行する。

$ rbenv exec bundle exec pry
20
20
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
20
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?