r - Having issues installing gam package in RStudio ver. 3.6.2
问题描述
I have been trying a lot of different ways to install this package such as:
- using dependencies argument
- installing from binary zip file
But I keep getting the following error:
* installing *source* package ‘gam’ ...
** package ‘gam’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fPIC -Wall -g -O2 -c backfit.f -o backfit.o
make: gfortran: No such file or directory
make: *** [backfit.o] Error 1
ERROR: compilation failed for package ‘gam’
* removing ‘/Users/username/Library/R/3.6/library/gam’
* restoring previous ‘/Users/username/Library/R/3.6/library/gam’
Warning in install.packages :
installation of package ‘gam’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/78/90s7m_qn425994767scnt9nh0000gn/T/RtmpvWmhBQ/downloaded_packages’
解决方案
推荐阅读
- marklogic - Marklogic:元素值查询 vs 路径范围查询
- c# - 使用 MVVM 时未填充 WPF 扩展器标头
- python - If-Else 语句不要求 Python 中的输入
- java - 如何在maven中创建一个jar?
- sql - 具有 OR 条件的 2 个表之间的 SQL 连接
- python - 如何将排序列表分组为该列表连续元素的起点和终点的元组?
- node.js - Lindo(Dofus-touch emulator) "npm-install error" node-sass@4.9.3 postinstall: `node scripts/build.js`
- r - 从文件名列表中提取和匹配集
- jmeter - Jmeter - 缺少参数
- java - 我可以获得初始化我的 bean 的配置类名称吗?