Domanda

Sto cercando di installare il Java: : Import modulo sul mio sistema Win32 per Perl 5.10. Ma io non riesco a farlo installare da CPAN. Qui è l'errore che ottengo quando provo a installarlo tramite CPAN:

    gcc -c -I"src" -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_I
MPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -
O2 "-DXS_VERSION=\"0.03\"" "-DVERSION=\"0.03\"" -I"C:\Perl\lib\CORE" -I"\include" -o "lib\Java\Wrapper.o" "lib\Java\Wrapper
.c"
Access is denied.
error building dll file from 'lib\Java\Wrapper.c' at c:/perl/lib/ExtUtils/CBuilder/Platform/Windows.pm line 143.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.
  RUSEKD/Java-Import-0.03.tar.gz
  nmake test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports RUSEKD/Java-Import-0.03.tar.gz
Running make install
  make test had returned bad status, won't install without force

Ho cercato di guardare ai CPAN-tester e sembra che ci sia bug per errori di compilazione dal 2006. alcuno abbia mai stato in grado di installare questo modulo? Sembra che ci sia un altro modulo chiamato Inline :: Java . Sono forse meglio usare quella invece?

È stato utile?

Soluzione

Java :: Import non può passare le proprie unit test su qualsiasi piattaforma . Inline::Java ha le sue peculiarità, ma è sicuramente utilizzabile.

Altri suggerimenti

gcc -c -I"src" ... -o "lib\Java\Wrapper.o" "lib\Java\Wrapper.c"

=> Accesso negato

Quindi lib\Java\Wrapper.o non è scrivibile. O non hai i permessi per scrivere in quella directory o il file Wrapper.o esiste già ed è bloccata da un altro processo.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top