title: fix gnuplot installation
body: <p>My gnuplot installation fails because libjpeg cannot not be loaded. </p>
  
  <pre><code>$ gnuplot
  dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib
    Referenced from: /usr/local/bin/gnuplot
    Reason: image not found
  Trace/BPT trap: 5
  </code></pre>
  
  <p>I work with osx-mavericks + XCode 5.1. Gnuplot was first installed in the past under osx-mountain-lion with <strong>homebrew</strong>. And under mountain-lion it worked. I tried to reinstall it now under mavericks, but it does not help.</p>
  
  <pre><code>brew reinstall gnuplot --tests
  ==&gt; Reinstalling gnuplot with --tests
  ..
  ==&gt; make
  ==&gt; make check
    Reason: image not found
  /bin/sh: line 1: 30700 Trace/BPT trap: 5       PATH=$bdir/../src:$PATH GNUPLOT_DRIVER_DIR=$bdir/../src GNUPLOT_LIB=. gnuplot all.dem &lt; /dev/null
  make[2]: *** [check-noninteractive] Error 133
  make[1]: *** [check-am] Error 2
  make: *** [check-recursive] Error 1
  </code></pre>
  
  <p>Additional info: <code>brew install libjpeg</code> says "jpeg-8d already installed" but I can't find libjpeg. I only find several versions of libpng.</p>
  
  <pre><code>$ brew install libjpeg
  Warning: jpeg-8d already installed
  </code></pre>
  
  <p>P.S. I am not firm with the console. So I am thankful for even simple console tips that help me debug the problem. </p>