unable to execute 'x86_64-conda_cos6-linux-gnu-gcc': No such file or directory (pysam installation)

Sergio.pv picture Sergio.pv · Sep 27, 2017 · Viewed 20.9k times · Source

I am trying to install pysam.

After excecuting:

python path/to/pysam-master/setup.py build

This error is produced:

unable to execute 'x86_64-conda_cos6-linux-gnu-gcc': No such file or directory
error: command 'x86_64-conda_cos6-linux-gnu-gcc' failed with exit status 1

There are similar threads, but they all seem to address the problem assumig administriator rights, which I do not have. Is there a way around to install the needed files?

DISCLAIMER: This question derived from a previous post of mine. manually installing pysam error: "ImportError: No module named version" But since it might require a different approach, I made it a question of its own.

Answer

MF.OX picture MF.OX · Dec 12, 2017

You can also receive the same error while installing some R packages if R was installed using conda (as I had).

Then just install the package by executing: conda install gxx_linux-64 to have that command available.

Source: https://github.com/RcppCore/Rcpp/issues/770#issuecomment-346716808