php -v
などのコマンドを打つと下記エラーが出ます。
数時間このエラーで躓いていますので、どなたかご回答頂けると幸いです。
エラー内容
dyld: Library not loaded:
/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib Referenced from:
/Users/tanakaakio/.phpbrew/php/php-7.1.3/bin/php Reason: image not
found Abort trap: 6
試したこと
ネット上で検索して、似たようなエラーの記事を見て、PATHを設定し直したりしましたが何も変わらない状況です。
理解したこと
「ライブラリが見つからないよ」というエラーであること
環境/状況
macOS High Sierra
バージョン 10.13.6
$ openssl version
LibreSSL 2.2.7
$ which openssl
/usr/bin/openssl
$ brew --prefix
/usr/local
$ xcode-select --install
xcode-select: error: command line tools are already installed, use
"Software Update" to install updates
$ 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 what 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: /Users/tanakaakio/.phpbrew/php/php-7.1.3/bin/php-config
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/etc/bash_completion.d/brew-services
/usr/local/share/zsh/site-functions/_brew_services
tanakfaakionoMacBook-ea:~ tanakaakio$ php -v dyld: Library not loaded:
/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib Referenced from:
/Users/tanakaakio/.phpbrew/php/php-7.1.3/bin/php Reason: image not
found Abort trap: 6
$ brew --version
Homebrew 1.8.4 Homebrew/homebrew-core (git revision 434d; last commit
2018-12-01)