在opensuse 11.4上安装ggplot2
我正在尝试安装 ggplot2,但是出现以下错误:
正在尝试 URL 'http://cran.skazkaforyou.com/src/contrib/ggplot2_0.8.9.tar.gz' 打开的内容类型“application/x-gzip”长度为 2074749 字节 (2.0 Mb) 网址 ===================================================下载 2.0 Mb
* 安装源包“plyr”...
** 库
sh: make: 未找到命令
错误:包“plyr”编译失败
* 删除 '/home/jayron/R/x86_64-unknown-linux-gnu-library/2.12/plyr'
* 安装源包“摘要”...
** libs sh: make: 未找到命令
sh: make: 找不到命令错误:包编译失败 “色彩空间”
错误:依赖项“reshape”、“plyr”、“digest”、“colorspace”不是 适用于包“ggplot2” *删除'/home/jayron/R/x86_64-unknown-linux-gnu-library/2.12/ggplot2'
下载的包在 '/tmp/Rtmp0Sgoxp/downloaded_packages'
有什么帮助吗?
I'm trying to install ggplot2, however I get the following error:
trying URL
'http://cran.skazkaforyou.com/src/contrib/ggplot2_0.8.9.tar.gz'
Content type 'application/x-gzip' length 2074749 bytes (2.0 Mb) opened
URL
================================================== downloaded 2.0 Mb* installing source package ‘plyr’ ...
** libs
sh: make: command not found
ERROR: compilation failed for package ‘plyr’
* removing
‘/home/jayron/R/x86_64-unknown-linux-gnu-library/2.12/plyr’* installing source package ‘digest’ ...
** libs sh: make: command not found
sh: make: command not found ERROR: compilation failed for package
‘colorspace’ERROR: dependencies ‘reshape’, ‘plyr’, ‘digest’, ‘colorspace’ are not
available for package ‘ggplot2’
* removing ‘/home/jayron/R/x86_64-unknown-linux-gnu-library/2.12/ggplot2’The downloaded packages are in
‘/tmp/Rtmp0Sgoxp/downloaded_packages’
any help please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试以下代码:
Try the following code:
您需要开发包。除非有人为 opensuse 打包了最新的 Ggplot2,否则您将需要使用(我认为)zypper 安装它们。错误消息表明您的系统上没有“make”。很可能还会有更多。
You need development packages. Unless someone has packaged a recent Ggplot2 for opensuse, you will need to install these using (I think) zypper. The error message says you do not have 'make' on your system. It is likely that there will be more.
您需要开发包。直到有人为 opensuse 打包了最新的 ggplot2(今天(2014 年 1 月)尚未实现)之前,您需要 root 身份才能使用 zypper 安装它们:
此软件包自 opensuse 11.3 起就存在。
错误消息表明您的系统上没有“make”。如果你只安装'make',很可能会出现更多类似的错误。因此,您需要安装 ggplot2 所需的所有开发工具。这可以通过 root 来完成
You need development packages. Until someone has packaged a recent ggplot2 for opensuse, which has not yet happened yet today (Jan 2014), you will need to be root to install these using zypper:
This package exists since opensuse 11.3.
The error message says you do not have 'make' on your system. If you only install 'make', it is likely that there will be more similiar errors. Thus you need to install all development tools needed for ggplot2. This can be done by root with