WSL #8:Homebrewをインストールしてみる


Homebrewをインストールしてみる

WSL2上のUbuntuにHomebrewをインストールしてみる

環境

WSL2
Ubuntu 20.04 LTS

手順

1) Ubuntuを起動

2) Homebrewのページを開き

3) "インストール" 欄のコマンドをUbuntuのTerminalに張り付け
※ "/bin/bash ~ install.sh)" のところをコピー

実行結果

user@DESKTOP-H2OCF3O:/mnt/c/Users/user$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password).
==> Select the Homebrew installation directory
- Enter your password to install to /home/linuxbrew/.linuxbrew (recommended)
- Press Control-D to install to /home/user/.linuxbrew
- Press Control-C to cancel installation
[sudo] password for user:
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/Homebrew
==> The following new directories will be created:
/home/linuxbrew/.linuxbrew/bin
/home/linuxbrew/.linuxbrew/etc
/home/linuxbrew/.linuxbrew/include
/home/linuxbrew/.linuxbrew/lib
/home/linuxbrew/.linuxbrew/sbin
/home/linuxbrew/.linuxbrew/share
/home/linuxbrew/.linuxbrew/var
/home/linuxbrew/.linuxbrew/opt
/home/linuxbrew/.linuxbrew/share/zsh
/home/linuxbrew/.linuxbrew/share/zsh/site-functions
/home/linuxbrew/.linuxbrew/var/homebrew
/home/linuxbrew/.linuxbrew/var/homebrew/linked
/home/linuxbrew/.linuxbrew/Cellar
/home/linuxbrew/.linuxbrew/Caskroom
/home/linuxbrew/.linuxbrew/Frameworks

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew
==> /usr/bin/sudo /bin/chown user:user /home/linuxbrew/.linuxbrew
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chmod g+rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chown user /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chgrp user /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/Homebrew
==> /usr/bin/sudo /bin/chown -R user:user /home/linuxbrew/.linuxbrew/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 183843, done.
remote: Counting objects: 100% (198/198), done.
remote: Compressing objects: 100% (139/139), done.
remote: Total 183843 (delta 74), reused 158 (delta 55), pack-reused 183645
Receiving objects: 100% (183843/183843), 48.92 MiB | 20.59 MiB/s, done.
Resolving deltas: 100% (136403/136403), done.
From https://github.com/Homebrew/brew
  * [new branch]      dependabot/bundler/Library/Homebrew/sorbet-0.5.6405 -> origin/dependabot/bundler/Library/Homebrew/sorbet-0.5.6405
  * [new branch]      master                                              -> origin/master
  * [new tag]             0.1                                                 -> 0.1
  * [new tag]             0.2                                                 -> 0.2
  * [new tag]             0.3                                                 -> 0.3
  * [new tag]             0.4                                                 -> 0.4
  * [new tag]             0.5                                                 -> 0.5
  * [new tag]             0.6                                                 -> 0.6
  * [new tag]             0.7                                                 -> 0.7
  * [new tag]             0.7.1                                               -> 0.7.1
  * [new tag]             0.8                                                 -> 0.8
  * [new tag]             0.8.1                                               -> 0.8.1
  * [new tag]             0.9                                                 -> 0.9
  * [new tag]             0.9.1                                               -> 0.9.1
  * [new tag]             0.9.2                                               -> 0.9.2
  * [new tag]             0.9.3                                               -> 0.9.3
  * [new tag]             0.9.4                                               -> 0.9.4
  * [new tag]             0.9.5                                               -> 0.9.5
  * [new tag]             0.9.8                                               -> 0.9.8
  * [new tag]             0.9.9                                               -> 0.9.9
  * [new tag]             1.0.0                                               -> 1.0.0
  * [new tag]             1.0.1                                               -> 1.0.1
  * [new tag]             1.0.2                                               -> 1.0.2
  * [new tag]             1.0.3                                               -> 1.0.3
  * [new tag]             1.0.4                                               -> 1.0.4
  * [new tag]             1.0.5                                               -> 1.0.5
  * [new tag]             1.0.6                                               -> 1.0.6
  * [new tag]             1.0.7                                               -> 1.0.7
  * [new tag]             1.0.8                                               -> 1.0.8
  * [new tag]             1.0.9                                               -> 1.0.9
  * [new tag]             1.1.0                                               -> 1.1.0
  * [new tag]             1.1.1                                               -> 1.1.1
  * [new tag]             1.1.10                                              -> 1.1.10
  * [new tag]             1.1.11                                              -> 1.1.11
  * [new tag]             1.1.12                                              -> 1.1.12
  * [new tag]             1.1.13                                              -> 1.1.13
  * [new tag]             1.1.2                                               -> 1.1.2
  * [new tag]             1.1.3                                               -> 1.1.3
  * [new tag]             1.1.4                                               -> 1.1.4
  * [new tag]             1.1.5                                               -> 1.1.5
  * [new tag]             1.1.6                                               -> 1.1.6
  * [new tag]             1.1.7                                               -> 1.1.7
  * [new tag]             1.1.8                                               -> 1.1.8
  * [new tag]             1.1.9                                               -> 1.1.9
  * [new tag]             1.2.0                                               -> 1.2.0
  * [new tag]             1.2.1                                               -> 1.2.1
  * [new tag]             1.2.2                                               -> 1.2.2
  * [new tag]             1.2.3                                               -> 1.2.3
  * [new tag]             1.2.4                                               -> 1.2.4
  * [new tag]             1.2.5                                               -> 1.2.5
  * [new tag]             1.2.6                                               -> 1.2.6
  * [new tag]             1.3.0                                               -> 1.3.0
  * [new tag]             1.3.1                                               -> 1.3.1
  * [new tag]             1.3.2                                               -> 1.3.2
  * [new tag]             1.3.3                                               -> 1.3.3
  * [new tag]             1.3.4                                               -> 1.3.4
  * [new tag]             1.3.5                                               -> 1.3.5
  * [new tag]             1.3.6                                               -> 1.3.6
  * [new tag]             1.3.7                                               -> 1.3.7
  * [new tag]             1.3.8                                               -> 1.3.8
  * [new tag]             1.3.9                                               -> 1.3.9
  * [new tag]             1.4.0                                               -> 1.4.0
  * [new tag]             1.4.1                                               -> 1.4.1
  * [new tag]             1.4.2                                               -> 1.4.2
  * [new tag]             1.4.3                                               -> 1.4.3
  * [new tag]             1.5.0                                               -> 1.5.0
  * [new tag]             1.5.1                                               -> 1.5.1
  * [new tag]             1.5.10                                              -> 1.5.10
  * [new tag]             1.5.11                                              -> 1.5.11
  * [new tag]             1.5.12                                              -> 1.5.12
  * [new tag]             1.5.13                                              -> 1.5.13
  * [new tag]             1.5.14                                              -> 1.5.14
  * [new tag]             1.5.2                                               -> 1.5.2
  * [new tag]             1.5.3                                               -> 1.5.3
  * [new tag]             1.5.4                                               -> 1.5.4
  * [new tag]             1.5.5                                               -> 1.5.5
  * [new tag]             1.5.6                                               -> 1.5.6
  * [new tag]             1.5.7                                               -> 1.5.7
  * [new tag]             1.5.8                                               -> 1.5.8
  * [new tag]             1.5.9                                               -> 1.5.9
  * [new tag]             1.6.0                                               -> 1.6.0
  * [new tag]             1.6.1                                               -> 1.6.1
  * [new tag]             1.6.10                                              -> 1.6.10
  * [new tag]             1.6.11                                              -> 1.6.11
  * [new tag]             1.6.12                                              -> 1.6.12
  * [new tag]             1.6.13                                              -> 1.6.13
  * [new tag]             1.6.14                                              -> 1.6.14
  * [new tag]             1.6.15                                              -> 1.6.15
  * [new tag]             1.6.16                                              -> 1.6.16
  * [new tag]             1.6.17                                              -> 1.6.17
  * [new tag]             1.6.2                                               -> 1.6.2
  * [new tag]             1.6.3                                               -> 1.6.3
  * [new tag]             1.6.4                                               -> 1.6.4
  * [new tag]             1.6.5                                               -> 1.6.5
  * [new tag]             1.6.6                                               -> 1.6.6
  * [new tag]             1.6.7                                               -> 1.6.7
  * [new tag]             1.6.8                                               -> 1.6.8
  * [new tag]             1.6.9                                               -> 1.6.9
  * [new tag]             1.7.0                                               -> 1.7.0
  * [new tag]             1.7.1                                               -> 1.7.1
  * [new tag]             1.7.2                                               -> 1.7.2
  * [new tag]             1.7.3                                               -> 1.7.3
  * [new tag]             1.7.4                                               -> 1.7.4
  * [new tag]             1.7.5                                               -> 1.7.5
  * [new tag]             1.7.6                                               -> 1.7.6
  * [new tag]             1.7.7                                               -> 1.7.7
  * [new tag]             1.8.0                                               -> 1.8.0
  * [new tag]             1.8.1                                               -> 1.8.1
  * [new tag]             1.8.2                                               -> 1.8.2
  * [new tag]             1.8.3                                               -> 1.8.3
  * [new tag]             1.8.4                                               -> 1.8.4
  * [new tag]             1.8.5                                               -> 1.8.5
  * [new tag]             1.8.6                                               -> 1.8.6
  * [new tag]             1.9.0                                               -> 1.9.0
  * [new tag]             1.9.1                                               -> 1.9.1
  * [new tag]             1.9.2                                               -> 1.9.2
  * [new tag]             1.9.3                                               -> 1.9.3
  * [new tag]             2.0.0                                               -> 2.0.0
  * [new tag]             2.0.1                                               -> 2.0.1
  * [new tag]             2.0.2                                               -> 2.0.2
  * [new tag]             2.0.3                                               -> 2.0.3
  * [new tag]             2.0.4                                               -> 2.0.4
  * [new tag]             2.0.5                                               -> 2.0.5
  * [new tag]             2.0.6                                               -> 2.0.6
  * [new tag]             2.1.0                                               -> 2.1.0
  * [new tag]             2.1.1                                               -> 2.1.1
  * [new tag]             2.1.10                                              -> 2.1.10
  * [new tag]             2.1.11                                              -> 2.1.11
  * [new tag]             2.1.12                                              -> 2.1.12
  * [new tag]             2.1.13                                              -> 2.1.13
  * [new tag]             2.1.14                                              -> 2.1.14
  * [new tag]             2.1.15                                              -> 2.1.15
  * [new tag]             2.1.16                                              -> 2.1.16
  * [new tag]             2.1.2                                               -> 2.1.2
  * [new tag]             2.1.3                                               -> 2.1.3
  * [new tag]             2.1.4                                               -> 2.1.4
  * [new tag]             2.1.5                                               -> 2.1.5
  * [new tag]             2.1.6                                               -> 2.1.6
  * [new tag]             2.1.7                                               -> 2.1.7
  * [new tag]             2.1.8                                               -> 2.1.8
  * [new tag]             2.1.9                                               -> 2.1.9
  * [new tag]             2.2.0                                               -> 2.2.0
  * [new tag]             2.2.1                                               -> 2.2.1
  * [new tag]             2.2.10                                              -> 2.2.10
  * [new tag]             2.2.11                                              -> 2.2.11
  * [new tag]             2.2.12                                              -> 2.2.12
  * [new tag]             2.2.13                                              -> 2.2.13
  * [new tag]             2.2.14                                              -> 2.2.14
  * [new tag]             2.2.15                                              -> 2.2.15
  * [new tag]             2.2.16                                              -> 2.2.16
  * [new tag]             2.2.17                                              -> 2.2.17
  * [new tag]             2.2.2                                               -> 2.2.2
  * [new tag]             2.2.3                                               -> 2.2.3
  * [new tag]             2.2.4                                               -> 2.2.4
  * [new tag]             2.2.5                                               -> 2.2.5
  * [new tag]             2.2.6                                               -> 2.2.6
  * [new tag]             2.2.7                                               -> 2.2.7
  * [new tag]             2.2.8                                               -> 2.2.8
  * [new tag]             2.2.9                                               -> 2.2.9
  * [new tag]             2.3.0                                               -> 2.3.0
  * [new tag]             2.4.0                                               -> 2.4.0
  * [new tag]             2.4.1                                               -> 2.4.1
  * [new tag]             2.4.10                                              -> 2.4.10
  * [new tag]             2.4.11                                              -> 2.4.11
  * [new tag]             2.4.12                                              -> 2.4.12
  * [new tag]             2.4.13                                              -> 2.4.13
  * [new tag]             2.4.14                                              -> 2.4.14
  * [new tag]             2.4.15                                              -> 2.4.15
  * [new tag]             2.4.16                                              -> 2.4.16
  * [new tag]             2.4.2                                               -> 2.4.2
  * [new tag]             2.4.3                                               -> 2.4.3
  * [new tag]             2.4.4                                               -> 2.4.4
  * [new tag]             2.4.5                                               -> 2.4.5
  * [new tag]             2.4.6                                               -> 2.4.6
  * [new tag]             2.4.7                                               -> 2.4.7
  * [new tag]             2.4.8                                               -> 2.4.8
  * [new tag]             2.4.9                                               -> 2.4.9
  * [new tag]             2.5.0                                               -> 2.5.0
  * [new tag]             2.5.1                                               -> 2.5.1
  * [new tag]             2.5.10                                              -> 2.5.10
  * [new tag]             2.5.11                                              -> 2.5.11
  * [new tag]             2.5.12                                              -> 2.5.12
  * [new tag]             2.5.2                                               -> 2.5.2
  * [new tag]             2.5.3                                               -> 2.5.3
  * [new tag]             2.5.4                                               -> 2.5.4
  * [new tag]             2.5.5                                               -> 2.5.5
  * [new tag]             2.5.6                                               -> 2.5.6
  * [new tag]             2.5.7                                               -> 2.5.7
  * [new tag]             2.5.8                                               -> 2.5.8
  * [new tag]             2.5.9                                               -> 2.5.9
  * [new tag]             2.6.0                                               -> 2.6.0
  * [new tag]             2.6.1                                               -> 2.6.1
  * [new tag]             2.6.2                                               -> 2.6.2
  * [new tag]             2.7.0                                               -> 2.7.0
  * [new tag]             2.7.1                                               -> 2.7.1
  * [new tag]             2.7.2                                               -> 2.7.2
  * [new tag]             2.7.3                                               -> 2.7.3
  * [new tag]             2.7.4                                               -> 2.7.4
  * [new tag]             2.7.5                                               -> 2.7.5
  * [new tag]             2.7.6                                               -> 2.7.6
  * [new tag]             2.7.7                                               -> 2.7.7
  * [new tag]             3.0.0                                               -> 3.0.0
  * [new tag]             3.0.1                                               -> 3.0.1
  * [new tag]             3.0.10                                              -> 3.0.10
  * [new tag]             3.0.11                                              -> 3.0.11
  * [new tag]             3.0.2                                               -> 3.0.2
  * [new tag]             3.0.3                                               -> 3.0.3
  * [new tag]             3.0.4                                               -> 3.0.4
  * [new tag]             3.0.5                                               -> 3.0.5
  * [new tag]             3.0.6                                               -> 3.0.6
  * [new tag]             3.0.7                                               -> 3.0.7
  * [new tag]             3.0.8                                               -> 3.0.8
  * [new tag]             3.0.9                                               -> 3.0.9
  * [new tag]             3.1.0                                               -> 3.1.0
  * [new tag]             3.1.1                                               -> 3.1.1
  * [new tag]             3.1.2                                               -> 3.1.2
  * [new tag]             3.1.3                                               -> 3.1.3
  * [new tag]             3.1.4                                               -> 3.1.4
  * [new tag]             3.1.5                                               -> 3.1.5
  * [new tag]             3.1.6                                               -> 3.1.6
  * [new tag]             3.1.7                                               -> 3.1.7
  * [new tag]             3.1.8                                               -> 3.1.8
  * [new tag]             3.1.9                                               -> 3.1.9
