安装"Rglpk"有什么问题?在Mac上? [英] what's wrong with installation of "Rglpk" on mac?
本文介绍了安装"Rglpk"有什么问题?在Mac上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
> install.packages("Rglpk")
Package which is only available in source
form, and may need compilation of
C/C++/Fortran: ‘Rglpk’
Do you want to attempt to install these from sources?
y/n: y
installing the source package ‘Rglpk’
试开URL’https://cran.rstudio.com/src/contrib/Rglpk_0.6-3.tar.gz'
Content type 'application/x-gzip' length 20892 bytes (20 KB)
==================================================
downloaded 20 KB
* installing *source* package ‘Rglpk’ ...
** 成功将‘Rglpk’程序包解包并MD5和检查
** libs
/bin/sh: line 0: cd: GLPK: No such file or directory
make: *** [GLPK.ts] Error 1
ERROR: compilation failed for package ‘Rglpk’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rglpk’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rglpk’
Warning in install.packages :
installation of package ‘Rglpk’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/b2/ph_1yql507ddv6d659lcm99h0000gn/T/Rtmpfm2CvV/downloaded_packages’
我的RStudio是全新的(今天才下载)谢谢!
My RStudio is all new( just downloaded today ) Thanks !
推荐答案
rglpk
仅是 GMPK
库的接口,该库必须在安装之前安装在系统上安装 rglpk
.对于MacOS,您可以使用 Homebrew 或手动安装.
rglpk
is a mere interface to the GMPK
library, which must be installed on the system prior to installing rglpk
. For MacOS, you can install it with Homebrew, or install it manually.
这篇关于安装"Rglpk"有什么问题?在Mac上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文