----- Original Message -----
From: "Ben Crane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 19, 2003 3:36 AM
Subject: Re: h2xs works fine: can't find new module though?
> Hey all,
>
> Followed the instructions for using h2xs and
> everything seems okay. Problem is, when I try running
> the simple hello world script it crashes with the
> error:
>
> can't locate loadable object for module mytest in @inc
> (@inc contains: blib/arch blib/lib c:/perl/lib
> c:/perl/site/lib.) at hello.pl line 6
> compilation failed in require at hello.pl line 6
> BEGIN fialed--compilation aborted at hello.pl line 6
>
> I've tried moving the mytest.pm module into lib in
> case it couldn't find it, but to no avail. Also
> checked my perl version to see if that was the
> problem...but no go...
>
> What am I missing?? I run perl on windows NT not nix.
> I like the h2xs as it appears to set a lot of stuff up
> for you with the main coding occuring in the xs file.
> After this I have to try and use a simple c header
> file in a perl script...
>
> Thanx
> Ben
Hi Ben -
Your're doing great! I think your problem is
that you didn't get the module installed where
perl can see it. You can:
1. nmake install (you can always clean it out with
nmake distclean), or
2. Set environment varible PERL5LIB to your
module's location, or
3. Put:
use lib "your module location";
in your test script, or
4. Add your test script to the t subdirectory in
your modules path with suffix .t and do:
nmake test
Aloha => Beau;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]