title: Cannot install Date::Calc perl module
body: <p>I'm running Solaris on my machine and I would need to install the Date::Calc perl module in order for one of my scripts to work.</p>
  
  <p>When I run the following command:</p>
  
  <pre><code>sudo perl -MCPAN -e 'install Date::Calc'
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Tests succeeded but one dependency not OK (Bit::Vector)
    STBEY/Date-Calc-6.3.tar.gz
    [dependencies] -- NA
  Running make install
    make test had returned bad status, won't install without force
  </code></pre>
  
  <p>I have no prior experience in Perl development, so I have no clue about what the error might be or where to get more information.</p>
  
  <p>What should I do to fix this?</p>
  
  <hr>
  
  <p>When trying to install Bit::Vector first, i.e. when running the following command:</p>
  
  <pre><code>sudo perl -MCPAN -e 'install Bit::Vector'
  </code></pre>
  
  <p>i get the following error message:</p>
  
  <pre><code>Checking if your kit is complete...
  Looks good
  Writing Makefile for Bit::Vector
  Writing patchlevel.h for /usr/bin/perl (5.012003)
  cp lib/Bit/Vector/Overload.pm blib/lib/Bit/Vector/Overload.pm
  cp Vector.pm blib/lib/Bit/Vector.pm
  cp Vector.pod blib/lib/Bit/Vector.pod
  cp lib/Bit/Vector/Overload.pod blib/lib/Bit/Vector/Overload.pod
  cp lib/Bit/Vector/String.pod blib/lib/Bit/Vector/String.pod
  cp lib/Bit/Vector/String.pm blib/lib/Bit/Vector/String.pm
  cc -c    -DPTR_IS_LONG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -xO4    -DVERSION=\"7.2\"  -DXS_VERSION=\"7.2\" -KPIC "-I/usr/perl5/5.12/lib/i86pc-solaris-64int/CORE"   BitVector.c
  sh: line 1: cc: not found
  *** Error code 127
  make: Fatal error: Command failed for target `BitVector.o'
    STBEY/Bit-Vector-7.2.tar.gz
    /usr/bin/make -- NOT OK
  'YAML' not installed, will not store persistent state
  Running make test
    Can't test without successful make
  Running make install
    Make had returned bad status, install seems impossible
  </code></pre>
  
  <hr>
  
  <p>I installed gcc via the following commands (as adviced <a href="https://stackoverflow.com/a/13527976/1103412">here</a>):</p>
  
  <pre><code>pkg install gcc-45 
  pkg install system/header
  </code></pre>
  
  <p>but I still get the same error when trying to install Bit::Vector. Indeed, when I type <code>cc</code> on the command-line, I get the <code>command not found</code> error. When I type <code>gcc</code>, however, I get <code>gcc: no input files</code>.</p>