I am on Mac os and could get twilio-cli. I have installed it using brew.
I tried
brew uninstall twilio
brew remove twilio
It gives below error
Warning: Twilio is switching the default branch from 'master' to 'main'
Warning: requiring an update to the default homebrew tap.
Warning:
Error: To upgrade twilio-cli, retap it with:
brew untap twilio/brew
brew tap twilio/brew
brew upgrade twilio
I applied above suggested commands but it still give same error over and over again.
Try this first
brew update-reset $(brew --repo twilio/brew)
Then try
brew uninstall twilio
brew untap twilio/brew
brew tap twilio/brew
brew install twilio
If that fails, then I would go to the folder
/usr/local/Homebrew/Library/Taps/twilio/
and manually delete the hombrew-brew folder rm -rf homebrew brew
Then I would do brew tap twilio/brew && brew install twilio
After that you might as well run brew update && brew upgrade
then brew doctor to make sure everything is good
brew install twilio/brew/twilio should be enough.
Related
Most places recommend running a brew update before a brew install. as such:
brew update
brew install <package_name>
What is the purpose of first running a brew update?
I've done installs without updates several times and it worked fine
You don't really need to do brew update before brew install. The brew install command automatically updates the resources (that's what brew update does) before installing anything.
When I type in:
brew install wine
That should install Wine 2.0.3, right? (the latest release)
But I want to install a specific version of wine: wine 3.0 rc2
What would the command to do this be if I'm using homebrew? I've tried
brew install wine-devel
But it gives me this error:
Error: No available formula with the name "wine-devel"
Any help? Thanks!
Currently wine-devel has been moved to caskroom/versions. Therefore in order to install wine-devel you have to
Tap caskroom/versions, by running brew tap caskroom/versions
Update homebrew (...just to be sure) by running brew update
Finally install wine-devel by running brew install caskroom/versions/wine-devel
caskroom/versions was moved to homebrew/cask-versions.
The following will work:
brew tap homebrew/cask-versions
brew install homebrew/cask-versions/wine-devel
You will be asked for your password.
Then you should be able to start executables as follows:
wine /path/to/app.exe
I was trying to install wine-devel, but ran into a similar problem. It seems that the answers here may each have been relevant on a different year, as the casks have moved around back and forth. So here's the latest on the situation, and some info on how to handle it in future.
The official instructions (as of 4th April 2020) say to run brew cask install wine-stable. However, that leads to an error:
$ brew cask install wine-stable
Error: Cask wine-staging exists in multiple taps:
homebrew/cask-versions/wine-staging
caskroom/versions/wine-staging
This means that two potential casks were found, each with the same name, yet each on a different repository, and Homebrew was unsure which one to install.
Running this command gave me a clue about what was going on:
$ brew tap caskroom/versions
Error: caskroom/versions was moved. Tap homebrew/cask-versions instead.
So I learned that you can untap third-party repositories, and untapped the one that the message seemed to advise not to tap WINE casks from.
$ brew untap caskroom/versions
Untapping caskroom/versions...
Untapped 156 casks (463 files, 56.7MB).
$ brew cask install wine-stable
... Success!
To install the development version just pass --devel
brew install --devel wine
I was following a couple links that had this same sequence, namely this example. I was unable to get it done successfully. Here is the output from terminal
MacBook-Pro-4:/ SHennessy$ brew tap homebrew/dupes
MacBook-Pro-4:/ SHennessy$ brew tap homebrew/versions
MacBook-Pro-4:/ SHennessy$ brew tap homebrew/homebrew-php
MacBook-Pro-4:/ SHennessy$ brew unlink php56
Error: No such keg: /usr/local/Cellar/php56
MacBook-Pro-4:/ SHennessy$ brew install php70
==> Installing php70 from homebrew/php
Error: You must `brew link libpng` before homebrew/php/php70 can be installed
MacBook-Pro-4:/ SHennessy$ brew link php70
Error: No such keg: /usr/local/Cellar/php70
MacBook-Pro-4:/ SHennessy$
If anybody has any ideas that would be awesome, thanks in advance.
I had more or less the same issue when installing php71.
To resolve it, I had to delete /usr/local/Cellar/php71 using sudo rmdir -rf /usr/local/opt/php71 and then :
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install php71
Hope it helps.
Everything is now outdated
All was migrated to homebrew/homebrew-core
For MacOS Monterey I faced a similar issue /usr/local/Cellar/php while switching between different php versions
Following steps help me to fix my issue
Step 1
After installing php first link that particular version
brew link php#7.3 //Whatever you installed
Step 2
Switching to another php version use the following commands
brew unlink php#7.3 //Whatever is your current active version
brew link --overwrite --force php#7.4 //Whatever your desired version
Or you can use single command
brew unlink php#7.3 && brew link --overwrite --force php#7.4
For php 5.6 & php 7.0
As of now the tap is empty and all of its formulae are migrated to homebrew/core
so i untapped & cleaned
brew untap homebrew/dupes
brew cleanup
And tapped this repo for older php versions
brew tap exolnet/homebrew-deprecated
And resinstalled php versions
brew reinstall php#7.1
brew reinstall php#5.6
For MacOS Catalina you need to do this fallowing commands.
brew tap exolnet/homebrew-deprecated
brew install php#7.1 (or other versions which lower then 7.1)
You can read more about this, just visit here https://getgrav.org/blog/macos-catalina-apache-multiple-php-versions.
Hope my answer will help you.
For macOS Venture I had multiple PHP folders under '/usr/local/opt/' so I erased the old versions and then I installed the latest.
Steps I took:
which php
cd /usr/local/opt/
rm -r php#7.0
rm -r php#7.4
rm -r php#8.0
Restart machine and then a php -v
I'm trying to install paramiko on my MacBook Pro (OSX Sierra) without going through Xcode because I'm too lazy to install Xcode honestly.
When trying to run:
brew install paramiko
I get:
Error: No available formula with the name "paramiko"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
I've tried untapping home-brew via:
brew untap homebrew
And I get:
Error: No available tap homebrew/php.
Also tried:
brew tap --repair
brew update
Nothing besides:
Updated 1 tap (caskroom/cask).
No changes to formulae.
If I have to go through Xcode, that's fine but I feel the issue here is not the installation process but something weird with the taps...
This worked for me.
run brew doctor
Warning: Some taps are not on the default git origin branch and may
not receive updates. If this is a surprise to you, check out the
default branch with: git -C $(brew --repo homebrew/core) checkout
master
then run git -C $(brew --repo homebrew/core)
Run this command:
git -C $(brew --repo homebrew/core) checkout master
this will switch to master, then run
brew doctor
this should run without any error.
If there is no error you can install anything with brew install
ex: brew install wget
I ran:
brew doctor
which gave me as first warning:
Warning: Homebrew/homebrew-core was not tapped properly! Run:
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
Running those 2 commands above solved the problem for me.
I was also facing the same issue when installing Node via brew.
I fixed it by running two commands:
$ brew doctor
This shows me this warning:
Warning: Homebrew/homebrew-core was not tapped properly! Run:
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
Then I ran these two commands to fix the warning:
$ rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
$ brew tap homebrew/core
And then I tried installing Node:
$ brew install node
It worked.
See if the following approach in the following link helps.
Depending upon your pip/python/xcode version, brew may not work in installing python or python3.
I installed Python3 binary .pkg for Mac from their site, installed it on Mac.
Then, opened a new Terminal window and did:
which python3 && python3 --version && which pip3 && pip3 --version
pip3 install paramiko
brew or pip - install credstash - errors - No named formulae found in taps / OSErr six-1.4.1-py2.7.egg-info operation not permitted
Apparently, I also had this issue, I'm a developer.
I want to develop an OS with a command known as i686-elf-gcc, but with homebrew it doesn't work. So, use this:
brew doctor
And a warning will show up:
Warning: Homebrew/homebrew-core was not tapped properly! Run:
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
So run these:
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
After that, I tried installing my package:
brew install i686-elf-gcc
And, it worked, it should also work for you.
sudo ln -s /usr/lib/dart/bin/pub /usr/bin/pub
sudo ln -s /usr/lib/dart/bin/dart2js /usr/bin/dart2js
git -C $(brew --repo homebrew/core) checkout master
this command helps
I have been struggling with this for a few hours. I am on a Mac using Yosemite. I had homebrew installed, and was using git just fine. I tried doing $git add -i and I got this error:
Can't locate Git.pm in #INC (#INC contains:
So I followed the instructions here:
Can't locate Git.pm in #INC
$brew uninstall git worked fine, but after I tried to $brew install git I've been stuck in a terrible cycle.
% brew install git
Error: git-git already installed
To install this version, first `brew unlink git'
% brew unlink git
Error: No such keg: /usr/local/Cellar/git
% brew link git
Error: No such keg: /usr/local/Cellar/git
% git --version
git version 1.9.3 (Apple Git-50)
% brew upgrade git
==> Upgrading 1 outdated package, with result:
git 2.2.2
Error: /usr/local/Library/LinkedKegs/git is not a valid keg
% brew install git
Error: git-git already installed
To install this version, first `brew unlink git'
%
I just want to get homebrew & git back to normal and linked to the correct repo again. I'm really rough around the edges at this stuff, so any help would be greatly appreciated!
Give another go at force removing the brewed version of git
brew uninstall --force git
Then cleanup any older versions and clear the brew cache
brew cleanup -s git
Remove any dead symlinks
brew cleanup --prune-prefix
Then try reinstalling git
brew install git
If that doesn't work, I'd remove that installation of Homebrew altogether and reinstall it. If you haven't placed anything else in your brew --prefix directory (/usr/local by default), you can simply rm -rf $(brew --prefix). Otherwise the Homebrew wiki recommends using a script at https://gist.github.com/mxcl/1173223#file-uninstall_homebrew-sh
Had a similar issue while installing "Lua" in OS X using homebrew. I guess it could be useful for other users facing similar issue in homebrew.
On running the command:
$ brew install lua
The command returned an error:
Error: /usr/local/opt/lua is not a valid keg
(in general the error can be of /usr/local/opt/ is not a valid keg
FIXED it by deleting the file/directory it is referring to, i.e., deleting the "/usr/local/opt/lua" file.
root-user # rm -rf /usr/local/opt/lua
And then running the brew install command returned success.
Os X Mojave 10.14 has:
Error: The Command Line Tools header package must be installed on
Mojave.
Solution. Go to
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
location and install the package manually. And brew will start working and we can run:
brew uninstall --force git
brew cleanup -s git
brew cleanup --prune-prefix
brew install git