brew install redis (osx 10.7)

谁说胖子不能爱 提交于 2019-12-05 23:55:29

问题


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!


回答1:


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:




回答2:


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


来源:https://stackoverflow.com/questions/14498885/brew-install-redis-osx-10-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!