Gossamer Forum
Home : General : Perl Programming :

Magic number and module question

Quote Reply
Magic number and module question
Hi, I have tried to install 2 modules on my servers. I found that the installation on one server is normal, but that on the other one is always error.

This is the error messages I got:

for the module Text-Kakasi:
##################################################################
# make test
PERL_DL_NONLAZY=1
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.
00502/i386-freebsd -I/usr/local/lib/perl5/5.00502 test.pl

Package test
Can't load 'blib/arch/auto/Text/Kakasi/Kakasi.so' for module Text::Kakasi:
bad magic number in "blib/arch/auto/Text/Kakasi/Kakasi.so" at
/usr/local/lib/perl5/5.
00502/i386-freebsd/DynaLoader.pm line 168.

at test.pl line 15
BEGIN failed--compilation aborted at test.pl line 15.
use => Fail
*** Error code 2

Stop.
##################################################################

for the module PerlMagick:
##################################################################
# cd /usr/www/ourmp3/httpd/soft/PerlMagick-5.36/demo/
# perl button.pl
Can't load
'/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Image/Magick/
Magick.so' for module Image::Magick: bad magic number in
"/usr/local/lib/perl5/s
ite_perl/5.005/i386-freebsd/auto/Image/Magick/Magick.so" at
/usr/local/lib/perl5
/5.00502/i386-freebsd/DynaLoader.pm line 168.

at button.pl line 5
BEGIN failed--compilation aborted at button.pl line 5.
##################################################################

As a whole, this is the main source of error:
"bad magic number at /usr/local/lib/perl5/5.00502/i386-freebsd/DynaLoader.pm line 168."

This error makes it impossible for me to install any module, so...
What is a magic number?
How can we solve this error?
This error is not found at another server, why?


Information of Text-Kakasi can be found at
http://kakasi.namazu.org/index.html.en
http://www.daionet.gr.jp/~knok/kakasi/

Information of PerlMagick can be found at
http://www.imagemagick.org/

Thanks for your help!