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

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

问题描述

我试图在Perl中使用线程,但是当我执行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,threads模块或其他工具?

解决方案

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

我通常使用MacPorts中的perl安装,因此我不会弄乱系统Perl.

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

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.

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.

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

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的线程模块时,如何解决引导程序版本不匹配的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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