When you type commands such as php-v
, you get the following error:
I have been having trouble with this error for several hours, so I would appreciate it if someone could reply.
Error Contents
dyld:Library not loaded:
/usr/local/opt/opensl/lib/libcrypto.1.0.0.dylibReferenced from:
/Users/tanakaakio/.phpbrew/php/php-7.1.3/bin/php Reason—image not
found Abort trap —6
Tried
I searched the Internet, read articles with similar errors, and re-set the PATH, but nothing changed.
Understanding
"Library not found" error
Environment/Status
macOS High Sierra
version 10.13.6
$openssl version
LibreSSL 2.2.7
$ which openssl
/usr/bin/opensl
$ 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 work or file an issue;
Just ignore this.Thanks!
Warning: "config" scripts exist outside your system or Homebrew
directories.`./configure `scripts ofen 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/opensl/lib/libcrypto.1.0.0.dylibReferenced 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)
The same question seems to be asked at home StackOverflow.
There seems to be a pattern over there that will work in two ways.
rvm -- debug osx-ssl-certs update all
In , update the ssl
related files or
brew remove openssl
brew install openssl
In many cases, openssl
is removed once and then reinstalled.
Try it.
I found this answer by searching the key "phpbrew Library not loaded: /usr/local/opt/opensl/lib/libcrypto.1.0.0.dylib"
© 2024 OneMinuteCode. All rights reserved.