-
[GO Beginner Basics Chapter 2] Installing Homebrew (Solving Errors) Part 1배움/GOLANG 2023. 12. 9. 22:15반응형
"To start programming in GOLANG, it's necessary to download the GOLANG software. Additionally, besides GOLANG, the installation of a few other software programs is required for programming. In Chapter 2, Part 1, we'll download a manager called Homebrew, and in Part 2, we plan to install other necessary software for programming, such as GO, VISUAL STUDIO, GIT Hub, and more.
1. What is Homebrew?
Homebrew is a package manager. Before starting programming, it's necessary to have a manager program like Homebrew to search, install, update, and delete packages or tools required for programming with simple commands. We will install Homebrew and then use it to install GOLANG.
참 고 자 료
* Understanding Packages
A package is a collection of code, libraries, etc., required to run a program, similar to how various parts like the engine, wheels, and brakes are needed to build a car. An engine, while a complete and essential part on its own, doesn't make a car function by itself. These packages, like engines, wheels, brakes, etc., perform specific functions and are useful independently, but they create greater value as part of a larger system. Just like an engine needs to be combined with other parts to make a car run, packages (like GOLANG, Visual Studio, GIT, etc.) are software components that come together to form a complete software product – the car.
2. Installing Homebrew
- ▶ Visit the Homebrew website at Http://brew.sh.
2. ▶ Copy the command /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" from the main screen under "Install Homebrew".
3. ▶ Open the Terminal in macOS. Use COMMAND+SHIFT to open the Spotlight search and type Terminal.
1. Run Terminal.
2. Paste the copied command from Homebrew and press Enter. Enter your computer's password when prompted.
3. Press ENTER
4. Installation is completed.
3. Solving the 'zsh: command not found: brew' Error
When faced with the error 'zsh: command not found: brew' after following the guidelines, it can be frustrating, especially for beginners. To resolve this, which prevented the installation of GOLANG:
1. 'zsh: command not found: brew' 오류가 뜬다
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/adellana/.zprofile && (/opt/homebrew/bin/brew shellenv)
2.Copy and paste [the first phrase && the second phrase] as above, and then press ENTER.
3. Open a new tab in Terminal.
4. Write brew update and press ENTER.
5. If it shows 'Already up-to-date', Homebrew installation is complete.
This concludes part 1. In part 2, we will organize brew commands like the 'brew update' practiced earlier and install software.
반응형'배움 > GOLANG' 카테고리의 다른 글
[GO Beginner Basics Chapter 3] Installing GO, Visual Studio, and GitHub Using Homebrew Commands Part 2 (0) 2023.12.10 [GO언어 왕초보 기초 3장] 홈브류 명령어로 GO, 비주얼스튜디오, 깃허브 설치하기 2편 (0) 2023.12.10 [GOLANG 왕초보 기초 2장] 홈브류 homebrew 설치하기 (오류해결) 1편 (0) 2023.12.09 [GO beginner_Chapter.1] What is GOLANG? (1) 2023.12.07 [GOLANG 왕초보 기초 1장] 고언어 기초 (1) 2023.12.07