Thread Strawberry perl: Nachinstallation mit CPAN bringt sh.exe invalid argument (3 answers)
Opened by Kirsche at 2011-08-05 16:13

Kirsche
 2011-08-05 16:13
#151228 #151228
User since
2011-08-05
10 Artikel
BenutzerIn
[default_avatar]
Hallo,

ich habe unter Windows XT die portable Version von Strawberry Perl 5.10 installiert. Dort möchte ich mit CPAN Module nachinstallieren und erhalte egal welches Modul folgende Meldungen:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
----------------------------------------------
Welcome to Strawberry Perl Portable Edition!
* URL - http://www.strawberryperl.com/
* see README.portable.TXT for more info
----------------------------------------------
Perl executable: S:\hostexec\StrawberryPerl510Portable\perl\bin\perl.exe
Perl version : 5.10.1

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

S:\hostexec\StrawberryPerl510Portable>cpan Win32::ODBC
CPAN: LWP::UserAgent loaded ok (v5.834)
CPAN: Time::HiRes loaded ok (v1.9721)
Fetching with LWP:
http://cpan.strawberryperl.com/authors/01mailrc.txt.gz

Proxy authentication needed!
(Note: to permanently configure username and password run
o conf proxy_user your_username
o conf proxy_pass your_password
)
Username: ddl1ag
CPAN: Term::ReadKey loaded ok (v2.30.01)
Password:

CPAN: YAML loaded ok (v0.71)
CPAN: CPAN::SQLite loaded ok (v0.199)
Fetching with LWP:
http://cpan.strawberryperl.com/modules/02packages.details.txt.gz
Fetching with LWP:
http://cpan.strawberryperl.com/modules/03modlist.data.gz
Database was generated on Tue, 02 Aug 2011 06:57:23 GMT
Updating database file ...

Gathering information from index files ...
Obtaining current state of database ...
Populating database tables ...
Done!
Running install for module 'Win32::ODBC'
Running make for J/JD/JDB/Win32-ODBC-0.034.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/J/JD/JDB/Win32-ODBC-0.034.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/J/JD/JDB/CHECKSUMS
CPAN: Compress::Zlib loaded ok (v2.027)
Checksum for S:\hostexec\StrawberryPerl510Portable\cpan\sources\authors\id\J\JD\
JDB\Win32-ODBC-0.034.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.60)
CPAN: File::Temp loaded ok (v0.22)

CPAN.pm: Going to build J/JD/JDB/Win32-ODBC-0.034.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Win32::ODBC
dmake.exe: Error: -- C:\PROGRA~1\MKSTOO~1\mksnt\sh.exe;c:\Programme\\MKS\Toolki
t\mksnt\sh.exe: Invalid argument
JDB/Win32-ODBC-0.034.tar.gz
S:\hostexec\StrawberryPerl510Portable\c\bin\dmake.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible

S:\hostexec\StrawberryPerl510Portable>cd cpan

S:\hostexec\StrawberryPerl510Portable\cpan>cd build

S:\hostexec\StrawberryPerl510Portable\cpan\build>cd Win32-ODBC-0.034-2RM2YZ

S:\hostexec\StrawberryPerl510Portable\cpan\build\Win32-ODBC-0.034-2RM2YZ>perl Ma
kefile.pl
Writing Makefile for Win32::ODBC

S:\hostexec\StrawberryPerl510Portable\cpan\build\Win32-ODBC-0.034-2RM2YZ>dmake
dmake: Error: -- C:\PROGRA~1\MKSTOO~1\mksnt\sh.exe;c:\Programme\\MKS\Toolkit\mk
snt\sh.exe: Invalid argument

