Ruby - gem - gems インストール(FreeBSD)- ruby 2.6

 クラウディア
1. 概要
2. インストール
3. バージョン

1. 概要

 オペレーティングシステムは、下記のとおりであります。

$ uname -a
FreeBSD xx.xx.xxxx.ne.jp 12.2-RELEASE FreeBSD 12.2-RELEASE XXXXXXXX  amd64
 「ruby」のバージョンが

$ ruby --version
ruby 2.6.6p146 (2020-03-31 revision 67876) [amd64-freebsd12]
 実は、「ports」の状況は

$ pkg version -vl "<"
ruby-2.6.6_1,1                     <   needs updating (index has 2.7.2_1,1)
 てな状況なのですが、「ruby-2.6」に依存しているパッケージがまだ存在するので、「ruby 2.7」へ変えられないのだ。  この状況でインストールしてみます。

2. インストール

 「ports」でインストールします。

cd /usr/ports/devel/ruby-gems
make
make install
 オプションは、以前と同じ「DOCS」なので、チェックしてもしなくてもあまり、変わりありません。  ありゃま、「ruby 2.5」と同じ、「make install」でトラブル。

$ make install
===>  Installing for ruby26-gems-3.0.8
===>  Checking if ruby26-gems is already installed
===>   ruby26-gems-3.0.8 is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of ruby26-gems
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/ruby-gems
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/ruby-gems
 つまり、既におる・・・ちゅうこと?  なんだか、誰かが依存しているのでしょうな。

3. バージョン

 既にあるもので、バージョンを見てみます。  2020年12月22日の時点で、下記のバージョンでした。

$ gem --version
3.0.8
 これで、ええんじゃろね?
earthcar(アースカー)