Installing homebrew in a Linux (Ubuntu-20.04) environment

Installing homebrew in a Linux (Ubuntu-20.04) environment

I installed homebrew on Ubuntu-20.04(WSL).

Note: Do not run as root as it will display “Don’t run this as root!

Linux(Ubuntu-20.04)環境にhomebrewをインストールする

コマンドは公式サイトからコピーしてください

Homebrew
The Missing Package Manager for macOS (or Linux).

Warning: /home/linuxbrew/.linuxbrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the ‘Next steps’ section below.
==> Installation successful!

Install succeeded, but it said that the path was not passed, so proceed to Next Steps.

==> Next steps:
– Run these two commands in your terminal to add Homebrew to your PATH:
echo ‘eval “$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)”‘ >> /home/takahashi-h5/.profile
eval “$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)”
– Install Homebrew’s dependencies if you have sudo access:
sudo apt-get install build-essential
For more information, see:
Documentation
Documentation for the missing package manager for macOS (or Linux).
/Homebrew-on-Linux
– We recommend that you install GCC:
brew install gcc
– Run brew help to get started
– Further documentation:
https://docs.brew.sh

Execute the command as written.

$ echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/takahashi-h5/.profile
↑Please change to the home directory of each environment
$ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
$ sudo apt-get install build-essential
$ source .profile ※This command is required, or re-login is required
$ brew install gcc

This completes the homebrew installation.

Let’s try to install grpcurl on Ubuntu-20.04 (WSL) with the brew command.

$ brew install grpcurl

Execute the command.

$ grpcurl -version
grpcurl 1.8.6

grpcurl has been successfully installed.

brewのhelp

Documentation
Documentation for the missing package manager for macOS (or Linux).

grpcurl

GitHub - fullstorydev/grpcurl: Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers
Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers - GitHub - fullstorydev/grpcurl: Like cURL,...

コメント

Discover more from 株式会社CONFRAGE ITソリューション事業部

Subscribe now to keep reading and get access to the full archive.

Continue reading

Copied title and URL