Solaris 上的 Rcpp

发布于 2024-12-11 07:22:43 字数 288 浏览 1 评论 0原文

我正在尝试从 sparc-sun-solaris2.10 上的源代码编译 Rcpp_0.9.7。当我尝试使用 install.packages 时,出现以下错误:

sh: make: not find

ERROR: Compiling failed for package 'Rcpp'

从互联网上的研究来看,似乎其他人在使用Solaris时也遇到了类似的问题。不幸的是,我不太知道我应该或不应该使用哪些编译器。然而,我开始意识到的一件事是,solaris 似乎不是运行 R 的次优环境(就性能和便利性而言)。

I am trying to compile Rcpp_0.9.7 from source on sparc-sun-solaris2.10. I am getting the following error when I try to use install.packages:

sh: make: not found

ERROR: compilation failed for package 'Rcpp'

From research on the internet, it appears others have had similar problems with solaris. Unfortunately I do not know very much about which compilers I should or should not be using. One thing I am beginning to realize, however, is that solaris seems to be a sub-optimal environment for running R (in terms of performance as well as convenience).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

野侃 2024-12-18 07:22:43

Solaris 可以有不同的含义:它可以是 x86 上的 Solaris,也可以是 Sparc 上的 Solaris。

根据 CRAN 上的 Rcpp 构建结果页面Rcpp 现在确实在 x86 Solaris 上构建(感谢 Martyn 最近的补丁) Plummer),但不是 Sparc Solaris。本周我们刚刚在 rcpp-devel 列表中讨论了这一点。

至于您的错误,您缺少关键组件,即 make 工具。你可能还缺少更多。不过你的结论是正确的。根据您的 Unix 知识水平,您可能最好简单地安装 Ubuntu 并享受数以万计的预构建软件包,包括 R 和一百多个相关软件包。

Solaris can mean different things: it could be Solaris on x86, or Solaris on Sparc.

According to the Rcpp build results page on CRAN, Rcpp does now build on x86 Solaris (thanks to a recent patch by Martyn Plummer) but not Sparc Solaris. We were just discussing that this week on the rcpp-devel list.

As for your error, you are lacking critical components, namely the make tool. You likely lack more. Your conclusion is correct, though. Depending your level of Unix knowledge, you may be best off to simply install Ubuntu and enjoy tens of thousands of pre-built packages, including R and well over a hundred related packages.

尝蛊 2024-12-18 07:22:43

不是真正的解决方案,但评论太长了。

首先,为您在 Solaris 上构建 Rccp 的测试准备一个合适的环境。我个人在 Windows 工作站上使用 VirtualBox。这样我就有了一个可以控制自己的环境,而不需要依赖任何脾气暴躁的系统管理员。最重要的是:无需任何费用!当您对构建充满信心时,您可以 (1) 将二进制文件移至目标主机或 (2) 在目标主机上复制构建设置。

其次,您可以使用这些说明在 Solaris 上设置正确的构建主机。 (你似乎缺少一些关键的工具!)。按照帖子中的说明进行构建时,请记住使用 gmake

Not really a solution but too long for a comment.

First of all get a decent environment for your testing of building Rccp on Solaris. Personally I use VirtualBox on my Windows workstation. This way I have an environment that I can control myself and do not depend on any grumpy SysAdmin. Best of all: there's no cost involved! When you are confident with your build you can either (1) move the binaries over to your target host or (2) replicate the build setup on your target host.

Secondly you can use these instructions to set up a proper build host on Solaris. (you seem to be lacking some crucial tools!). Remember to use gmake when building as per the instructions in the posting.

手长情犹 2024-12-18 07:22:43

正如德克提到的,你缺少 make 命令。如果您运行的是 Solaris 10
或更早版本,则您需要找到安装介质并 pkgadd SUNWsprot。

如果您运行的是 Solaris 11 或更高版本,则

pkg installdeveloper/build/make

将为您提供该实用程序。您可能还需要系统标头,对于 Solaris 11 及更高版本,这些标头位于 pkg://solaris/system/header 中;对于早期版本,这些标头位于 SUNWhea 中。

我看到您在问题中提到了 sparc-sun-solaris2.10 - 您是否有机会更新到 Solaris 11 或更高版本?新版本中的开发人员环境要好得多。当然更容易获得编译器的副本......

As Dirk mentioned, you're lacking the make command. If you're running Solaris 10
or earlier, then you need to find your installation media and pkgadd SUNWsprot.

If you're running Solaris 11 or later, then

pkg install developer/build/make

will get you that utility. You probably need the system headers as well, which are in pkg://solaris/system/header for Solaris 11 and later, or SUNWhea in earlier releases.

I see that you mention sparc-sun-solaris2.10 in your question - is there any opportunity for you to update to Solaris 11 or later? The developer environment is muchmuch nicer in the newer releases. Certainly easier to get a copy of a compiler....

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文