侧边栏壁纸
  • 累计撰写 16 篇文章
  • 累计创建 17 个标签
  • 累计收到 1 条评论

Mac PHP5.6/7.0 - dyld: Library not loaded - openssl1.0.0 needed

xiuxiubiu
2020-04-26 / 0 评论 / 0 点赞 / 370 阅读 / 611 字 / 正在检测是否收录...

php5.6运行依赖于openssl1.0
Mac升级系统后openssl更新到了1.1

$ /usr/local/opt/php@5.6/bin/php -v
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/opt/php@5.6/bin/php
  Reason: image not found

重新安装openssl1.0.0d

# 第一种
$ brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

# 第二种
$ brew tap tholu/tap
$ brew install tholu/tap/openssl
$ brew reinstall php@5.6

运行php -v

$ /usr/local/opt/php@5.6/bin/php -v
PHP 5.6.40 (cli) (built: Apr 23 2019 11:14:34) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
0

评论