반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags more
Archives
Today
Total
관리 메뉴

hun1541

zsh: parse error near `)' 에러 해결 방법 본문

IT관련

zsh: parse error near `)' 에러 해결 방법

hun1541 2023. 7. 17. 16:23
반응형

MAC 에서 brew 설치 하기 위해 아래와 같은 명령어를 입력 합니다.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

 

설치 이후 아래 와 같은 메시지가 노출 됩니다.

==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew

Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /usr/sbin/chown -R jhjang:admin /opt/homebrew
==> Downloading and installing Homebrew...
HEAD is now at 8ffac3e2a Merge pull request #15684 from carlocab/rpath-dupes
Warning: /opt/homebrew/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!

==> 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 (nor will any be during this install run).

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

==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/hun1541/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

Next steps...

 

저기 나와있는데로 명령어를 쳐도 zsh: parse error near `)' 와 같은 메시지가 노출 됩니다.

 

가만히 보니 괄호가 하나더 있네요...

 

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/jhjang/.zprofile

 

제거 후 다시 명령어를 실행 합니다.

 

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/jhjang/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

 

버전 확인을 해봅니다.

brew -v
Homebrew 4.0.28
반응형