Goal: You have a brand new install of macOS Ventura (say 13.1) and you have some C/C++ software you need to compile.
You have cloned it with git, installing the Xcode command line tools when promoted, and you have run make. The result: fatal error: 'png.h' file not found
Solution:
Install brew, see: https://brew.sh, then:
brew install libpng brew link libpng sudo ln -s /opt/homebrew/include /usr/local/include sudo ln -s /opt/homebrew/lib /usr/local/lib
This wasn’t obvious to me and took me a little while to figure so I though it might help others to share the solution I found.
Further reading about the location of those symlinks: https://stackoverflow.com/questions/36730549/cannot-create-a-symlink-inside-of-usr-bin-even-as-sudo
Is this the right way? Is there a better way? Let me know!