12
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu18.04LTSにlinuxbrew(linux版homebrew)を入れる

Last updated at Posted at 2018-08-23

環境
Ubuntu18.04LTS

linuxbrewがうまく入らなかったので共有します。
インストール

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

パスが通っていない?エラー

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

ぐぐってもよくわからないので公式サイトをみてまず、依存関係を入れる

sudo apt-get install build-essential curl file git

ソースをクローンして入れてパスを設定する

git clone https://github.com/Linuxbrew/brew.git ~/.linuxbrew
PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$(brew --prefix)/share/man:$MANPATH"
export INFOPATH="$(brew --prefix)/share/info:$INFOPATH"

バージョン確認

brew -v
Linuxbrew/homebrew-core (git revision c82d; last commit 2018-08-23)

端末とじてやったらbrewがどこかにいってしまったのでubuntuのメッセージから次を入力

sudo apt install linuxbrew-wrapper

バージョン確認

brew -v
Linuxbrew/homebrew-core (git revision c82d; last commit 2018-08-23)

たぶんできた。

参考サイト
[Linuxbrew]
(http://linuxbrew.sh/)

12
7
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
12
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?