我正在尝试使用Homebrew为一个应用项目安装Redis。Homebrew已经被安装并更新到了最新版本。然而,当我在终端运行$ brew install redis
时,总是会遇到相同的错误信息,如下所示。
➜ ~ git:(master) ✗ brew install redis
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Downloading http://download.redis.io/releases/redis-3.2.3.tar.gz
Already downloaded: /Users/oliverisenrich/Library/Caches/Homebrew/redis-3.2.3.tar.gz
==> make install PREFIX=/usr/local/Cellar/redis/3.2.3 CC=clang
Last 15 lines from /Users/oliverisenrich/Library/Logs/Homebrew/redis/01.make:
#include <stdio.h>
^
make[1]: *** [ae.o] Error 1
make[1]: *** [anet.o] Error 1
1 error generated.
1 error generated.
1 error generated.
make[1]: *** [dict.o] Error 1
make[1]: *** [zmalloc.o] Error 1
make[1]: *** [sds.o] Error 1
1 error generated.
make[1]: *** [quicklist.o] Error 1
1 error generated.
make[1]: *** [server.o] Error 1
make: *** [install] Error 2
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/Homebrew/homebrew-core/issues
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
错误消息提示只是警告说不支持我的Mac OS X版本(10.12),并没有明确表示无法安装。然而,尝试运行
brew services start redis
会返回以下消息:➜ nodj git:(JobsPage) ✗ brew services start redis
Service `redis` already started, use `brew services restart redis` to restart.
上述内容让我相信Redis已经安装。然而,运行
brew info redis
却返回以下信息:➜ nodj git:(JobsPage) ✗ brew info redis
redis: stable 3.2.3, HEAD
Persistent key-value database, with built-in net interface
http://redis.io/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/redis.rb
==> Options
--with-jemalloc
Select jemalloc as memory allocator when building Redis
--HEAD
Install HEAD version
==> Caveats
To have launchd start redis now and restart at login:
brew services start redis
Or, if you don't want/need a background service you can just run:
redis-server /usr/local/etc/redis.conf
有没有其他替代方案/解决方法可以使Redis运行起来(最好不需要回退到之前的稳定操作系统版本):