Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Perl package install dll problems

Reply
Thread Tools

Perl package install dll problems

 
 
ChrisC
Guest
Posts: n/a
 
      03-28-2007
Hello,

I'm using ActivePerl latest version and have installed the inline-0.44
package on a Win XP box. Actually I tried this on 2 machines with
same result.

I'm now trying to install inline-java 0.52. I've set the environment
variables PERL_INLINE_JAVA_J2SDK=c:
\jdk1.5.0_11 and PERL_INLINE_JAVA_JNI=1 and the nmake seems to
complete successfully.

When I run 'nmake test' I get a bunch of errors with a dll file,
however, the dll is located in the mentioned directories. I search of
the dll dependency with Dependency Walker doesn't reveal any errors.

A snippet of the errors from 'nmake test' is below. Any suggestions?

Chris

cd ..
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'bl
ib\lib', 'blib\arch')" t/*.t
t/01_init..............Can't load JNI module. Did you build it at
install time?
Error: Can't load 'C:\inlinejava\Inline-Java-0.52\blib\arch/auto/
Inline/Java/JNI
/JNI.dll' for module Inline::Java::JNI: load_file:The specified module
could not
be found at C:/Perl/lib/DynaLoader.pm line 230.
at C:\inlinejava\Inline-Java-0.52\blib\lib/Inline/Java.pm line 193
at C:\inlinejava\Inline-Java-0.52\blib\lib/Inline/Java.pm line 193
Compilation failed in require at C:\inlinejava\Inline-Java-0.52\blib
\lib/Inline/
Java.pm line 193.
INIT failed--call queue aborted.
t/01_init..............dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/02_primitives........Can't load JNI module. Did you build it at
install time?
Error: Can't load 'C:\inlinejava\Inline-Java-0.52\blib\arch/auto/
Inline/Java/JNI
/JNI.dll' for module Inline::Java::JNI: load_file:The specified module
could not
be found at C:/Perl/lib/DynaLoader.pm line 230.
at C:\inlinejava\Inline-Java-0.52\blib\lib/Inline/Java.pm line 193
at C:\inlinejava\Inline-Java-0.52\blib\lib/Inline/Java.pm line 193
Compilation failed in require at C:\inlinejava\Inline-Java-0.52\blib
\lib/Inline/
Java.pm line 193.
INIT failed--call queue aborted.
t/02_primitives........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-102
Failed 102/102 tests, 0.00% okay
t/02_primitives_1_4....Can't load JNI module. Did you build it at
install time?
Error: Can't load 'C:\inlinejava\Inline-Java-0.52\blib\arch/auto/
Inline/Java/JNI
/JNI.dll' for module Inline::Java::JNI: load_file:The specified module
could not
be found at C:/Perl/lib/DynaLoader.pm line 230.
at C:\inlinejava\Inline-Java-0.52\blib\lib/Inline/Java.pm line 193
at C:\inlinejava\Inline-Java-0.52\blib\lib/Inline/Java.pm line 193
Compilation failed in require at C:\inlinejava\Inline-Java-0.52\blib
\lib/Inline/

 
Reply With Quote
 
 
 
 
Sisyphus
Guest
Posts: n/a
 
      03-29-2007

"ChrisC" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
..
..
> I'm now trying to install inline-java 0.52. I've set the environment
> variables PERL_INLINE_JAVA_J2SDK=c:
> \jdk1.5.0_11 and PERL_INLINE_JAVA_JNI=1


I find the same problem when I set those environment variables. However, if
I unset them, and start *afresh* with 'perl Makefile.PL
J2SDK=C:/jdk1.5.0_11', accepting the defaults where prompted (which means
that the JNI extension is built), then I find that everything builds and
tests fine.

Actually, I'm using jdk1.5.0_07, and dmake/gcc (not nmake/cl), but the fact
that I got the same problem suggests that the same solution may also work
for you.

Cheers,
Rob

 
Reply With Quote
 
 
 
 
ChrisC
Guest
Posts: n/a
 
      03-30-2007
> I unset them, and start *afresh* with 'perl Makefile.PL
> J2SDK=C:/jdk1.5.0_11', accepting the defaults where prompted (which means
> that the JNI extension is built), then I find that everything builds and
> tests fine.


If you unset PERL_INLINE_JAVA_JINI then you are not testing the JNI
extension when you run the tests. If I do that then it is all
successful too. Problem is, I need the JNI extension, and the perl
interpreter extension, which defaults as 'n' on the perl Makefile.PL.
But, thanks for the suggestion.

Chris

 
Reply With Quote
 
Sisyphus
Guest
Posts: n/a
 
      03-31-2007

"ChrisC" <(E-Mail Removed)> wrote in message
..
..>
> If you unset PERL_INLINE_JAVA_JINI then you are not testing the JNI
> extension when you run the tests. If I do that then it is all
> successful too. Problem is, I need the JNI extension, and the perl
> interpreter extension, which defaults as 'n' on the perl Makefile.PL.
> But, thanks for the suggestion.
>


Oh ... thanks for taking the time to correct me.

On closer inspection (and having reset PERL_INLINE_JAVA_JNI) I find that
JNI.dll is failing to load because jvm.dll cannot be found.

You can fix that by adding C:/jdk1.5.0_11/jre/bin/server to your path.
(Worked for me - though I don't know whether it's the server or the client
jvm.dll that ought to be put in the path.)

Cheers,
Rob

 
Reply With Quote
 
ChrisC
Guest
Posts: n/a
 
      03-31-2007
After talking to the inline-java package author, we discovered that by
using an earlier version of nmake (I was using from VS 2005, switched
to VS2003) it worked.

Maybe ActivePerl isn't built with VS 2005? Anyway, finally, it works
fine.

Chris

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in install package: Error 1001. Unable to get installer types in the Inv2_web.dll assembly Monty ASP .Net 1 01-21-2008 03:04 AM
How to determine if a DLL is a COM DLL or .NET DLL Anushi ASP .Net 5 10-28-2004 01:59 PM
Why does Ruby use both tcl83.dll and tk83.dll (instead of just tk83.dll)? H. Simpson Ruby 4 08-03-2004 04:45 PM
mprapi.dll --> samlib.dll --> ntdll.dll issue. Some1 Computer Support 4 04-05-2004 02:02 AM
msvcrt.dll, msvcirt.dll, msvcrt20.dll and msvcrt40.dll, explanation please! Snoopy NZ Computing 16 08-25-2003 12:34 PM



Advertisments