创建可以在不同的机器上安装了用于Linux R二进制包? [英] Create R binary packages for Linux that can be installed on different machines?

查看:154
本文介绍了创建可以在不同的机器上安装了用于Linux R二进制包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是pretty肯定这是不可能的,因为如果是这样,那么就CRAN具有R的Linux二进制软件包。为什么不是这可能吗?我们可以创建R程序包的Mac和Windows二进制版本,而这些TGZ / zip文件可以在不同的系统上安装。我们为什么不能做同样的Linux?

I'm pretty sure this isn't possible, because if it were, then CRAN would have R Linux binary packages. Why isn't it possible? We can create Mac and Windows binary versions of R packages, and these tgz/zip files could be installed on different systems. Why can't we do the same for Linux?

我猜测,因为有许多不同的发行版,且每个发行版是不同的。是否有可能创建的二进制文件为Debian / Ubuntu和RHEL / CentOS的?

I'm guessing because there are many different distros, and each distro is different. Is it possible to create binary files for Debian/Ubuntu and RHEL/CentOS?

如果有可能,我们怎么办呢?谢谢你。

If it's possible, how do we do it? Thanks.

推荐答案

不同的编译器的版本,不同的libc / libstc ++版本中,不同的其他图书馆的版本,不同的每个发行版的发布周期,......使你就是不能配合动态链接的目标。

Different compiler releases, different libc/libstc++ releases, different "other library" releases, different per-distro release cycles, ... make it that you just cannot match that goal with dynamic linking.

您可以中途那里例如RStudio不需要通过)捆绑所有的依赖和b)反映的子集,因为他们为Debian / Ubuntu和RH / FC / CentOS的事情。但随着一)压缩包会得到​​巨大的,因为他们会与静态链接。

You can get half-way there as e.g. RStudio does by a) bundling all your depends and b) reflecting subsets as they do for Debian/Ubuntu and RH/FC/CentOS. But with a) the tarballs would get massive, as they would with static linking.

在短期:你不能在Linux上。所以回到源是的。

In short: you can't on Linux. So back to sources it is.

这篇关于创建可以在不同的机器上安装了用于Linux R二进制包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