HEAD is now at 1795b37ca Merge pull request #11432 from Homebrew/sync-triage-config
==> Tapping homebrew/core
remote: Enumerating objects: 1198323, done.
remote: Counting objects: 100% (2826/2826), done.
remote: Compressing objects: 100% (1033/1033), done.
remote: Total 1198323 (delta 1860), reused 2732 (delta 1792), pack-reused 1195497
Receiving objects: 100% (1198323/1198323), 416.10 MiB | 20.86 MiB/s, done.
Resolving deltas: 100% (847769/847769), done.
From https://github.com/Homebrew/linuxbrew-core
  * [new branch]      master     -> origin/master
HEAD is now at 78c2f448bbc imagemagick: update 7.0.11-13_2 bottle.
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:97e639a64dcec285392b53ad804b5334c324f1d2a8bdc2b5087b8bf8051e332f
############################################################################################################################################# 100.0%
==> Pouring portable-ruby-2.6.3_2.x86_64_linux.bottle.tar.gz
Warning: /home/linuxbrew/.linuxbrew/bin is not in your PATH.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Add Homebrew to your PATH in /home/user/.profile:
    echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/user/.profile
    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- Run `brew help` to get started
- Further documentation:
    https://docs.brew.sh
- Install the Homebrew dependencies if you have sudo access:
    sudo apt-get install build-essential
    See https://docs.brew.sh/linux for more information
