Hi Neil,
sorry for the late answer, but I was at YAPC::Europe in Amsterdam last week
:-)
I think I was not specific enough. I'll try and tell you exactly what went
wrong.
I am using a (VC++6.0) hand build 5.6.0 under WindowsNT 4.0 SP5
Installing Inline went fine without problems, all tests were successful.
Then I tried to write a module that uses inline, but had difficulties
installing it. To verify that the problem was not self made I wanted to
verify this with the Math::Simple example delivered with Inline 0.43.
I copied the Math::Simple module to a local dir and did a
perl Makefile.pl
nmake
nmake test
all tests were successful.
nmake install worked fine
then I tried to use the module and got the following output:
*** snip ***
Z:\tmp\perl>perl
use Math::Simple;
print add(4,6);
^Z
The extension 'Math::Simple' is not properly installed in path:
'e:/perl/site/5.6.0/lib'
If this is a CPAN/distributed module, you may need to reinstall it on your
system.
To allow Inline to compile the module in a temporary cache, simply remove
the
Inline config option 'VERSION=' from the Math::Simple module.
at - line 0
INIT failed--call queue aborted, <DATA> line 1.
*** end ***
As far as I can see the installation looks good.
I have:
e:/perl/site/5.6.0/lib/Math/Simple.pm
e:/perl/site/5.6.0/lib/MS-Win32-X86/auto/Math/Simple/Simple.dll
That should be enough shouldn't it? There is not much more in the ./blib
tree and it seems to work from there (in nmake test)
I hope this is a bit more clear then the last mail.
Do you have an idea what's wrong here?
Thanx,
Thomas
> -----Urspr�ngliche Nachricht-----
> Von: Neil Watkiss [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 1. August 2001 21:18
> An: [EMAIL PROTECTED]
> Betreff: Re: .inl file missing
>
>
> Hi Thomas,
>
> Kratz, Thomas [31/07/01 18:31 +0200]:
> > But if I actually install and use the module it doesn't
> work. The problem
> > seems to be, that the .inl file is not in
> >
> > blib/arch/auto/Math/Simple
> >
> > nor in any other directory.
>
> That's because when Inline is used in a CPAN module, it tries
> to behave
> _exactly_ as if you'd used XS. That means it doesn't create
> the normal .inl
> file, and it never even checks the md5 key before loading
> your code. After
> Inline 0.50, people who download your CPAN module won't even
> need Inline
> to build and install it.
>
> As for why it's not working... that's another story. I don't
> think I've
> even tested Math::Simple under Windows (but I'm sure Brian has). I'm
> assuming you're using W2K, and you mentioned VC6 and
> non-ActivePerl (the
> cat asks: is your perl hand-built, or another distro?). I'll give it a
> shot with ActivePerl, VC6 and W2K and see if I run into any problems.
>
> If you want quicker results, you might try sending me a
> tar/zip of your
> module. There may be a clue there.
>
> Later,
> Neil
>