开发者

Unable to get rid of permission denied messages on mac terminal when first opening up the app [closed]

开发者 https://www.devze.com 2022-12-07 21:59 出处:网络
Closed. This question is not about programming or software development. It is not currently accepting answers.
Closed. This question is not about programming or software development. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 7 hours ago.

Improve this question

everytime I seem to open my terminal app on my mac, I get the following lines of messages before I can input anything.


Last login: Wed Dec 7 14:38:26 on ttys000

/Users/aarushbhagwat/.zprofile:1: permission denied: /opt/homebrew/bin/brew
/Users/aarushbhagwat/.zprofile:2: permission denied: /opt/homebrew/bin/brew
/Users/aarushbhagwat/.zprofile:3: permission denied: /opt/homebrew/bin/brew
/Users/aarushbhagwat/.zprofile:9: permission denied: /opt/homebrew/bin/brew
/Users/aarushbhagwat/.zprofile:10: permission denied: /opt/homebrew/bin/brew
/Users/aarushbhagwat/.zshrc:1: permission denied: /opt/homebrew/bin/brew
/Users/aarushbhagwat/.zshrc:2: permission denied: /opt/homebrew/bin/brew
/Users/aarushbhagwat/.zshrc:3: permission denied: /opt/homebrew/bin/brew
/Users/aarushbhagwat/.zshrc:4: permission denied: /opt/homebrew/bin/brew

aarushbhagwat@Aarushs-MacBook-Pro %


I have tried many different lines of code and can't remember exactly all the different things I have tried. However, these lines seem to be the ones causing the 开发者_如何学Goproblem.

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

and,

% echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/aarushbhagwat/.zshrc

I have also tried to make the homebrew file executeable but it doesn't seem to do anything. Regardless of what I do, nothing seems to work. Would anyone have any idea how to get rid of these messages between the first and last line. It would be much appreciated. Thanks!

0

精彩评论

暂无评论...
验证码 换一张
取 消