• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1139
  • Last Modified:

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

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
Kim Ryan
Asked:
Kim Ryan
  • 2
1 Solution
 
Kim RyanIT ConsultantAuthor Commented:
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
 
manav_mathurCommented:
DO you have XSloader installed??
0
 
TintinCommented:
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
 
Kim RyanIT ConsultantAuthor Commented:
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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now