Can't find gfortran 4.8 to build package

前端 未结 4 1960
后悔当初
后悔当初 2021-02-14 07:31

I\'m trying to install the deldir package in R via install.packages(\"deldir\",type = \'source\') but am getting the following error message (this is O

4条回答
  •  时光取名叫无心
    2021-02-14 07:50

    I found a solution here: https://support.rstudio.com/hc/communities/public/questions/201688563-Problem-with-Mac-Yosemite-Beta-and-RStudio-not-finding-TeX-distribution

    It turns out that Adam Maxwell noted that Yosemite beta has a significant bug in passing environment variables to subprocesses.

    After installing gfortran as in OS X package installation depends on gfortran-4.8 .

    This works: create an alias in your .bash_profile

    alias fixrs="launchctl setenv PATH /usr/texbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
    

    Then close and open the terminal.

    And execute the fixrs command in the terminal before launching RStudio.

    Then I could build igraph successfully.

提交回复
热议问题