I am not sure how badly I have hosed this. I updated dbt to v20 globally too soon. I did uninstall v20. I need to return the project to version 19.1. I am running into errors doing this. As background I am running a virtual. I am on macos.
These two commands work as expected:
brew tap dbt-labs/dbt
brew unlink dbt
Then I run brew install dbt-labs/dbt/dbt#0.19.1
I get (I expect this) Warning: dbt-labs/dbt/dbt#0.19.1 0.19.1_1 is already installed, it's just not linked. To link this version, run: brew link dbt#0.19.1
Then I run brew link dbt#0.19.1 or brew link dbt-labs/dbt/dbt#0.19.1 and I get:
Error: Formulae found in multiple taps:
* dbt-labs/dbt/dbt#0.12.2-rc1
* fishtown-analytics/dbt/dbt#0.12.2-rc1
Please use the fully-qualified name (e.g. dbt-labs/dbt/dbt#0.12.2-rc1) to refer to the formula.
So I try brew link dbt-labs/dbt/dbt#0.12.2-rc1
Disclosure...I code dbt modules but I do not get too far into the installation since I rarely need to do it. Any help would be highly appreciated.
You might find this issue in the dbt-labs/dbt repo helpful.
TL;DR:
You may be running into issues due to the repo name change. It could help to do a full re-install, i.e.:
brew untap fishtown-analytics/dbt --force
brew tap dbt-labs/dbt
brew install dbt#x.y.z
You can then follow the instructions here as normal for managing several versions with homebrew.
Related
I am trying to install Infer, a static analysis tool developed by Facebook. I tried following the tutorial for Mac at this link: https://fbinfer.com/docs/getting-started/. I used the "brew install infer" command, however, I keep getting the following error:
Error: infer: no bottle available!
You can try to install from source with:
brew install --build-from-source infer
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
I don't know what I'm doing wrong since I just followed the instruction. Please help! Thank you
Please take a look at my modified brew formula to install it on macOS 12 + Apple Silicon.
It works using commit 5fd2f95 (HEAD) and not v1.1.0.
I am unable to install apg via homebrew in OSX. I tried brew install apg but I got No available formula with the name "apg".
Tried looking around but no success so far.
The apg formula for homebrew has been removed because the upstream software doesn't seem to be maintained anymore. The home page of the apg software is not reachable and even on other OS, like Debian, the package will probably be discontinued soon (see the notice at the bottom of the description). That's the reason why a brew install apg is not working for you.
That being said, if you look closely at the discussion around the removal from homebrew, you'll find that someone is now maintaining an updated formula in its own homebrew tap. You can then install apg by first adding his tap:
brew tap jzaleski/homebrew-jzaleski
brew install apg
I got the following error when I tried to brew tap homebrew/science: "Error: homebrew/science was deprecated. This tap is now empty as all its formulae were migrated." HOWEVER, there are no explicit instructions on what to do. All it's formulae were migrated to ____?
I am not new to science, but I am quite new to homebrew.
What should I do?. I was going to use this to track the formulae for installation of opencv among other things. I don't understand why something like homebrew/science would be depreciated or no longer relevant.
A quick solution is to use these command instead:
brew tap brewsci/bio
brew tap brewsci/science
Please see this Github Issue for reference.
Most formulae were migrated to the core repository, so they will be available without "tapping science".
So, if you want package XYZ, just do:
brew search XYZ
and you should find it.
If you cannot find your package by brew search <package name>,
you can give it a try to get it directly from the homebrew core.
Example:
brew install homebrew/science/hdf5
failed because homebrew/science was deprecated.
Solution:
brew install homebrew/core/hdf5
worked!
Try to perform:
brew tap brewsci/science
Hope it helps
When I try to install PHP7 with Homebrew I get this error
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
The output of /usr/sbin/apxs follows:
apxs:Error: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/apr-1-config not found!.
configure: error: Aborting
And the command I've used to install it is :
brew install homebrew/php/php70
Here's a screenshot of my terminal:
Terminal Screen shot
Does any one have a solution for this, knowing that I've searching the web for a solution without any luck
Try this if you're upgrading:
brew reinstall php70 --without-apache
otherwise if you're installing php70 for the first time, try the following::
brew install home-brew/php/php70 --without-apache
Faced a similar issue, found it under this GitHub issue: https://github.com/Homebrew/homebrew-php/issues/3283
So I've been using homebrew to install various packages/libraries/programs on my mac. I keep running into a problem in which homebrew tells me that I have unlinked kegs in my Cellar.
For instance, upon running brew install phantomjs I received the following message:
Warning: Could not link phantomjs. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link phantomjs'
Possible conflicting files are:
/usr/local/bin/phantomjs -> /usr/local/lib/node_modules/phantomjs/bin/phantomjs
I tried running brew link phantomjs as recommended, and hit a similar problem:
Error: Could not symlink file: /usr/local/Cellar/phantomjs/1.9.2/bin/phantomjs
Target /usr/local/bin/phantomjs already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
brew link --overwrite formula_name
The command brew link --overwrite --dry-run phantomjs gives the following message:
Would remove:
/usr/local/bin/phantomjs -> /usr/local/lib/node_modules/phantomjs/bin/phantomjs
I will probably go ahead and overwrite, but this appears to happen every time I try to install something with homebrew. Why? Why isn't homebrew working as expected?
Thanks.
From what I can tell, looks like you have previously done:
% sudo npm install -g phantomjs
In this case, you should do the following:
% sudo npm uninstall -g phantomjs
% brew link --overwrite phantomjs
I thought I'd take a crack at this. I ran into a similar problem today, and I think it may be related to this:
https://github.com/Homebrew/homebrew/issues/22408
Long story short, I think it has to do with how npm manages packages vs how brew does it. (I'm assuming you installed node with its defaults, which would have given you npm).
At some point you probably installed some package with npm. Maybe grunt, karma, etc..those by default end up in /usr/local/lib/node_modules.
Maybe one of those packages or its dependencies(or sub-dependencies) depended on phantomjs (I think Karma might use phantomjs?) Anyways, if now you are trying to brew install phantomjs, which is trying to make a symlink to it, that may be conflicting with the already existing symlink that npm created for you..
I think you can change the symlink path for that package so that brew permanently points to that already installed package in the node_modules folder. Sorry not to be more specific, I'm just figuring this out myself.