LoginSignup
2
1

More than 3 years have passed since last update.

【Mac】rbenvがインストールできないときの解決方法

Last updated at Posted at 2020-05-09

エラー内容の確認

下記のようなエラー内容になったことでrbenvがインストールできないときのエラーの解消方法についてご紹介します。

$ brew install rbenv
The program 'brew' is currently not installed. To run 'brew' please ask your administrator to install the package 'linuxbrew-wrapper'

Linuxbrewのインストール

エラーの記述内容に「Linuxbrewをインストールしてください」とありますので下記のコマンドを実行します。

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"

するとまたエラー内容が表示されてしまいました!

Warning: /home/linuxbrew/.linuxbrew/bin is not in your PATH.

パスがありませんとなってしまうので下記のコマンドを実行しましょう。

$ echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >>  ~/.bashrc
$ source ~/.bashrc

するとLinuxbrewのインストールが完了していますので再度rbenvをインストールして見ましょう^_^

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