Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib

I get the following error while loading image :

Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib

enter image description here

like image 679
Samiksha Jagtap Avatar asked Mar 09 '23 15:03

Samiksha Jagtap


2 Answers

I resolved the issue with brew install libpng as suggested here.

like image 94
Samiksha Jagtap Avatar answered Apr 28 '23 00:04

Samiksha Jagtap


According to this https://github.com/BVLC/caffe/issues/3806

I tried this command

brew link --overwrite libpng

It worked like a charm!! enter image description here

like image 33
Ameen Rabea Avatar answered Apr 28 '23 00:04

Ameen Rabea