【问题标题】:OpenSSL has the wrong version installed or is missing from my systemOpenSSL 安装了错误的版本或从我的系统中丢失
【发布时间】:2017-05-31 01:53:31
【问题描述】:

当我尝试在新项目中执行composer install 时,我一直在尝试解决这个问题。我找到了许多解决方案,包括:

brew update
brew install openssl force link

export PATH=$(brew --prefix openssl)/bin:$PATH in ~/.bash_profile

但都导致了这个错误:

问题 1

  • minishlink/web-push v1.1 需要 lib-openssl * -> 请求的链接库 openssl 安装了错误的版本或从您的系统中丢失,请确保有提供它的扩展。

  • laravel-notification-channels/webpush dev-master 需要 minishlink/web-push 1.1.* -> 可以满足 minishlink/web-push[v1.1]。

  • laravel-notification-channels/webpush dev-master 的安装请求 -> laravel-notification-channels/webpush[dev-master] 可以满足。

$ which openssl
/usr/local/opt/openssl/bin/openssl

$ openssl version -a  
OpenSSL 1.0.2j  26 Sep 2016
built on: reproducible build, date unspecified
platform: darwin64-x86_64-cc

我的 PHP 版本是 5.6.24。

我的问题是,如果我卸载它,我会收到警告:

Error: Refusing to uninstall /usr/local/Cellar/openssl/1.0.2j
because it is required by mysql, which is currently installed.
You can override this and force removal with:
  brew uninstall --ignore-dependencies openssl

如果我卸载 OpenSSL 并重新安装它会影响 MYSQL 吗?我必须重新安装 MySQL 和 PHP 吗?因为我正在做一些项目,我害怕把事情搞砸。 更新

我在下面的评论中找到了解决方案,这里的网站上没有提到它:) 祝你好运! 谢谢

【问题讨论】:

标签: php mysql macos openssl homebrew


【解决方案1】:

我刚刚关注了this 页面,现在可以使用了

【讨论】:

    猜你喜欢
    • 2018-07-12
    • 2016-09-25
    • 1970-01-01
    • 2017-05-11
    • 1970-01-01
    • 2022-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多