rbenv install時に「ruby-build: TMPDIR=/xxx is set to a non-accessible location」が発生

rbenv install実行時に「ruby-build: TMPDIR=/tmp is set to a non-accessible location」が発生した場合の対処法を記述してます。
環境
- OS CentOS Linux release 7.9.2009 (Core)
- rbenv 1.1.2-40-g62d7798
エラー全文
以下のコマンドを実行時に発生。
1 2 3 4 |
rbenv install -v 2.7.2 <出力結果> ruby-build: TMPDIR=/tmp is set to a non-accessible location |
対処法
原因が詳しくわからなかったですが、別のディレクトリをTMPDIRとして指定して実行してあげれば問題は解決します。
1 |
TMPDIR="${PWD}/tmp" rbenv install -v 2.7.2 |
それか「TMPDIR」を設定してあげる。
1 |
export TMPDIR="${PWD}/tmp" |
-
前の記事
javascript オーバーライドを行う 2021.01.12
-
次の記事
javascript canvasタグに円形のグリッドを作成する 2021.01.13
コメントを書く