?
Solved

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

Posted on 2006-10-31
4
Medium Priority
?
1,118 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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

801 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