我知道与这个错误相关的问题很多,但我尝试了所有答案,都没有起作用。
完整错误信息
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
Referenced from: /usr/local/opt/php@7.1/bin/php
Reason: image not found
Abort trap: 6
错误发生时间?
在通过 RVM 更新 Ruby 到 2.6.3 后立即出现。
每当我在终端输入“php”时,错误就会出现。
采取的步骤
- 基本步骤:重新启动 MacBook,打开新的终端窗口。
- 卸载/重新安装:Node、Openssl、libpng、Ruby
- 更新/升级:brew
- 取消链接/链接:libidn、autoconf
- 通过 chown -R /usr/local 赋予自己所有权限
- OpenSSL: $sudo rm /usr/bin/openssl,brew reinstall openssl@1.1
- Brew cleanup
- 重新安装 PHP
版本
Mac OS Mojave 10.14.6
PHP 7.4
- Ruby 2.6.3p62
- RVM 1.29.9
运行 Brew Doctor 时
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
/opt/local/bin/python2.7-config
/opt/local/bin/curl-config
/opt/local/bin/ncursesw6-config
/opt/local/bin/pcre-config
/opt/local/bin/ncurses6-config
/opt/local/bin/pcap-config
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
(here it posts all the /usr/local/include/node files, but the list exceeds character limitations)
有没有解决此错误的想法?
brew reinstall php@7.4
- Zymawy