MacBook安装手动openssl@3

MacBook安装 openssl@3

安装rabbitmq, 报错

复制代码
/usr/local/opt/openssl@3/lib/libssl.3.dylib

通过 brew 安装 openssl@3,提示系统版本过低,无法安装,决定直接进行手动安装

1、下载openssl

openssl下载地址

brew 安装时看一下下载版本,我是直接下载的最新版本

2、解压

shell 复制代码
tar -zxvf openssl-3.4.0.tar.gz
cd openssl-3.4.0

3、配置 openssl

方法一(推荐):
shell 复制代码
perl ./Configure --prefix=/usr/local/Cellar/openssl@3/3.4.0 --openssldir=/usr/local/openssl@3 --libdir=lib no-ssl3 no-ssl3-method no-zlib darwin64-x86_64-cc enable-ec_nistp_64_gcc_128
方法二:

因为现在macbook目录权限问题可能会导致失败

shell 复制代码
./config enable-fips --prefix=/usr/local --openssldir=/usr/local/openssl

4、编译安装

1、编译
shell 复制代码
make
2、测试(非必要)
shell 复制代码
make test
3、安装

进行超管身份进行安装,解决没有权限的问题

shell 复制代码
sudo make install MANDIR=/usr/local/Cellar/openssl@3/3.3.0/share/man MANSUFFIX=ssl

查看安装是否完成

shell 复制代码
openssl version

如果查看不是当前安装的版本,建议进行环境变量的配置

查看openssl 版本

shell 复制代码
which openssl
4、brew进行管理

可以使用brew链接 openssl,可通过brew进行管理手动安装

shell 复制代码
brew link openssl@3
相关推荐
IVEN_12 小时前
只会Python皮毛?深入理解这几点,轻松进阶全栈开发
python·全栈
Ray Liang14 小时前
用六边形架构与整洁架构对比是伪命题?
java·python·c#·架构设计
AI攻城狮14 小时前
如何给 AI Agent 做"断舍离":OpenClaw Session 自动清理实践
python
千寻girling14 小时前
一份不可多得的 《 Python 》语言教程
人工智能·后端·python
AI攻城狮17 小时前
用 Playwright 实现博客一键发布到稀土掘金
python·自动化运维
曲幽17 小时前
FastAPI分布式系统实战:拆解分布式系统中常见问题及解决方案
redis·python·fastapi·web·httpx·lock·asyncio
孟健1 天前
Karpathy 用 200 行纯 Python 从零实现 GPT:代码逐行解析
python
码路飞1 天前
写了个 AI 聊天页面,被 5 种流式格式折腾了一整天 😭
javascript·python
用户8307196840821 天前
RabbitMQ vs RocketMQ 事务大对决:一个在“裸奔”,一个在“开挂”?
后端·rabbitmq·rocketmq