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
相关推荐
清水白石0082 小时前
隔离的艺术:用 `unittest.mock` 驯服外部依赖,让测试真正可控
python
码农小韩2 小时前
AIAgent应用开发——大模型理论基础与应用(五)
人工智能·python·提示词工程·aiagent
百锦再3 小时前
Java中的char、String、StringBuilder与StringBuffer 深度详解
java·开发语言·python·struts·kafka·tomcat·maven
Jonathan Star3 小时前
Ant Design (antd) Form 组件中必填项的星号(*)从标签左侧移到右侧
人工智能·python·tensorflow
努力努力再努力wz3 小时前
【Linux网络系列】:TCP 的秩序与策略:揭秘传输层如何从不可靠的网络中构建绝对可靠的通信信道
java·linux·开发语言·数据结构·c++·python·算法
deep_drink3 小时前
【论文精读(三)】PointMLP:大道至简,无需卷积与注意力的纯MLP点云网络 (ICLR 2022)
人工智能·pytorch·python·深度学习·3d·point cloud
njsgcs4 小时前
langchain+vlm示例
windows·python·langchain
勇气要爆发4 小时前
LangGraph 实战:10分钟打造带“人工审批”的智能体流水线 (Python + LangChain)
开发语言·python·langchain
jz_ddk4 小时前
[实战] 从冲击响应函数计算 FIR 系数
python·fpga开发·信号处理·fir·根升余弦·信号成形
醒醒该学习了!5 小时前
如何将json文件转成csv文件(python代码实操)
服务器·python·json