加载 Perl's 的线程模块时,如何修复引导程序版本不匹配? [英] How can I fix a bootstrap version mismatch when loading Perl's threads module?

查看:41
本文介绍了加载 Perl's 的线程模块时,如何修复引导程序版本不匹配?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Perl 中使用线程,但是当我执行需要线程时出现以下错误:

I am trying to use threads in Perl, but I get the following errors when I do require threads:

~ > perl -e 'require threads'
threads object version 1.07 does not match bootstrap parameter 1.71 at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/XSLoader.pm line 94.
Compilation failed in require at -e line 1.

我使用的是 OS X 10.5.7 和 Perl 的默认安装.我是否需要重新安装 Perl、线程模块或其他东西?

I am using OS X 10.5.7 and the default installation of Perl. Do I neeed to reinstall Perl, the threads module, or something?

推荐答案

是的,您的某些文件不同步.使其恢复同步的一种方法是强制安装"线程"模块.

Yeah, some of your files got out of sync. One way to get it back in sync would be to "force install" the 'threads' module.

我通常使用 MacPorts 的 perl 安装,所以我不会弄乱系统 Perl.

I usually use the perl install from MacPorts so I don't mess with the system Perl.

话虽如此;如果您不使用线程,您很可能会更快乐.你想解决什么问题?大多数我们需要线程"的问题都可以通过事件编程或好的 'ol forking 来更好地解决.

That being said; more likely than not you'll be happier if you don't use threads. What problem are you trying to solve? Most "we need threads" problems are better solved with event programming or good 'ol forking.

这篇关于加载 Perl's 的线程模块时,如何修复引导程序版本不匹配?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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