Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

brew install redis (osx 10.7)

i tried installing Redis on osx 10.7 via homebrew in bash and I get the following error:

==> Downloading http://redis.googlecode.com/files/redis-2.6.9.tar.gz
Already downloaded: /Library/Caches/Homebrew/redis-2.6.9.tar.gz
==> make -C /private/tmp/redis-wQAX/redis-2.6.9/src CC=cc
Error: Permission denied - /usr/local/var/db

Redis is not installed from what i can tell.

$ ps -aux | grep redis
ps: No user named 'x'

I cannot find the solution and don't know who to ask! Please let me know if you have workaround or solution/suggestion to this. Thank you!

like image 614
aug2uag Avatar asked Jan 24 '13 10:01

aug2uag


People also ask

Where is Redis installed?

You can download the latest version of Redis from https://redis.io/download. Redis can be installed on any server. In this case we'll install it locally for testing. to make Redis start automatically, and re-start when the computer reboots.


2 Answers

I am also using osx 10.7. I think you don't need to install Redis via homebrew. You can just follow the simple instructions in redis homepage:

enter image description here

like image 51
Jintian DENG Avatar answered Oct 14 '22 22:10

Jintian DENG


in bash:

cd /usr/local/var/
ls

the directory 'db' is most likely missing, create it:

mkdir db

then run

brew install redis

check /usr/local/var/log

ls

most likely the directory 'log' is missing, create it

mkdir log
brew install redis
like image 22
aug2uag Avatar answered Oct 14 '22 23:10

aug2uag