【问题标题】:Error : "sh: gfortran: command not found" | Ubuntu 16.04错误:“sh:gfortran:找不到命令”| Ubuntu 16.04
【发布时间】:2017-07-15 23:26:02
【问题描述】:

我正在尝试安装包circular,在安装过程中出现以下错误。

我尝试了一些帖子中建议的选项,但没有奏效。我还尝试加载其他包,例如spatstat,并且在执行此操作时不会发生此错误。

谁能帮我解决这个问题。

【问题讨论】:

    标签: r ubuntu-16.04 r-package


    【解决方案1】:

    您需要一个 Fortran 编译器来编译某些 R 包。安装它:

    sudo apt-get install gfortran
    

    【讨论】:

      【解决方案2】:

      总体思路是安装(虚拟)包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 编译器。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-04-25
        • 2017-12-21
        • 2017-04-12
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-01-12
        • 1970-01-01
        相关资源
        最近更新 更多