title: /bin/sh: cc: command not found for Perl module
body: <p>Hi I'm trying to install perl module GD-2.46.</p>
  
  <p>After <code>perl Makefile.PL --ignore_missing_gd</code>,
  I was trying to <code>make</code>
  Then I got the error:</p>
  
  <pre><code> cc -c  -I/project/umw_robert_brown/guang/breakdancer/usr/local/include -I/usr/include -I/usr/include/gd -Wformat=0 -O2   -DVERSION=\"2.46\" -DXS_VERSION=\"2.46\" -fPIC "-I/share/pkg/perl/5.18.1/lib/5.18.1/x86_64-linux-thread-multi/CORE"  -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF GD.c
      /bin/sh: cc: command not found
      make: *** [GD.o] Error 127
  </code></pre>
  
  <p>It seems to me GCC compiler is missing, so I tried</p>
  
  <pre><code>make CC='/share/pkg/gcc/4.9.2/bin/gcc'
  </code></pre>
  
  <p>So for the error above, it's solved (gcc could be found):</p>
  
  <pre><code>/share/pkg/gcc/4.9.2/bin/gcc -c  -I/project/umw_robert_brown/guang/breakdancer/usr/local/include -I/usr/include -I/usr/include/gd -Wformat=0 -O2   -DVERSION=\"2.46\" -DXS_VERSION=\"2.46\" -fPIC "-I/share/pkg/perl/5.18.1/lib/5.18.1/x86_64-linux-thread-multi/CORE"  -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF GD.c
  </code></pre>
  
  <p>But I got another error complaining </p>
  
  <pre><code>LD_RUN_PATH="/project/umw_robert_brown/guang/breakdancer/usr/local/lib:/usr/lib64:/usr/lib" cc  -shared -O2 -L/usr/local/lib -fstack-protector GD.o  -o blib/arch/auto/GD/GD.so     \
         -L/project/umw_robert_brown/guang/breakdancer/usr/local/lib -L/usr/lib -L/usr/lib64 -lgd -lfreetype -ljpeg -lpng -lz -lm -lX11 -lXpm     \
  
  /bin/sh: cc: command not found
  make: *** [blib/arch/auto/GD/GD.so] Error 127
  </code></pre>
  
  <p>I'm just so confused, since the first <code>cc</code> could be found, why couldn't find the second?
  Thx</p>