S:\hostexec\StrawberryPerl510Portable\cpan\build\Win32-ODBC-0.034-2RM2YZ>path
PATH=S:\hostexec\StrawberryPerl510Portable\perl\site\bin;S:\hostexec\StrawberryP
erl510Portable\perl\bin;S:\hostexec\StrawberryPerl510Portable\c\bin;C:\Programme
\Versant\FastObjects_t7_10.0\runtime\bin\;C:\Programme\Versant\FastObjects_t7_10
.0\bin\;C:\PROGRA~1\MKSTOO~1\bin;C:\PROGRA~1\MKSTOO~1\bin\X11;C:\PROGRA~1\MKSTOO
~1\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\Qu
ickTime\QTSystem\;C:\Programme\IBM\WebSphere MQ\Java\lib;C:\Programme\IBM\WebSph
ere MQ\BIN;C:\Programme\Gemeinsame Dateien\FFUMS\;C:\WINDOWS\system32\WindowsPow
erShell\v1.0;C:\Programme\Hoblink\Terminal Edition;C:\PROGRA~1\IBM\SQLLIB\BIN;C:
\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\Programme\UltraEdit-32;C:\PROGRA~1\IBM\SQLLIB\S
AMPLES\REPL;c:\Programme\MKS\Toolkit\bin;c:\Programme\MKS\IntegrityClient2009\bi
n;C:\Programme\SDClient

S:\hostexec\StrawberryPerl510Portable\cpan\build\Win32-ODBC-0.034-2RM2YZ>


Da ich keine Schreibrechte auf das C-Laufwerk habe, habe ich die perl\cpan\config.pm wie folgt manipuliert:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# S:\hostexec/.cpan/CPAN/MyConfig.pm.

$CPAN::Config = {
'applypatch' => q[],
'auto_commit' => q[1],
'build_cache' => q[10],
'build_dir' => q[S:\\hostexec\\StrawberryPerl510Portable\\cpan\\build],
'build_dir_reuse' => q[0],
'build_requires_install_policy' => q[yes],
'bzip2' => q[],
'cache_metadata' => q[0],
'check_sigs' => q[0],
'colorize_output' => q[0],
'colorize_print' => q[bold blue on_white],
'colorize_warn' => q[bold red on_white],
'commandnumber_in_prompt' => q[0],
'cpan_home' => q[S:\\hostexec\\StrawberryPerl510Portable\\cpan],
'curl' => q[],
'ftp' => q[],
'ftp_passive' => q[1],
'ftp_proxy' => q[http://proxy.proyname.de:3128],
'getcwd' => q[cwd],
'gpg' => q[],
'gzip' => q[ ],
'histfile' => q[S:\\hostexec\\StrawberryPerl510Portable\\cpan\\histfile],
'histsize' => q[100],
'http_proxy' => q[http://proxy.proxyname.de:3128],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[S:\\hostexec\\StrawberryPerl510Portable\\cpan\\sources],
'load_module_verbosity' => q[none],
'lynx' => q[],
'make' => q[S:\\hostexec\\StrawberryPerl510Portable\\c\\bin\\dmake.exe],
'make_arg' => q[],
'make_install_arg' => q[UNINST=1],
'makepl_arg' => q[INSTALL_BASE=s:hostexecStrawberryPerl510Portable],
'mbuild_arg' => q[],
'mbuild_install_arg' => q[--uninst 1],
'mbuildpl_arg' => q[],
'ncftp' => q[],
'ncftpget' => q[],
'no_proxy' => q[],
'pager' => q[C:\\WINDOWS\\system32\\more.COM],
'patch' => q[S:\\hostexec\\StrawberryPerl510Portable\\c\\bin\\patch.exe],
'prefer_installer' => q[MB],
'prefs_dir' => q[S:\\hostexec\\StrawberryPerl510Portable\\cpan\\prefs],
'prerequisites_policy' => q[follow],
'scan_cache' => q[atstart],
'shell' => q[C:\\WINDOWS\\system32\\cmd.exe],
'show_unparsable_versions' => q[0],
'show_upload_date' => q[1],
'show_zero_versions' => q[0],
'tar' => q[ ],
'tar_verbosity' => q[none],
'term_is_latin' => q[0],
'term_ornaments' => q[0],
'test_report' => q[0],
'unzip' => q[],
'urllist' => [q[http://cpan.strawberryperl.com/]],
'use_sqlite' => q[1],
'wget' => q[],
'yaml_load_code' => q[0],
'yaml_module' => q[YAML],
};
1;
__END__


Auf einem anderen Rechner konnte ich in dieselbe Version von Perl auf dem C-Laufwerk Module problemlos nachinstallieren.

Hat jemand einen Ansatz, woran das Problem liegen kann?

modedit Editiert von pq: code-tags statt color
Last edited: 2011-08-05 16:18:32 +0200 (CEST)

View full thread Strawberry perl: Nachinstallation mit CPAN bringt sh.exe invalid argument