Thread Ersatz für Activestate Perl Development Kit unter Windows 10 (16 answers)
Opened by Rino at 2017-08-30 09:25

bianca
 2017-08-31 11:35
#187316 #187316
User since
2009-09-13
6978 Artikel
BenutzerIn

user image
Ich bin vor Ewigkeiten wegen des Kompilers von Active Perl weg. Strawberry hat gcc als Kompiler für die kompilierpflichtigen Module. Klappt hervorragend. Auch auf Win 10.

Installation Perl: auf http://strawberryperl.com/releases.html die gewünschte Version laden und installieren. Fertig.

Installation eines Moduls: in der Eingabeaufforderung perl -MCPAN -e shell eingeben und danach z. B. install JSON::XS

Sieht dann so aus wenn alles gut ist:

more (9.1kb):

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Arbeit>perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v2.05)
Enter 'h' for help.

cpan> install JSON::XS
Fetching with LWP:
http://cpan.strawberryperl.com/authors/01mailrc.tx...
Fetching with LWP:
http://cpan.strawberryperl.com/modules/02packages....
Fetching with LWP:
http://cpan.strawberryperl.com/modules/03modlist.d...
Database was generated on Tue, 29 Aug 2017 17:04:14 GMT

Updating database file ...
Done!
Running install for module 'JSON::XS'
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/M/ML/MLE...
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/M/ML/MLE...
Checksum for C:\STRAWB~1\cpan\sources\authors\id\M\ML\MLEHMANN\JSON-XS-3.04.tar.gz ok
Scanning cache C:\STRAWB~1\cpan\build for sizes
...........................................................................-DONE
---- Unsatisfied dependencies detected during ----
---- MLEHMANN/JSON-XS-3.04.tar.gz ----
Canary::Stability [build_requires]
Running install for module 'Canary::Stability'
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/M/ML/MLE...
Checksum for C:\STRAWB~1\cpan\sources\authors\id\M\ML\MLEHMANN\Canary-Stability-2012.tar.gz ok
Configuring M/ML/MLEHMANN/Canary-Stability-2012.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Canary::Stability
Writing MYMETA.yml and MYMETA.json
MLEHMANN/Canary-Stability-2012.tar.gz
C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for M/ML/MLEHMANN/Canary-Stability-2012.tar.gz
cp Stability.pm blib\lib\Canary\Stability.pm
MLEHMANN/Canary-Stability-2012.tar.gz
C:\STRAWB~1\c\bin\dmake.exe -- OK
Running make test
'No tests defined for Canary::Stability extension.'
MLEHMANN/Canary-Stability-2012.tar.gz
C:\STRAWB~1\c\bin\dmake.exe test -- OK
Running make install
Installing C:\STRAWB~1\perl\site\lib\Canary\Stability.pm
Appending installation info to C:\STRAWB~1\perl\lib/perllocal.pod
MLEHMANN/Canary-Stability-2012.tar.gz
C:\STRAWB~1\c\bin\dmake.exe install UNINST=1 -- OK
MLEHMANN/JSON-XS-3.04.tar.gz
Has already been unwrapped into directory C:\STRAWB~1\cpan\build\JSON-XS-3.04-vCzUiu
Configuring M/ML/MLEHMANN/JSON-XS-3.04.tar.gz with Makefile.PL

