Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question:
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/Prologand
usr/local/share/perl/5.10.0/Language/PrologThis 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.pmRegards
Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't locate loadable object for module in @INC
by moritz (Cardinal) on Nov 10, 2009 at 19:53 UTC | |
by Steve_BZ (Chaplain) on Nov 10, 2009 at 23:15 UTC | |
|
Re: Can't locate loadable object for module in @INC
by ikegami (Patriarch) on Nov 10, 2009 at 20:02 UTC | |
by Steve_BZ (Chaplain) on Nov 10, 2009 at 23:56 UTC | |
by rastoboy (Monk) on Nov 11, 2009 at 02:56 UTC | |
|
Re: Can't locate loadable object for module in @INC
by keszler (Priest) on Nov 10, 2009 at 19:43 UTC | |
|
Re: Can't locate loadable object for module in @INC
by Steve_BZ (Chaplain) on Nov 11, 2009 at 14:24 UTC |