Solved

Can't locate loadable object for module File::MMagic::XS

Posted on 2006-10-31
4
1,102 Views
Last Modified: 2008-01-09
I am trying to run a Maypole based application. Have upgaded to Maypole 2.11 and get the following error.

As you can see below,  /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/File/MMagic/XS.pm is installed OK. Not sure what the loadable object means.

-------------------
Can't locate loadable object for module File::MMagic::XS in @INC (@INC contains: /opt/perl_local/rh9/5.8.0 /opt/perl_local /u/network/lib /opt/css/lib /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/5.8.8/i686-linux/DynaLoader.pm line 23
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/File/MMagic/XS.pm line 23.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.8/Maypole.pm line 13.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.8/Maypole.pm line 13.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.8/Maypole/Application.pm line 7.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.8/Maypole/Application.pm line 7.
Compilation failed in require at Verification.pm line 52.
BEGIN failed--compilation aborted at Verification.pm line 52.
Compilation failed in require at verification.cgi line 5.
BEGIN failed--compilation aborted at verification.cgi line 5.
0
Comment
Question by:Kim Ryan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 19

Author Comment

by:Kim Ryan
ID: 17847398
Ok, found the answer. It was a strange one. /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/File directory was not readable.

I think it may have been part of umask problem during install. Is umask 002 always best?
0
 
LVL 16

Expert Comment

by:manav_mathur
ID: 17847405
DO you have XSloader installed??
0
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 17847453
How did you do the upgrade?

Looks like one the libraries that File::MMagic::XS needs either isn't installed or isn't referenced correctly.
0
 
LVL 19

Author Comment

by:Kim Ryan
ID: 17847491
All working now. As I said above, just a permission problem. The directory 2 levels up from /perl5/site_perl/5.8.8/i686-linux/auto/File/MMagic/XS/XS.so was not readable.

Upgraded by using CPAN module to install.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question