title: Perl: installing with Perlbrew on Macos Sierra
body: <p>I am attempting to use the lastest version of Perlbrew to install the latest stable version of Perl (5.24.1) with multi-threading on a computer running macOS-Sierra.</p>
  
  <p>Perlbrew appears to be installed correctly but when I run the command:</p>
  
  <pre><code>Perlbrew install perl-5.24.1 --thread or
  perlbrew install stable --thread
  </code></pre>
  
  <p>The installation proceeds but then fails with the following message</p>
  
  <pre><code>Installation process failed. To spot any issues, check
  
    /Users/alan/perl5/perlbrew/build.perl-5.24.1.log
  
  If some perl tests failed and you still want to install this distribution anyway,
  do:
  
    (cd /Users/alan/perl5/perlbrew/build/perl-5.24.1; make install)
  
  You might also want to try upgrading patchperl before trying again:
  </code></pre>
  
  <p>Looking at the log file as suggested above I find the following error messages at the end of the file:</p>
  
  <pre><code>1 error generated.
  make[1]: *** [HiRes.o] Error 1
  cc -c   -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack- protector-strong -I/usr/local/include -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings -Wthread-safety -O3 -DVERSION=\"1.9733\" -DXS_VERSION=\"1.9733\"  "-I../.."  -DTIME_HIRES_NANOSLEEP -DTIME_HIRES_CLOCK_GETTIME -DTIME_HIRES_CLOCK_GETRES -DTIME_HIRES_CLOCK_NANOSLEEP -DTIME_HIRES_CLOCK -DTIME_HIRES_STAT=1 -DATLEASTFIVEOHOHFIVE HiRes.c
  HiRes.xs:945:15: error: use of undeclared identifier 'darwin_time_mutex'
  MUTEX_INIT(&amp;darwin_time_mutex);
            ^
  1 error generated.
  make[1]: *** [HiRes.o] Error 1
  Unsuccessful make(dist/Time-HiRes): code=512 at make_ext.pl line 569.
  make: *** [lib/auto/Time/HiRes/HiRes.bundle] Error 25
  ##### Brew Failed #####"
  </code></pre>
  
  <p>At other points in the log file, the following message appears several times too (although I have no idea how relevant this is to the failed installation process):</p>
  
  <pre><code>ld: warning: object file (xxxxxxxx) was built for newer OSX version (10.12) than being linked (10.4)
  </code></pre>
  
  <p>I have searched for similar problems on the web and found nothing close. I therefore wondering if this is a general issue with Perlbrew and Sierra or whether it is specific to my setup.</p>
  
  <p>Obviously I am beginner at programming and programming in Perl especially so please keep any responses as simple as possible</p>
  
  <p>Thanks for any help</p>