LoginSignup
1
0

More than 5 years have passed since last update.

Bundlerでgemライブラリをインストール・アンインストールする小さなメモ

Posted at

メモ

前提

  • rbenv
  • bundlerインストール済
  • mechanize というライブラリを例にメモ

ライブラリのインストール

% bundle init ★初期設定:Gemfileが作成される
Writing new Gemfile to /home/kure/bundle1/Gemfile
% gem list mechanize ★ mechanize はまだ無い

*** LOCAL GEMS ***


% vim Gemfile ★ [gem "mechanize"] を追記
% bundle install ★ インストール。Gemfile.lockもこのタイミングで出来ると思われる
% gem list mechanize ★確認

*** LOCAL GEMS ***

mechanize (2.7.6)

ライブラリのアンインストール

略。以下の通りでできた

Rubyが参照してるgemのパスやインストール済gemを確認する方法 - Qiita https://qiita.com/h5y1m141@github/items/74029cab9706971c8dbe

1
0
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
0