Помогите!

Автор nitro80, 16:49, 04 июня, 2006

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

nitro80

Запускаю скрипт, в нем есть такая строчка:
#!/usr/bin/perl

use Net::FTP;
use threads;


На шелле выдается ошибка:

root@****:/root/ftp# script.pl line 4:

This Perl hasn't been configured and built properly for the threads
module to work.  (The 'useithreads' configuration option hasn't been used.)

Having threads support requires all of Perl and all of the XS modules in
the Perl installation to be rebuilt, it is not just a question of adding
the threads module.  (In other words, threaded and non-threaded Perls
are binary incompatible.)

If you want to the use the threads module, please contact the people
who built your Perl.

Cannot continue, aborting.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/mach/threads.pm line 28.
Compilation failed in require at script.pl line 4.
BEGIN failed--compilation aborted at script.pl line 4.


Как устранить неисправность?

Grek

#1
В перл не силен, попробуй глянуть вот этот пример: http://kobesearch.cpan.org/htdocs/perl/threads.pm.html в нем видно что threads поддерживается в пятой и шестой версии, возможно скрипт запускается на более старом перле?

L@mer

Что-то у тебя с опцией useithreads не все ладно.
Выполни на своем shell:
perl5.8.8 -V:useithreads
и дай результ в студию
Я бы изменил мир, но бог не дал исходников...


L@mer

Правильный ответ

perl5.8.7 -V:useithreads
useithreads='define';

Так что....
Надо пересобрать perl с опцией
with -Dusethreads
Вот и как бы все
Я бы изменил мир, но бог не дал исходников...




Данный форум не является СМИ в соответствии с Законом №2124-1.
Яндекс.Метрика