Error : "sh: gfortran: command not found" | Ubuntu 16.04
Error : "sh: gfortran: command not found" | Ubuntu 16.04
我正在尝试安装包,circular
,我在安装过程中遇到以下错误。
我尝试了几个帖子中建议的几个选项,但没有用。我还尝试加载其他包,例如 spatstat
并且在这样做时不会发生此错误。
谁能帮我解决这个问题。
您需要一个 Fortran 编译器来编译某些 R 包。安装它:
sudo apt-get install gfortran
总体思路是安装(虚拟)包r-base-dev
:
Depends: r-base-core (>= 3.2.5-1xenial), build-essential, gcc, g++,
gfortran, libblas-dev | libatlas-base-dev,
liblapack-dev | libatlas-base-dev, libncurses5-dev,
libreadline-dev, libjpeg-dev, libpcre3-dev, libpng-dev,
zlib1g-dev, libbz2-dev, liblzma-dev, cdbs
Suggests: debhelper, texlive-base, texlive-latex-base,
texlive-generic-recommended, texlive-fonts-recommended,
texlive-fonts-extra, texlive-extra-utils,
texlive-latex-recommended, texlive-latex-extra, texinfo
其中包含构建软件包所需的大量内容。如您所见,包括 Fortran 编译器。
我正在尝试安装包,circular
,我在安装过程中遇到以下错误。
我尝试了几个帖子中建议的几个选项,但没有用。我还尝试加载其他包,例如 spatstat
并且在这样做时不会发生此错误。
谁能帮我解决这个问题。
您需要一个 Fortran 编译器来编译某些 R 包。安装它:
sudo apt-get install gfortran
总体思路是安装(虚拟)包r-base-dev
:
Depends: r-base-core (>= 3.2.5-1xenial), build-essential, gcc, g++,
gfortran, libblas-dev | libatlas-base-dev,
liblapack-dev | libatlas-base-dev, libncurses5-dev,
libreadline-dev, libjpeg-dev, libpcre3-dev, libpng-dev,
zlib1g-dev, libbz2-dev, liblzma-dev, cdbs
Suggests: debhelper, texlive-base, texlive-latex-base,
texlive-generic-recommended, texlive-fonts-recommended,
texlive-fonts-extra, texlive-extra-utils,
texlive-latex-recommended, texlive-latex-extra, texinfo
其中包含构建软件包所需的大量内容。如您所见,包括 Fortran 编译器。