Brew Error: File exists - redis

I'm on Yosemite and I have Brew installed. I am trying to install redis and I get the following error. How can I fix it?
$ brew install redis
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/redis-2.8.19.yosemite.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/redis-2.8.19.yosemite.bottle.tar.gz
==> Pouring redis-2.8.19.yosemite.bottle.tar.gz
Error: File exists - /usr/local/etc
Warning: Bottle installation failed: building from source.
==> Downloading http://download.redis.io/releases/redis-2.8.19.tar.gz
Already downloaded: /Library/Caches/Homebrew/redis-2.8.19.tar.gz
==> make -C /private/tmp/redis-XuZC7r/redis-2.8.19/src CC=clang
Error: File exists - /usr/local/etc

Related

brew install not working - The requested URL returned error: 404

When I tried brew install --cask another-redis-desktop-manager, it shows below error
==> Downloading https://github.com/qishibo/AnotherRedisDesktopManager/releases/d
##O#- #
curl: (22) The requested URL returned error: 404
Error: Download failed on Cask 'another-redis-desktop-manager' with message: Download failed: https://github.com/qishibo/AnotherRedisDesktopManager/releases/download/v1.5.2/Another-Redis-Desktop-Manager-M1-arm64-1.5.2.dmg
I tried brew update-reset and brew update but still got the same error
From https://github.com/qishibo/AnotherRedisDesktopManager/releases/tag/v1.5.2
M1 dmg version is being repaired...
Meanwhile, you can get version 1.5.1 here.

How do I install ASP.NET 5 vNext on Mac OS X? 404 on mono--monolite

I tried to install the latest ASP.NET on Mac OS X Yosemite according to the instructions on github.
I already have Homebrew, so this step worked fine:
brew tap aspnet/k
However, on the next step, brew install kvm, I get errors:
$ brew install kvm
==> Installing kvm dependency: mono
==> Downloading http://download.mono-project.com/sources/mono/mono-3.8.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/mono-3.8.0.tar.bz2
==> Downloading http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "mono--monolite"
Download failed: http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-111-latest.tar.gz
Note: the first time I ran this, I got a slightly different message when mono-3.8.0 installed successfully.
David Fowler was quick to answer my question on Twitter and suggested a brew update (Thanks David!) but I got this:
$ brew update
error: Your local changes to the following files would be overwritten by merge:
Library/Formula/google-perftools.rb
Please, commit your changes or stash them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
At this point, it seems like it's a Homebrew problem. What am I doing wrong?
Update: sorry, I was an idiot. As suggested by agua from mars and David Folwer, I fixed the issue as follows:
cd /usr/local/Library/Formula/
git reset HEAD google-perftools.rb
git checkout google-perftools.rb
brew update
brew install kvm
And this time kvm installed OK. Then I just added the line source /usr/local/Cellar/kvm/1.0.0-beta1/libexec/kvm.sh to my .bash_profile
As we discuss in comments.
You have a git conflict on this file Library/Formula/google-perftools.rb.
you should undo your change:
git checkout -- Library/Formula/google-perftools.rb
or doing a git reset.
And update brew again

Homebrew Install error

I'm trying to install redis with Homebrew. I'm getting the error below:
brew install redis
==> Downloading http://redis.googlecode.com/files/redis-2.6.14.tar.gz
Already downloaded: /Library/Caches/Homebrew/redis-2.6.14.tar.gz
==> make -C /private/tmp/redis-1Tw6/redis-2.6.14/src CC=cc
Failed to execute: make
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
I've run brew doctor and brew update without any issue. XCode CLT is also up to date. Any ideas?

Homebrew says Download failed when trying to install libksba

In rvm requirements, I have libksba. So I try to install it with homebrew:
➜ ~ brew install libksba
==> Downloading ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.3.0.tar.bz2
curl: (56) Recv failure: Operation timed out
Error: Download failed: ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.3.0.tar.bz2
Is there a way to fix this (by specifying additional repositories) ? Or should I install the lib manually ?
You can
rvm autolibs enable and then
rvm do what you want (in my case: rvm install 1.9.3)

Identify error Paperclip and Imagemagick

I recently upgraded to osx 10.8 (Mtn Lion) and now I am having problems with Imagemagick. I get the following error when I try to upload a file:
Command :: identify -format %wx%h '/var/folders/nd/1cw0mqzj0nb3jv8psz_ht9cr0000gn/T/2011Spring20120803-530-2nr1jn.jpg[0]'
[paperclip] An error was received while processing: #<Paperclip::Errors::NotIdentifiedByImageMagickError: /var/folders/nd/1cw0mqzj0nb3jv8psz_ht9cr0000gn/T/2011Spring20120803-530-2nr1jn.jpg is not recognized by the 'identify' command.>
Command :: identify -format %wx%h '/var/folders/nd/1cw0mqzj0nb3jv8psz_ht9cr0000gn/T/2011Spring20120803-530-2nr1jn.jpg[0]'
[paperclip] An error was received while processing: #<Paperclip::Errors::NotIdentifiedByImageMagickError: /var/folders/nd/1cw0mqzj0nb3jv8psz_ht9cr0000gn/T/2011Spring20120803-530-2nr1jn.jpg is not recognized by the 'identify' command.>
I uninstalled / reinstalled homebrew and imagemagick. I even added the rmagick gem (which I didn't need before) but still get the above error.
brew install imagemagick
Error: imagemagick-6.7.7-6 already installed
Here is brew doctor output:
brew doctor
Warning: Setting DYLD_LIBRARY_PATH can break dynamic linking.
You should probably unset it.
Warning: You have uncommitted modifications to Homebrew's core.
Unless you know what you are doing, you should run:
cd /usr/local && git reset --hard
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
xml2-config
xmlcatalog
xmllint
xslt-config
xsltproc
Consider amending your PATH so that /usr/local/bin
occurs before /usr/bin in your PATH.
I even added the following to my config/environments/development.rb file
Paperclip.options[:command_path] = "/usr/local/bin"
I uninstalled Imagemagick again and reinstalled it. Now I get the following link errors.
==> Installing imagemagick dependency: jpeg
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading http://www.ijg.org/files/jpegsrc.v8d.tar.gz
Already downloaded: /Library/Caches/Homebrew/jpeg-8d.tar.gz
==> ./configure --prefix=/usr/local/Cellar/jpeg/8d
==> make install
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 jpeg'
==> Summary
/usr/local/Cellar/jpeg/8d: 18 files, 1.3M, built in 16 seconds
==> Installing imagemagick dependency: libtiff
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/libtiff-4.0.2.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.2
==> make install
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 libtiff'
==> Summary
/usr/local/Cellar/libtiff/4.0.2: 241 files, 3.6M, built in 24 seconds
Error: You must `brew link jpeg' before little-cms can be installed
When I type brew link jpeg
Error: No such file or directory - /usr/local/Cellar/jpeg/8c
When I type brew link libtiff
Error: No such file or directory - /usr/local/Cellar/libtiff/3.9.5
So in summary the links are looking for older versions of jpeg (8c instead of 8d) and libtiff (3.9.5 instead of 4.0.2)
Any ideas on how to fix this?
I was able to finally fix it with 2 commands. Simple symbolic link, seems pretty hackish...
jpeg fix
cd /usr/local/Cellar/jpeg
ln -s 8d 8c
libtiff fix
/usr/local/Cellar/libtiff
ln -s 4.0.2 3.9.5