- We recommend that you install GCC:
    brew install gcc

追加セットアップ

1) Homebrewのドキュメントに書かれているコマンドをTerminalに張り付け実行
https://docs.brew.sh/Homebrew-on-Linux

コマンド:
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

動作確認

1) helloパッケージをインストール
brew install hello
2) 実行
hello
"Hello, world!" と表示されればOK

実行結果:
user@pcd1:~$ brew install hello
==> Downloading https://ghcr.io/v2/linuxbrew/core/m4/manifests/1.4.18-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/m4/blobs/sha256:1552dd0379252680e0c32085df6b6ab59aa32f45be389ff18620a0
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:1552dd0379252680e0c32085df6b6ab59aa
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/gmp/manifests/6.2.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/gmp/blobs/sha256:47ec066627ce0564e7c6b5da2a3311cdcbf09762dce6bad3f0cad
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:47ec066627ce0564e7c6b5da2a3311cdcbf
######################################################################## 100.0%
Warning: isl@0.18 has been deprecated because it is a versioned formula!
==> Downloading https://ghcr.io/v2/linuxbrew/core/isl/0.18/manifests/0.18
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/isl/0.18/blobs/sha256:3ef95686496676a3c73c57db6eee32a9f039e9c2b7ccf173
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:3ef95686496676a3c73c57db6eee32a9f03
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/mpfr/manifests/4.1.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/mpfr/blobs/sha256:5fa04c762dd682c46b3c15d2c28e89a36353717c533e7aaa1229
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:5fa04c762dd682c46b3c15d2c28e89a3635
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/libmpc/manifests/1.2.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/libmpc/blobs/sha256:c12f0406fb375c08d4c9f699ec2d28099088bb999fe9cceefe
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:c12f0406fb375c08d4c9f699ec2d2809908
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/zlib/manifests/1.2.11
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/zlib/blobs/sha256:6f604280b9e056da163b81cef3076b2e39bbd2b8d3cc8c36d27c
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:6f604280b9e056da163b81cef3076b2e39b
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/binutils/manifests/2.36.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/binutils/blobs/sha256:d13d509bb08d3221982d69c2f2a766c535c858de379dd0e1
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d13d509bb08d3221982d69c2f2a766c535c
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/gcc/5/manifests/5.5.0_6
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/gcc/5/blobs/sha256:42f8f7e567c1baababdb35095b536610503d39511916f8854e7
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:42f8f7e567c1baababdb35095b536610503
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/hello/manifests/2.10
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/hello/blobs/sha256:f81d7c0a3eee9fd62ebdecf685fbc5284e40d4a61c372d554fd
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f81d7c0a3eee9fd62ebdecf685fbc5284e4
######################################################################## 100.0%
==> Installing dependencies for hello: m4, gmp, isl@0.18, mpfr, libmpc, zlib, binutils and gcc@5
==> Installing hello dependency: m4
==> Pouring m4--1.4.18.x86_64_linux.bottle.1.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/m4/1.4.18: 13 files, 638KB
==> Installing hello dependency: gmp
==> Pouring gmp--6.2.1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/gmp/6.2.1: 23 files, 3.9MB
==> Installing hello dependency: isl@0.18
==> Pouring isl@0.18--0.18.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/isl@0.18/0.18: 81 files, 6.4MB
==> Installing hello dependency: mpfr
==> Pouring mpfr--4.1.0.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/mpfr/4.1.0: 30 files, 7.9MB
==> Installing hello dependency: libmpc
==> Pouring libmpc--1.2.1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libmpc/1.2.1: 14 files, 549.9KB
==> Installing hello dependency: zlib
==> Pouring zlib--1.2.11.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/zlib/1.2.11: 12 files, 424.2KB
==> Installing hello dependency: binutils
==> Pouring binutils--2.36.1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/binutils/2.36.1: 4,617 files, 265.4MB
==> Installing hello dependency: gcc@5
==> Pouring gcc@5--5.5.0_6.x86_64_linux.bottle.tar.gz
Warning: The post-install step did not complete successfully
You can try again using:
  brew postinstall gcc@5
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/gcc@5/5.5.0_6: 1,339 files, 173MB
==> Installing hello
==> Pouring hello--2.10.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/hello/2.10: 52 files, 595.7KB
user@pcd1:~$ hello
Hello, world!


WSL, Homebrew

0 件のコメント:

その他の記事