title: x86_64-conda_cos6-linux-gnu-gcc: not found
body: <p>I cannot install modules using cpanm inside conda.</p>
  
  <pre><code>cpanm --force Math::CDF                                 
  --&gt; Working on Math::CDF
  Fetching http://www.cpan.org/authors/id/C/CA/CALLAHAN/Math-CDF-0.1.tar.gz ... OK
  Configuring Math-CDF-0.1 ... OK
  Building and testing Math-CDF-0.1 ... FAIL
  ! Installing Math::CDF failed. See /home/juan/.cpanm/work/1552930475.22685/build.log for details. Retry with --force to force install it.
  </code></pre>
  
  <p>The error is</p>
  
  <pre><code>/bin/sh: 1: /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc: not found
  </code></pre>
  
  <p>However x86_64-conda_cos6-linux-gnu-gcc is in the path</p>
  
  <pre><code>(bio) ➜  ~ which x86_64-conda_cos6-linux-gnu-gcc
  /home/juan/miniconda3/envs/bio/bin/x86_64-conda_cos6-linux-gnu-gcc
  </code></pre>
  
  <p>What could be wrong with cpanm or conda?</p>
  
  <p>I'm using miniconda in Ubuntu 18.04</p>