bundlerとは?bundlerのインストール手順

bundlerとは?bundlerのインストール手順

bundlerのインストールをしたので手順を記載しておきます。

また、そもそもbundlerとは何だっけ?となるのでそれも書いておきます。

インストールしたいgemのバージョンをgemfileで管理してくれるので、ツール同士の互換性など維持してインストールする事ができます。

一回Gemfileを作ればそこに各gemのバージョンが記載されているので共有しやすくなり、一個のツールだけバージョンアップされて整合性がとれなくなるという事を防げます。

bundlerのインストール

$ gem install bundler
Did you know that maintaining and improving Bundler and RubyGems.org costs more than $25,000 USD every month? Help us keep the gem ecosystem free for everyone by joining the hundreds of companies and individuals who help cover these costs: https://ruby.to/support-bundler
Successfully installed bundler-1.14.4
Parsing documentation for bundler-1.14.4
Installing ri documentation for bundler-1.14.4
Done installing documentation for bundler after 6 seconds
1 gem installed

bundlerのインストール確認

バージョン確認によりインストールされている事を確認します。

$ bundler -v
DL is deprecated, please use Fiddle
Bundler version 1.14.4

bundlerを使用して何かをインストールする

Gemfileを作り、bundle installする。

以下に例を記載。

https://normalblog.net/system/mechanize-install/

Comments

No comments yet. Why don’t you start the discussion?

コメントを残す

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