如何在 Strawberry Perl 上安装 RRDTool::OO
我实际上正在尝试在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Makefile.PL for RRDTool::OO 使用
gzip
工具和一大堆其他 Unix 工具和假设。这是一行非常 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.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 intobindings/perl-shared
and install it like any other module. It's also possible thatppm
will be able to install a precompiledRRDs
withppm install RRDs
.