升级 Perl 后陷入无休止的安装周期
昨晚我在这里读到了一个mysql调优程序。我安装了它,它说我需要一个比我现有的版本更高的 perl 版本。我下载并安装了 perl 5.12.x
突然我的 Munin 实用程序抛出如下错误: 在 @INC 中找不到 RRDs.pm(@INC 包含: /usr/lib/perl5/site_perl/5.12.2/i686-linux /usr/lib/perl5/site_perl/5.12.2 /usr/lib/perl5/5.12.2/i686-linux /usr/lib/perl5/5.12.2 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl 。) /usr/sbin/nginx-graph.pl 第 2 行
卸载并重新安装 rrdtool rpm 并未将 RRDs.pm 从 /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/RRDs.pm 移动
我想我会尝试从源代码安装rrdtool。它想要pango。
必须安装更新的 FreeType 和 FontConfig。
然后 pango 安装需要一个新的 glib。由于 gzlibcompressor 错误,Glib 无法运行。一些谷歌搜索表明升级 glib 可能会导致一系列其他问题。
我只想要我的 !@#$ munin 图表,但我感觉我已经开始滑下危险的斜坡,特别是因为它托管着我的 nginx 网络服务器。
有什么提示、想法、警告吗?
Last night I was reading about a mysql tuning program here. I installed it and it said I needed a perl version higher than the one I had. I downloaded and installed perl 5.12.x
Suddenly my Munin utilities were tossing off errors like:
Can't locate RRDs.pm in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.12.2/i686-linux /usr/lib/perl5/site_perl/5.12.2
/usr/lib/perl5/5.12.2/i686-linux /usr/lib/perl5/5.12.2
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at
/usr/sbin/nginx-graph.pl line 2
Uninstalling and reinstalling the rrdtool rpms didn't move RRDs.pm from /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/RRDs.pm
Thought I'd try installing rrdtool from source. It wanted pango.
Had to install newer FreeType and FontConfig.
Then the pango install wanted a new glib. Glib wouldn't make due to a gzlibcompressor error. Some Googling suggested that upgrading glib could cause a whole host of other issues.
I just want my !@#$ munin graphs, but I feel like I've started sliding down a dangerous slope, especially as this is hosting my nginx webserver.
Any tips, ideas, warnings?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来你曾经有 Perl 5.8.something。 Perl 主要版本不兼容二进制,因此在 5.8.x、5.10.x 和 5.12.x 之间更改时,您必须重新安装/升级使用 XS 的所有模块以及嵌入 Perl 解释器的任何程序。
我会尝试将您的系统 Perl 恢复到 5.8.x。这应该能让 Munin 再次工作。 (我无法为此提供详细说明,因为我不知道您正在使用什么发行版,如何安装 Perl 5.12,或者您还做了什么尝试解决这个问题。)
然后使用 perlbrew 安装更新版本的 Perl 供您个人使用,而不会弄乱依赖于系统 Perl 的东西。
It appears you used to have Perl 5.8.something. Perl major releases are not binary compatible, so you have to reinstall/upgrade all modules using XS and any programs that embed the Perl interpreter when changing between 5.8.x, 5.10.x, and 5.12.x.
I would try to revert your system Perl to 5.8.x. This should get Munin working again. (I can't give detailed instructions for this, because I don't know what distribution you're using, how you installed Perl 5.12, or what else you've done trying to solve this.)
Then use perlbrew to install a newer version of Perl for your personal use without messing up things that depend on the system Perl.