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
Related
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.
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'm trying to install homebrew on my mac verison 10.7.5, error msg comes up: The requested URL returned error: 404 Error: Failed to download resource "openssl" Download failed: https://raw.githubusercontent.com/DomT4/LibreMirror/master/Open help! how do i fix?
Try update your brew
brew update
I have encountered the same issue on my mac (10.11 El Captian)
It's seems OpenSSL want to force users and package management softwares to update by removing their previous version.
I agree with #Webb Lu on this one.
Try brew update a few times. If this isn't working then try the command brew doctor to correct any errors.
If this fixes the issue, you may want to then run brew upgrade to upgrade anything that is out of date. For some reason I had to reinstall Xcode last night to run the upgrade command. Not sure what happened there, but it seemed to work for me.
I don't know if this is the solution for your issue, but I figured I'd throw my hat in the ring ha ha.
Best of luck!
I was trying to install WireShark 1.10.5 in linux.I was following the instructions provided with the software. Now,I am having problems while installing. It says pod2man cannot be found. How can i fix this?
checking for pod2man... no
configure: error: I couldn't find pod2man; make sure it's installed and in your path
try
apt-get install perl-modules
According to FOSSology bug 5619:
the pod2man utility which is used by the build process has been moved to a different package in Fedora 19 called perl-podlators
In previous versions it was in the package perl
so it appears you need to install the package "perl-podlators" to get pod2man.
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.