Building a conda package based on R package PNG fails with error "gcc is not able to compile..."
<p>I would like to build a <strong>conda</strong> package from a R package available on the <strong>CRAN</strong> server. I run the following commands:</p>

<pre><code>conda config --add channels r
conda skeleton cran png # for example
conda build r-png/ # patchelf package is installed
</code></pre>

<p>The last command leads to the following error:</p>

<pre><code>Linking packages ...
cc1: error: /root/anaconda/envs/_build/lib/gcc/i686-pc-linux-gnu/4.8.5/include: Keine Berechtigung
cc1: error: /root/anaconda/envs/_build/lib/gcc/i686-pc-linux-gnu/4.8.5/include-fixed: Keine Berechtigung
Installation failed: gcc is not able to compile a simple 'Hello, World' program.
Error: post-link failed for: gcc-4.8.5-3
</code></pre>

<p>This error message is true for all my trials to build a <strong>conda</strong> package bsed on <strong>R CRAN packages</strong>.</p>

<p>Can anybody help?</p>