***
*** Canary::Stability COMPATIBILITY AND SUPPORT CHECK
*** =================================================
***
*** Hi!
***
*** I do my best to provide predictable and reliable software.
***
*** However, in recent releases, P5P (who maintain perl) have been
*** introducing regressions that are sometimes subtle and at other times
*** catastrophic, often for personal preferences with little or no concern
*** for existing code, most notably CPAN.
***
*** For this reason, it has become very hard for me to maintain the level
*** of reliability and support I have committed myself to in the past, at
*** least with some perl versions: I simply can't keep up working around new
*** bugs or gratituous incompatibilities, and in turn you might suffer from
*** unanticipated problems.
***
*** Therefore I have introduced a support and compatibility check, the results
*** of which follow below, together with a FAQ and some recommendations.
***
*** This check is just to let you know that there might be a risk, so you can
*** make judgement calls on how to proceed - it will not keep the module from
*** installing or working.
***
*** The stability canary says: chirp! chirp! (it seems to be quite happy)
***
*** Your version of perl (5.020002) is quite supported by JSON::XS, nothing
*** else to be said, hope it comes in handy.
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for JSON::XS
Writing MYMETA.yml and MYMETA.json
MLEHMANN/JSON-XS-3.04.tar.gz
C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for M/ML/MLEHMANN/JSON-XS-3.04.tar.gz
cp XS.pm blib\lib\JSON\XS.pm
cp XS/Boolean.pm blib\lib\JSON\XS\Boolean.pm
Running Mkbootstrap for JSON::XS ()
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "XS.bs"
"C:\Strawberry\perl\bin\perl.exe" "C:\Strawberry\perl\lib\ExtUtils\xsubpp" -typemap "C:\STRAWB~1\perl\lib\ExtUtils\typemap" -typemap "typemap" XS.xs > XS.xsc && "C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e mv -- XS.xsc XS.c
gcc -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"3.04\" -DXS_VERSION=\"3.04\" "-IC:\STRAWB~1\perl\lib\CORE" XS.c
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"JSON::XS\", 'DLBASE' => 'XS', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
dlltool --def XS.def --output-exp dll.exp
g++ -o blib\arch\auto\JSON\XS\XS.xs.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib" XS.o "C:\STRAWB~1\perl\lib\CORE\libperl520.a" -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp
dlltool --def XS.def --base-file dll.base --output-exp dll.exp
g++ -o blib\arch\auto\JSON\XS\XS.xs.dll -mdll -s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib" XS.o "C:\STRAWB~1\perl\lib\CORE\libperl520.a" -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 755 blib\arch\auto\JSON\XS\XS.xs.dll
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e cp -- bin/json_xs blib\script\json_xs
pl2bat.bat blib\script\json_xs
MLEHMANN/JSON-XS-3.04.tar.gz
C:\STRAWB~1\c\bin\dmake.exe -- OK
Running make test
"C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/00_load.t ............. ok
t/01_utf8.t ............. ok
t/02_error.t ............ ok
t/03_types.t ............ ok
t/04_dwiw_encode.t ...... ok
t/05_dwiw_decode.t ...... ok
t/06_pc_pretty.t ........ ok
t/07_pc_esc.t ........... ok
t/08_pc_base.t .......... ok
t/09_pc_extra_number.t .. ok
t/10_pc_keysort.t ....... ok
t/11_pc_expo.t .......... ok
t/12_blessed.t .......... ok
t/13_limit.t ............ ok
t/14_latin1.t ........... ok
t/15_prefix.t ........... ok
t/16_tied.t ............. ok
t/17_relaxed.t .......... ok
t/18_json_checker.t ..... ok
t/19_incr.t ............. ok
t/20_faihu.t ............ ok
t/21_evans.t ............ ok
t/22_comment_at_eof.t ... ok
t/52_object.t ........... ok
t/99_binary.t ........... ok
All tests successful.
Files=25, Tests=25584, 17 wallclock secs ( 6.20 usr + 0.31 sys = 6.52 CPU)
Result: PASS
MLEHMANN/JSON-XS-3.04.tar.gz
C:\STRAWB~1\c\bin\dmake.exe test -- OK
Running make install
Files found in blib\arch: installing files in blib\lib into architecture dependent library tree
Installing C:\STRAWB~1\perl\site\lib\auto\JSON\XS\XS.xs.dll
Installing C:\STRAWB~1\perl\site\lib\JSON\XS.pm
Installing C:\STRAWB~1\perl\site\lib\JSON\XS\Boolean.pm
Installing C:\STRAWB~1\perl\site\bin\json_xs
Installing C:\STRAWB~1\perl\site\bin\json_xs.bat
Appending installation info to C:\STRAWB~1\perl\lib/perllocal.pod
MLEHMANN/JSON-XS-3.04.tar.gz
C:\STRAWB~1\c\bin\dmake.exe install UNINST=1 -- OK


Man sieht hier auch schön, wie das dependency CPAN:Canary::Stability automatisch gezogen und installiert wird.
Und noch weiter unten sieht man den Kompiliervorgang mit dem gcc.

modedit Editiert von GwenDragon: More-Tag für langen Text
Last edited: 2017-09-02 17:01:05 +0200 (CEST)
10 print "Hallo"
20 goto 10

View full thread Ersatz für Activestate Perl Development Kit unter Windows 10