Odd Error: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib


(Joseph Roberts) #1

Getting this error across random tasks I’m trying to receive.

I first received this error when running this ansible playbook:

Getting this error randomly on deploy (fresh provision)

TASK [deploy : Install npm dependencies] *****************************************************************************************************************************************************
System info:
  Ansible 2.4.3.0; Darwin
  Trellis at "Add `xdebug.remote_autostart` to simplify xdebug sessions"
---------------------------------------------------
non-zero return code
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
fatal: [206.189.199.105]: FAILED! => {"changed": true, "cmd": ["yarn"], "delta": "0:00:00.388240", "end": "2018-05-11 18:20:44.012606", "rc": -6, "start": "2018-05-11 18:20:43.624366", "stderr_lines": ["dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib", "  Referenced from: /usr/local/bin/node", "  Reason: image not found"], "stdout": "", "stdout_lines": []}
        to retry, use: --limit @/Users/josephroberts/localdev/atlantaestatelawcenter.com/trellis/deploy.retry

PLAY RECAP ***********************************************************************************************************************************************************************************
206.189.199.105            : ok=12   changed=3    unreachable=0    failed=1
localhost                  : ok=0    changed=0    unreachable=0    failed=0

I also saw the error when trying to run valet install (laravel’s non-vagrant local development environment):

valet install                                                                                                                           ✔  2363  18:37:21
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
Password:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
/usr/local/bin/valet: line 54: 73980 Abort trap: 6           php "$DIR/cli/valet.php" "$@"

Here’s what I get when I run brew doctor:

brew doctor                                                                                                                           1 ↵  2370  18:42:54
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: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libopenh264-1.4.0-osx64.dylib

Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
  echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc

Warning: Broken symlinks were found. Remove them with `brew prune`:
  /usr/local/opt/ansible@2.4

Not really sure where to go with this. Don’t have a lot of experience with package manager’s for OS’s.
Thoughts? Any help is greatly appreciated. At this point I’m pretty reliant on homebrew to get my work done.