Solved

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

Posted on 2006-10-31
4
1,081 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
  • 2
4 Comments
 
LVL 19

Author Comment

by:Kim Ryan
Comment Utility
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
Comment Utility
DO you have XSloader installed??
0
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now