Created
April 3, 2022 16:05
-
-
Save kvutien/500d62934b28fbfab3a6c5d031e5bb9e to your computer and use it in GitHub Desktop.
Example of shell output when creating Ruby with brew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kvutien@MBP21VTK develop % cd ~ | |
kvutien@MBP21VTK ~ % brew install ruby | |
==> Homebrew is run entirely by unpaid volunteers. Please consider donating: | |
https://github.com/Homebrew/brew#donations | |
==> Auto-updated Homebrew! | |
Updated 1 tap (homebrew/core). | |
==> Updated Formulae | |
Updated 34 formulae. | |
Running `brew update --preinstall`... | |
==> Downloading https://ghcr.io/v2/homebrew/core/libyaml/manifests/0.2.5 | |
######################################################################## 100.0% | |
==> Downloading https://ghcr.io/v2/homebrew/core/libyaml/blobs/sha256:a436da33a0 | |
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh | |
######################################################################## 100.0% | |
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2022- | |
######################################################################## 100.0% | |
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:e7 | |
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh | |
######################################################################## 100.0% | |
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/1.1.1n | |
######################################################################## 100.0% | |
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/blobs/sha256:f9dbd8 | |
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh | |
######################################################################## 100.0% | |
==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.1.2 | |
######################################################################## 100.0% | |
==> Downloading https://ghcr.io/v2/homebrew/core/readline/blobs/sha256:9d9d9512c | |
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh | |
######################################################################## 100.0% | |
==> Downloading https://ghcr.io/v2/homebrew/core/ruby/manifests/3.1.1 | |
######################################################################## 100.0% | |
==> Downloading https://ghcr.io/v2/homebrew/core/ruby/blobs/sha256:90383af9d5a0a | |
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh | |
######################################################################## 100.0% | |
==> Installing dependencies for ruby: libyaml, ca-certificates, openssl@1.1 and readline | |
==> Installing ruby dependency: libyaml | |
==> Pouring libyaml--0.2.5.arm64_monterey.bottle.tar.gz | |
🍺 /opt/homebrew/Cellar/libyaml/0.2.5: 10 files, 353KB | |
==> Installing ruby dependency: ca-certificates | |
==> Pouring ca-certificates--2022-03-29.all.bottle.tar.gz | |
==> Regenerating CA certificate bundle from keychain, this may take a while... | |
🍺 /opt/homebrew/Cellar/ca-certificates/2022-03-29: 3 files, 211.6KB | |
==> Installing ruby dependency: openssl@1.1 | |
==> Pouring openssl@1.1--1.1.1n.arm64_monterey.bottle.tar.gz | |
🍺 /opt/homebrew/Cellar/openssl@1.1/1.1.1n: 8,089 files, 18MB | |
==> Installing ruby dependency: readline | |
==> Pouring readline--8.1.2.arm64_monterey.bottle.tar.gz | |
🍺 /opt/homebrew/Cellar/readline/8.1.2: 48 files, 1.7MB | |
==> Installing ruby | |
==> Pouring ruby--3.1.1.arm64_monterey.bottle.tar.gz | |
==> Caveats | |
By default, binaries installed by gem will be placed into: | |
/opt/homebrew/lib/ruby/gems/3.1.0/bin | |
You may want to add this to your PATH. | |
ruby is keg-only, which means it was not symlinked into /opt/homebrew, | |
because macOS already provides this software and installing another version in | |
parallel can cause all kinds of trouble. | |
If you need to have ruby first in your PATH, run: | |
echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc | |
For compilers to find ruby you may need to set: | |
export LDFLAGS="-L/opt/homebrew/opt/ruby/lib" | |
export CPPFLAGS="-I/opt/homebrew/opt/ruby/include" | |
==> Summary | |
🍺 /opt/homebrew/Cellar/ruby/3.1.1: 15,960 files, 42.7MB | |
==> Running `brew cleanup ruby`... | |
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. | |
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). | |
==> Caveats | |
==> ruby | |
By default, binaries installed by gem will be placed into: | |
/opt/homebrew/lib/ruby/gems/3.1.0/bin | |
You may want to add this to your PATH. | |
ruby is keg-only, which means it was not symlinked into /opt/homebrew, | |
because macOS already provides this software and installing another version in | |
parallel can cause all kinds of trouble. | |
If you need to have ruby first in your PATH, run: | |
echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc | |
For compilers to find ruby you may need to set: | |
export LDFLAGS="-L/opt/homebrew/opt/ruby/lib" | |
export CPPFLAGS="-I/opt/homebrew/opt/ruby/include" | |
kvutien@MBP21VTK ~ % echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc | |
kvutien@MBP21VTK ~ % source ~/.zshrc | |
kvutien@MBP21VTK ~ % which ruby | |
/opt/homebrew/opt/ruby/bin/ruby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment