如何在 Strawberry Perl 上安装 RRDTool::OO

发布于 2024-12-28 11:33:14 字数 830 浏览 3 评论 0原文

我实际上正在尝试在 Windows 上安装 RRDTool,使用 Strawberry Perl,它是一个很好的 cpan 命令。 问题是该工具无法正确安装 ::OO 包所依赖的 RRDTool 包。

我尝试自己编译该模块(从 http://oss. oetiker.ch/rrdtool/pub/rrdtool.tar.gz)。但是,当我尝试使用 Visual Studio(2008 或 2010)打开 .sln 文件时,我遇到错误,指出 VS 不计算 .vcproj 文件...

所以我的两个主要问题是:

  • 如何在windows上用官方包编译RRDTool?我错过了什么吗? 请注意,我不想找到该库的预编译版本,就像可以在 http://www.thebits.info/general/rrdtool-v-1-4-4-win32-binaries-226.htm ,出于安全考虑

  • 如何将编译后的模块集成到Strawberry perl中?只需将模块中的文件复制并粘贴到strawberry\perl 目录中即可?

编辑:正如第一条评论中所说,我想补充一点,我明白草莓的CPAN触发的错误意味着用于RRDTool安装的某些系统命令必须是linux命令,因此无法在powershell上执行。

I'm actually trying to install RRDTool on windows, using strawberry perl and it's nice cpan command.
The issue is that the tool will not install correctly the RRDTool package, on which the ::OO package depends.

I've tried to compile myself the module (downloading it from http://oss.oetiker.ch/rrdtool/pub/rrdtool.tar.gz). But when I try to open the .sln file with Visual studio (2008 or 2010), I encounter an error yelling that the .vcproj files are not taken in count by VS...

So my two main questions are:

  • How to compile RRDTool on windows with the official package? Am I missing something? note that I rather not find a precompiled version of this lib, like one can found at http://www.thebits.info/general/rrdtool-v-1-4-4-win32-binaries-226.htm , for security reasons

  • How to integrate the compiled module to Strawberry perl? By simply copying and pasting files from the module into the strawberry\perl directory?

edit: as said in the first comments, I'd like to add that I understand that the error trigered by Strawberry's CPAN means that some system command used for RRDTool installation must be linux command, so it fails to be executed on powershell.

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

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

发布评论

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

评论(1

凌乱心跳 2025-01-04 11:33:14

Makefile.PL for RRDTool::OO 使用gzip 工具和一大堆其他 Unix 工具和假设。

system("gzip -dc rrdtool.tar.gz | tar xfv -; cd `ls -t | grep rrdtool | grep -v gz | head -1`; ./configure $CONFIGURE_OPTS; make; cd bindings/perl-shared; perl Makefile.PL; make; make test; make install") and die "Install failed: $!";

这是一行非常 Unix 的代码,无论您安装多少程序,都无法在 Windows 上运行。它正在执行安装部分中建议的操作安装 rrdtool 并配置 Perl 绑定的文档。

幸运的是,这似乎只是构建和安装 rrdtool 所必需的。自己安装rrdtool,确保编译Perl 绑定,然后重试安装RRDTool::OO。如果它要求为您安装rrdtool,那么它无法加载rrdtool附带的RRDs模块。

要安装RRD,请编译rrdtool,然后进入绑定/perl-shared并像任何其他模块一样安装它。 ppm 也有可能能够使用 ppm install RRDs 安装预编译的 RRD

The Makefile.PL for RRDTool::OO makes use of the gzip tool and a whole bunch of other Unix tools and assumptions.

system("gzip -dc rrdtool.tar.gz | tar xfv -; cd `ls -t | grep rrdtool | grep -v gz | head -1`; ./configure $CONFIGURE_OPTS; make; cd bindings/perl-shared; perl Makefile.PL; make; make test; make install") and die "Install failed: $!";

That's a very Unix line of code and ain't gonna work on Windows, no matter how many programs you install. It's doing what is recommended in the INSTALLATION section of the docs to install rrdtool and configure the Perl bindings.

Fortunately, it appears this is only necessary to build and install rrdtool. Install rrdtool yourself, being sure to compile the Perl bindings, then retry installing RRDTool::OO. If it asks to install rrdtool for you then it was unable to load the RRDs module which comes with rrdtool.

To install RRDs, compile rrdtool then go into bindings/perl-shared and install it like any other module. It's also possible that ppm will be able to install a precompiled RRDs with ppm install RRDs.

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