gpt4 book ai didi

node.js - 如何在 macOS Sierra Public Beta 上安装 Redis

转载 作者:IT王子 更新时间:2023-10-29 06:02:23 24 4
gpt4 key购买 nike

我正在尝试使用 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.

以上内容让我相信它已安装。然而,运行 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(最好不需要恢复到之前的稳定操作系统版本:

最佳答案

现在已经修复了,你可以这样做:

brew update
brew install redis

确认在这里工作。

关于node.js - 如何在 macOS Sierra Public Beta 上安装 Redis,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38806074/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com