LoginSignup
4
6

More than 5 years have passed since last update.

Homebrew by.Linux[ in Raspberry Pi]

Posted at

Linuxbrew - Homebrew

これは今流行りのRaspberryPiに、
最近Linux対応したHomebrew(macのパッケージ管理ソフトウェア)をインストールしてみた話です。

インストールは非常に簡単で、
Linuxbrew - Homebrewへアクセスし、
インストール手順通りにやるだけ。
ただ、色々初期のままだとハマる箇所があるので、
メモ的な意味と誰かのためへのメモ。

ラズパイは、DebianOSなので、
Debian or Ubuntuに書かれている奴をインストールしておく。

続いて、初期設定の場合は、下記の手順に沿ってやれば、大概いけると思うw

  // コメントアウト

$ sudo raspi-config
  // 'en_US.UTF-8'が既に設定済みの場合は、飛ばす。
  // 実行前にすること、ロケーションの設定を'en_US.UTF-8'をGeneration complete.すること。

$ sudo apt-get install build-essential curl file git

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
  // 上記を実行すると以下のような警告が出る。

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for pi: 表示されないけど、パスワードを入れて、しばらく待つ...

$ test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
$ test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
$ test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
$ echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile

お疲れ様です。
これで、終わりです。

以上。

所感

自分のMacと比べると...インストール時間がクソ長いw
以上...

4
6
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
4
6