title: How to install Apache2::AuthCookie in Centos 6?
body: <p>I am trying to install Apache2::AuthCookie on a CentOS 6 machine with the following command:</p>
  
  <pre><code>cpanm Apache2::AuthCookie
  </code></pre>
  
  <p>but I get the following error:</p>
  
  <blockquote>
    <p>--> Working on Apache2::AuthCookie
    Fetching <a href="http://www.cpan.org/authors/id/M/MS/MSCHOUT/Apache-AuthCookie-3.22.tar.gz" rel="nofollow">http://www.cpan.org/authors/id/M/MS/MSCHOUT/Apache-AuthCookie-3.22.tar.gz</a> ... OK</p>
    
    <p>Configuring Apache-AuthCookie-3.22 ... OK</p>
    
    <p>==> Found dependencies: autobox</p>
    
    <p>--> Working on autobox</p>
    
    <p>Fetching <a href="http://www.cpan.org/authors/id/C/CH/CHOCOLATE/autobox-2.82.tar.gz" rel="nofollow">http://www.cpan.org/authors/id/C/CH/CHOCOLATE/autobox-2.82.tar.gz</a> ... OK</p>
    
    <p>Configuring autobox-2.82 ... OK</p>
    
    <p>Building and testing autobox-2.82 ... FAIL</p>
    
    <p>! Installing autobox failed. See /root/.cpanm/work/1415007741.22940/build.log for details. Retry with --force to force install it.</p>
    
    <p>! Installing the dependencies failed: Module 'autobox' is not installed</p>
    
    <p>! Bailing out the installation for Apache-AuthCookie-3.22.</p>
  </blockquote>
  
  <p>Any ideas how to solve this problem?</p>
  
  <p>build.log file</p>
  
  <pre><code>cpanm (App::cpanminus) 1.7014 on perl 5.010001 built for x86_64-linux-thread-multi
  Work directory is /root/.cpanm/work/1415007741.22940
  You have make /usr/bin/make
  You have /usr/bin/wget
  You have /bin/tar: tar (GNU tar) 1.23
  Copyright (C) 2010 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;.
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.
  
  Written by John Gilmore and Jay Fenlason.
  Searching Apache2::AuthCookie on cpanmetadb ...
  --&gt; Working on Apache2::AuthCookie
  Fetching http://www.cpan.org/authors/id/M/MS/MSCHOUT/Apache-AuthCookie-3.22.tar.gz
  -&gt; OK
  Unpacking Apache-AuthCookie-3.22.tar.gz
  Entering Apache-AuthCookie-3.22
  Checking configure dependencies from META.yml
  Configuring Apache-AuthCookie-3.22
  Running Makefile.PL
  [   info] generating script t/TEST
  Checking if your kit is complete...
  Looks good
  Warning: prerequisite autobox 1.1 not found.
  Generating a Unix-style Makefile
  Writing Makefile for Apache::AuthCookie
  Writing MYMETA.yml and MYMETA.json
  -&gt; OK
  Checking dependencies from MYMETA.json ...
  Checking if you have Test::More 0 ... Yes (1.001008)
  Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.00)
  Checking if you have Apache::Test 1.35 ... Yes (1.38)
  Checking if you have Class::Load 0.03 ... Yes (0.22)
  Checking if you have autobox 1.1 ... No
  Checking if you have mod_perl2 1.999022 ... Yes (2.000004)
  Checking if you have CGI 3.12 ... Yes (4.09)
  ==&gt; Found dependencies: autobox
  Searching autobox on cpanmetadb ...
  --&gt; Working on autobox
  Fetching http://www.cpan.org/authors/id/C/CH/CHOCOLATE/autobox-2.82.tar.gz
  -&gt; OK
  Unpacking autobox-2.82.tar.gz
  Entering autobox-2.82
  Checking configure dependencies from META.json
  Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.00)
  Configuring autobox-2.82
  Running Makefile.PL
  Checking if your kit is complete...
  Looks good
  Generating a Unix-style Makefile
  Writing Makefile for autobox
  Writing MYMETA.yml and MYMETA.json
  -&gt; OK
  Checking dependencies from MYMETA.json ...
  Checking if you have Scope::Guard 0.20 ... Yes (0.20)
  Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.00)
  Building and testing autobox-2.82
  cp lib/autobox.pod blib/lib/autobox.pod
  cp lib/autobox/universal.pm blib/lib/autobox/universal.pm
  cp lib/autobox.pm blib/lib/autobox.pm
  Running Mkbootstrap for autobox ()
  chmod 644 "autobox.bs"
  "/usr/bin/perl" "/usr/share/perl5/ExtUtils/xsubpp"  -typemap "/usr/share/perl5/ExtUtils/typemap"  autobox.xs &gt; autobox.xsc &amp;&amp; mv autobox.xsc autobox.c
  gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -Wall   -DVERSION=\"2.82\" -DXS_VERSION=\"2.82\" -fPIC "-I/usr/lib64/perl5/CORE"   autobox.c
  /bin/sh: gcc: command not found
  make: *** [autobox.o] Error 127
  -&gt; FAIL Installing autobox failed. See /root/.cpanm/work/1415007741.22940/build.log for details. Retry with --force to force install it.
  -&gt; FAIL Installing the dependencies failed: Module 'autobox' is not installed
  -&gt; FAIL Bailing out the installation for Apache-AuthCookie-3.22.
  </code></pre>