Several hours of frustration here and looking to see if anyone has any advice.
I'm trying to install GeoIP vie Homebrew and receive the following error just prior to the install finishing:
"Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link geoip'"
brew link geoip returned this error:
"Error: Could not symlink file: /usr/local/Cellar/geoip/1.4.8/etc/GeoIP.conf.default
/usr/local/etc is not writable. You should change its permissions."
I also tried "sudo link geoip" and recieved this error:
"Cowardly refusing to `sudo brew link'"
I'm not entirely familiar with permissions and such and was wondering what I needed to do from the command line to get this to link properly. Any help greatly appreciated.
I think I found the answer. This script fixes the permissions issue:
ruby -e "$(curl -fsSL https://gist.github.com/raw/768518/fix_homebrew.rb)"
Related
I'm new to using phraseApp and fastlane. I was trying to pull the latest changes in Phraseapp using fastlane. After calling "phraseapp_all" I get an error message Exit status of command 'cd ../Project/Resources && phraseapp pull' was 127 instead of 0. sh: phraseapp: command not found.
I tried reinstalling phrase but no luck. Any idea on how to fix this?
Use brew install phraseApp instead of phrase only.
I thought that phraseApp was just renamed to phrase. They were somewhat different.
This worked for me.
brew tap phrase/brewed
Install phraseapp client:
brew install phrase/brewed/phraseapp
I have been having certain issues while trying to setup my Mac (OS:Catalina) for a React Native Development.
I have read multiple guides and tutorials as I am facing issues initializing a react native build (react-native init). I keep getting err lifecycle validation
Multiple articles suggest to download Homebrew and it might solve a lot of the issues related to package folders for node etc.
When I try installing Homebrew using the below link -
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I get a message on my terminal :
Curl: (7) Couldn't connect to server.
If I try to type in the address on the browser, I get the installation code which I saved on the Mac storage as install.rb
Entering '/usr/bin/Ruby install' throws a prompt that the folder doesn't exist.
I already have Xcode and Xcode Command Line Tools installed.
I would appreciate any help I can get on how I can just prepare my system for learning react native development for iOS.
I am at a bit of 'no clue what I am doing wrong' phase.
Try this command on terminal
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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.
So, I've googled and googled and googled for months and can't find anyone else having this error. So, I'm going to ask here (even though my questions keep getting closed and deleted). This also happens when I try to use any of Homebrew's install commands. It also happens when I try to install git.
I went onto the Homebrew wiki and found this command:
mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
I got the following error:
dyld: Library not loaded: /usr/local/Cellar/openssl/1.0.1e/lib/libcrypto.1.0.0.dylib
Referenced from: /opt/local/lib/libssl.1.0.0.dylib
Reason: no suitable image found. Did find:
/usr/local/Cellar/openssl/1.0.1e/lib/libcrypto.1.0.0.dylib: stat() failed with errno=13
I ran this command:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
And got the exact same error.
I have XCode Command Line Tools installed, and have the latest version of XCode.
I need help with this because I wish to install Ninja-IDE on Mac.
Thanks! Any help is appreciated!
Well, I fixed this issue myself. I had to wipe my MacBook Pro, and then it worked. Good luck, and hope this helps anyone else who has had this issue!