Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
445 views
in Technique[技术] by (71.8m points)

xcode - Not able to install anything with brew

I'm trying to install carthage with homebrew and I'm running with the below issue. Not only carthage, I'm unable to install any packages with brew.

==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "carthage".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
userXXXXXX ~ % brew info carthage
Error: No available formula or cask with the name "carthage".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found. 

I installed homebrew with /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" I tried uninstalling with below command to see if it rectifies the problem.

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

and installed homebrew again but still got the same error. On uninstall- I have got these messages. Is it safe to delete these files? Is this is the cause for other packages not getting installed?

Homebrew uninstalled!
The following possible Homebrew files were not deleted:
/usr/local/Frameworks/
/usr/local/Homebrew/
/usr/local/McAfee/
/usr/local/bin/
/usr/local/etc/
/usr/local/include/
/usr/local/jamf/
/usr/local/lib/
/usr/local/opt/
/usr/local/sbin/
/usr/local/share/
/usr/local/var/
You may wish to remove them yourself.

System configuration: macOS Catalina - V 10.15.6 Xcode (11.0) node : v10.14.1 When I run brew doctor, I get to see a lot of .h files with the below message.

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Please help. I'm not sure what i have done wrong here.

question from:https://stackoverflow.com/questions/65932861/not-able-to-install-anything-with-brew

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...