Menu

#100 use Mac::Navigation fails

Development Branch
closed-fixed
5
2001-12-04
2001-11-28
No

After using the slick web installer to install MacPerl
5.6.1b2 on my iBook the file "Navigation.pm" was in the
"Mac" folder that's within the "lib" folder, right
where it should be, along with "Navigation.xs",
"StandardFile.pm", etc..

#!perl5

use Mac::StandardFile;
print "ok\n";

__END__

prints "ok";

--------

#!perl5

use Mac::Navigation;
print "ok\n";

__END__

yields the following...

# Can't locate loadable object for module
Mac::Navigation in @INC (@INC
contains: HD:Programming:PERL:MacPerl ƒ:lib:Mac:
HD:Programming:PERL:MacPerl ƒ:lib:MacPPC:
HD:Programming:PERL:MacPerl
ƒ:lib: HD:Programming:PERL:MacPerl ƒ:site_perl: :
Dev:Pseudo:)
File 'Dev:Pseudo'; Line 8
# Compilation failed in require.
File 'Dev:Pseudo'; Line 8
# BEGIN failed--compilation aborted.
File 'Dev:Pseudo'; Line 8

--------

In a test I...
- duplicated "Navigation.pm"
- changed the name to "abc.pm"
- changed line 19 from "package Mac::Navigation;" to
"package Mac::xyz;"
- changed line 127 from "bootstrap Mac::Navigation;"
to "bootstrap Mac::xyz;"
- and ran the following...

#!perl5

use Mac::abc;
print "ok\n";

__END__

which yielded the following error message...

# Can't locate loadable object for module Mac::xyz in
@INC (@INC contains: HD:Programming:PERL:MacPerl
ƒ:lib:Mac: HD:Programming:PERL:MacPerl ƒ:lib:MacPPC:
HD:Programming:PERL:MacPerl ƒ:lib:
HD:Programming:PERL:MacPerl ƒ:site_perl: : Dev:Pseudo:)
File 'HD:Programming:PERL:a.pl'; Line 1
# Compilation failed in require.
File 'HD:Programming:PERL:a.pl'; Line 1
# BEGIN failed--compilation aborted.
File 'HD:Programming:PERL:a.

Discussion

  • Chris Nandor

    Chris Nandor - 2001-12-04

    Logged In: YES
    user_id=3660

    This has been fixed; the Navigation shared library was
    installed into your System Folder by mistake. The next
    release will have it right.

     
  • Chris Nandor

    Chris Nandor - 2001-12-04
    • labels: --> Installation
    • milestone: --> Development Branch
    • assigned_to: nobody --> pudge
    • status: open --> closed-fixed
     

Log in to post a comment.