Build failed.
10 warnings generated.
 LD	../priv/x86_64-apple-darwin16.7.0/
ld: warning: text-based stub file /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox.tbd and library file /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox are out of sync. Falling back to library file for linking.
ld: file not found: /usr/local/opt/jpeg/lib/libjpeg.8.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../priv/x86_64-apple-darwin16.7.0/] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2


brew switch jpeg 8d

ではうまくいきません。8dと9c両方使っているようです。 そこで、現在使っている9cのディレクトリ内に8dへのリンクを貼ります。

cd /usr/local/Cellar/jpeg/9c/lib/
ln -s ../../8d/lib/libjpeg.8.dylib libjpeg.8.dylib