1. 现象
执行 brew install postgresql时报错“No such file or directory @ rb_sysopen …”

2. 解决方案
用 brew 单独下载依赖包 openssl@1.1
brew install openssl@1.1

3. 验证
再次执行 postgresql 的安装命令,成功!
(ll_env) chengrui@chengruis-MacBook-Air learning_log % brew install postgresql
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/krb5-1.19.3
Alrea

本文讲述了在Mac上通过Homebrew安装PostgreSQL时遇到的'Nosuchfileordirectory'错误,解决方法是先单独安装openssl依赖,随后成功安装了PostgreSQL,并提供了迁移数据和后续操作的提示。

3066

被折叠的 条评论
为什么被折叠?



