安装r 源代码 linux,在RStudio中从源代码安装R软件包时遇到问题-Ubuntu 16.04
我在64位Ubuntu 16.04上运行R和RStudio,并尝试进行群集分析,尽管我认为我的错误并不特定于此软件包...但是当我尝试从CRAN 安装软件包' ClusterR '时,我收到以下错误。
> install.packages("ClusterR")
Installing package into ‘/home/daniel/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘tiff’, ‘OpenImageR’, ‘gmp’
trying URL 'https://cran.rstudio.com/src/contrib/tiff_0.1-5.tar.gz'
Content type 'application/x-gzip' length 28925 bytes (28 KB)
==================================================
downloaded 28 KB
trying URL 'https://cran.rstudio.com/src/contrib/OpenImageR_1.0.6.tar.gz'
Content type 'application/x-gzip' length 802641 bytes (783 KB)
==================================================
downloaded 783 KB
trying URL 'https://cran.rstudio.com/src/contrib/gmp_0.5-13.1.tar.gz'
Content type 'application/x-gzip' length 131321 bytes (128 KB)
==================================================
downloaded 128 KB
trying URL 'https://cran.rstudio.com/src/contrib/ClusterR_1.0.5.tar.gz'
Content type 'application/x-gzip' length 916490 bytes (895 KB)
==================================================
downloaded 895 KB
* installing *source* package ‘tiff’ ...
** package ‘tiff’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c common.c -o common.o
In file included from common.c:1:0:
common.h:5:18: fatal error: tiff.h: No such file or directory
compilation terminated.
/usr/lib/R/etc/Makeconf:159: recipe for target 'common.o' failed
make: *** [common.o] Error 1
ERROR: compilation failed for package ‘tiff’
* removing ‘/home/daniel/R/x86_64-pc-linux-gnu-library/3.4/tiff’
Warning in install.packages :
installation of package ‘tiff’ had non-zero exit status
* installing *source* package ‘gmp’ ...
** package ‘gmp’ successfully unpacked and MD5 sums checked
creating cache ./config.cache
checking for __gmpz_ui_sub in -lgmp... no
configure: error: GNU MP not found, or not 4.1.4 or up, see http://gmplib.org
ERROR: configuration failed for package ‘gmp’
* removing ‘/home/daniel/R/x86_64-pc-linux-gnu-library/3.4/gmp’
Warning in install.packages :
installation of package ‘gmp’ had non-zero exit status
ERROR: dependency ‘tiff’ is not available for package ‘OpenImageR’
* removing ‘/home/daniel/R/x86_64-pc-linux-gnu-library/3.4/OpenImageR’
Warning in install.packages :
installation of package ‘OpenImageR’ had non-zero exit status
ERROR: dependencies ‘OpenImageR’, ‘gmp’ are not available for package ‘ClusterR’
* removing ‘/home/daniel/R/x86_64-pc-linux-gnu-library/3.4/ClusterR’
Warning in install.packages :
installation of package ‘ClusterR’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpuIo1WM/downloaded_packages’
实际上,如果我尝试仅安装软件包“ tiff ” ,则会得到相同的错误,请在此处进行提炼:
Installing package into ‘/home/daniel/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/tiff_0.1-5.tar.gz'
Content type 'application/x-gzip' length 28925 bytes (28 KB)
==================================================
downloaded 28 KB
* installing *source* package ‘tiff’ ...
** package ‘tiff’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c common.c -o common.o
In file included from common.c:1:0:
common.h:5:18: fatal error: tiff.h: No such file or directory
compilation terminated.
/usr/lib/R/etc/Makeconf:159: recipe for target 'common.o' failed
make: *** [common.o] Error 1
ERROR: compilation failed for package ‘tiff’
* removing ‘/home/daniel/R/x86_64-pc-linux-gnu-library/3.4/tiff’
Warning in install.packages :
installation of package ‘tiff’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpuIo1WM/downloaded_packages’
我还是R和Ubuntu的编码新手,所以我不确定这里缺少什么吗?我有一种感觉,我想缺少在Ubuntu中以这种方式从源代码安装到R中所需的某些依赖项/库,但我不确定是什么?而且我从源代码安装其他软件包也没有遇到麻烦,甚至包括其他已加载“ ClusterR ”的软件包。
我已经安装了GCC Fortran,终端代码在这里列出:
daniel@fulgur-desktop:~$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
安装r 源代码 linux,在RStudio中从源代码安装R软件包时遇到问题-Ubuntu 16.04相关推荐
- oracle vm安装增强功能,Linux 开发环境中为VirtualBox安装增强功能
VirtualBox安装CentOS后,再安装增强功能就可以共享文件夹.粘贴板以及鼠标无缝移动,主要步骤如下: 1.yum -y update 2.yum -y install g++gcc gcc- ...
- virtual box linux 安装增强功能,Linux 开发环境中为VirtualBox安装增强功能
VirtualBox安装CentOS后,再安装增强功能就可以共享文件夹.粘贴板以及鼠标无缝移动,主要步骤如下: 1.yum -y update 2.yum -y install g++gcc gcc- ...
- 酷比魔方i7手写版linux网卡驱动,酷比魔方i7手写板安装Ubuntu 16.04
本文记录了在酷比魔方i7手写板上安装LUbuntu (Ubuntu with LXDE) Linux 16.04,Windows 10双系统,以及解决网卡驱动,双系统配对 Bluetooth LE 鼠 ...
- 酷比魔方i7手写版linux网卡驱动,酷比魔方手写板安装Ubuntu 16.04
酷比魔方手写板安装Ubuntu 16.04 Linuxer 2017年5月1日 暂无评论 阅读 5,205 次 本文记录了在酷比魔方i7手写板上安装Lubuntu (Ubuntu with LXDE) ...
- Linux拉取yarn配置文件,如何在 Ubuntu 16.04/18.04 上安装 Yarn
在本教程中,我们将向您展示如何在 Ubuntu 16.04 或 Ubuntu 18.04 系统上安装 Yarn. 什么是Yarn? Yarn 是一个代码的包管理器. 它允许您与世界各地的其他开发人员一 ...
- thinkpad装linux双系统,ThinkPad T460P 安装 Win10 Ubuntu 16.04 双系统
二.[制作Ubuntu 16.04启动盘] 1.因为是个人使用且不是用作服务器,为了系统安全起见,推荐到Ubuntu官网下载Ubuntu 16.04 桌面版. 本人下载的版本为ubuntu-16.04 ...
- 如何在ubuntu 16.04上安装WebERP
前言 本文是在谷歌翻译的基础上做了校对,并且对原文的错误之处做了更正,如果想阅读原文,请点击原文链接.(不过原文中有些错误,在本文中已经做了改正,而且在括号中增加了一些注意事项,在文末还添加了一些问题 ...
- Ubuntu 16.04 系列软件安装安装方法
1 简介 Ubuntu 16.04安装完后,还需要做一些配置才能愉快的使用,包括添加软件源.安装搜狗输入法.Chrome浏览器.网易云音乐.配置快捷键.安装git等等,下面就跟着我来配置吧,just ...
- Ubuntu 16.04 一系列软件安装命令,包括QQ、搜狗、Chrome、vlc、网易云音乐安装方法(转载)...
转自博客:https://blog.csdn.net/fuchaosz/article/details/51882935 1 简介 Ubuntu 16.04安装完后,还需要做一些配置才能愉快的使用,包 ...
最新文章
- unordered_map源码解析和个人理解
- Spring中使用@ModelAttribute注解
- MapReduce TopK统计加排序
- 百度搜索打不开第二页_北易信息:百度爱采购适合做优化推广吗
- 二十万字C/C++、嵌入式软开面试题全集宝典六
- java 分布式电子商务云平台b2b b2c o2o需要准备哪些技术??
- Redis源代码分析(十)--- testhelp.h小测试框架和redis-check-aof.c 日志检测
- 关于电脑突然没声音(Realtek High definition),电脑声卡驱动安装不上(已解决)
- 第1060期AI100_机器学习日报(2017-08-13)
- 感谢米老师,感谢提高班,做个骄傲的自己
- Linux NAND FLASH驱动程序分析(mini2440)
- CentOS_7环境搭建L2TP服务器
- Dnw下载工具还是Linux下的好(For OK6410)
- caffe训练技巧总结
- [C语言]累加器----PTA
- 没学历的IT人生没那么悲催,献给程序员们
- RSA node解密 java 加密的注意事项
- markdown编辑器调整图片大小
- 用草料二维码生成器制作二维码
- minio上传大于30M文件失败