Sudden "Library not loaded" errors...help


(Mike) #1

I’m new to Mac and have had a successful dev setup with PHP 7.1, Apache 2.4, Node, Gulp, etc for the last few weeks.

Suddenly today things are broken. I did not initiate any updates that I know of.

node -v gives this error:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/bin/node
Reason: image not found
Abort trap: 6

Similar for PHP.
My Apache httpd-vhosts.conf file also seems to have reverted to its default state (the Virtual Hosts I’d been using have disappeared).

The rest of my system is running fine, files are intact programs are working.
Can anyone point me in the right direction? I’m not sure where to start.


(Mike) #2

Thinking further the problem started after I ran gulp sass in a Laravel project.
I’m not sure if that triggered some homebrew updates.


(Mike) #3

Seems to be resolved.

Somehow Node upgraded to v8.4.0 isn’t compatible with my Laravel project. Apache also stopped.

I linked node@6 to fix.