Cannot install r packages in the interactive session

I am working on I am trying to install the R package dnapath. However, it was halted by the error:

/bin/sh: 1: x86_64-conda-linux-gnu-cc: not found
make: *** [/opt/miniconda/lib/R/etc/Makeconf:170: C_FORTRAN_interface.o] Error 127

I have tried:

conda install conda
conda update --all
conda install gcc_linux-64 
conda install gxx_linux-64
conda install gfortran_linux-64

But the issue persists. I believe the gcc has been installed, as I saw the following error when I execute x86_64-conda-linux-gnu-cc in the terminal.

x86_64-conda-linux-gnu-cc: fatal error: no input files
compilation terminated.

echo $CC will return

This is a general problem, as I cannot install some other packages because of the same error.