Hi People,

I'm sorry if this is a Perl 101 question. I have Language::Prolog::Yaswi CPAN installation working fine on Linux, but the install fails on Windows. So I decide to try to install by hand. The two dependencies Language::Prolog::Types and Language::Prolog::Sugar, both install fine with CPAN, and I copy Yaswi.pm into the C:\Perl\site\lib\Language\Prolog directory. It fails because it can't find Low.pm. I copy Low.pm into C:\Perl\site\lib\Language\Prolog\Yaswi. I see that there is a pl.pl in the Linux version so I copy this too into the Prolog directory and run. Then I get this error:

Can't locate loadable object for module Language::Prolog::Yaswi::Low i +n @INC (@INC contains: C:\Program Files\ActiveState Komodo IDE 5\lib\ +support\dbgp\perllib C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/ +lib/Language/Prolog/Yaswi.pm line 54 Compilation failed in require at C:/Perl/site/lib/Language/Prolog/Yasw +i.pm line 54. BEGIN failed--compilation aborted at C:/Perl/site/lib/Language/Prolog/ +Yaswi.pm line 54.

So I inspect the Linux version and I realise that the Linux installation is running on two parallel paths,

usr/local/lib/perl/5.10/Language/Prolog

and

usr/local/share/perl/5.10.0/Language/Prolog

This doesn't seem right, but it's still working. Should I try to replicate this on Windows?

I feel that this is something obvious, but I'm not clear what is going wrong here.

By the way, line 54 in the Yaswi.pm is just

use Language::Prolog::Yaswi::Low.pm

Regards

Steve


In reply to Can't locate loadable object for module in @INC by Steve_BZ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.