Thanks for your reply. I really cannot install any module, either using cpan module or cpanp or directly or perl -MCPAN or shell. As far as I can tell, there is no Linux-like configure equivalent for Windows, I simply used nmake /f Makefile , as per instructions found in README file
Output of cpan look YAML
U:\.cpan\build\YAML-0.84-q_8Aj2>C:\path\to\perl\bin\perl.exe Makefile.
+PL
Checking if your kit is complete...
Looks good
Writing Makefile for YAML
JSON 2.5 is required for $ENV{PERL_JSON_BACKEND} = 'JSON::XS'
at C:/path/to/perl/lib/CPAN/Meta/Converter.pm line 23.
at C:/path/to/perl/lib/ExtUtils/MM_Any.pm line 1335.
END failed--call queue aborted.
But it won't let me install JSON or JSON::XS when I try that. I have JSON::PP 2.53 in the perl/lib directory, which it does show in @INC.
Output of perl -V
Summary of my perl5 (revision 5 version 16 subversion 0) configuration
+:
Platform:
osname=MSWin32, osvers=6.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und
+ef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D
+_CONSOLE -
DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DP
+ERL_TEXTMO
DE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO',
optimize='-MD -Zi -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='15.00.30729.01', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64
+', lseeksi
ze=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -l
+ibpath:"C:
\path\to\perl\lib\CORE" -machine:x86 "/manifestdependency:type='Win32
+' name='
Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitec
+ture='*' p
ublicKeyToken='6595b64144ccf1df' language='*'"'
libpth=\lib
libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
+comdlg32.l
ib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.
+lib ws2_32
.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.l
+ib msvcrt.
lib
perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.l
+ib comdlg
32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib u
+uid.lib ws
2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl
+32.lib msv
crt.lib
libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl516.lib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:
+ref,icf -
libpath:"C:\path\to\perl\lib\CORE" -machine:x86 "/manifestdependency:
+type='Wi
n32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' proces
+sorArchite
cture='*' publicKeyToken='6595b64144ccf1df' language='*'"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PL_OP_SLAB
+_ALLOC
USE_ITHREADS USE_LARGE_FILES USE_LOCALE
USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under MSWin32
Compiled at Mar 20 2013 13:27:17
%ENV:
PERL_JSON_BACKEND="JSON::XS"
PERL_YAML_BACKEND="YAML"
@INC:
C:/path/to/perl/site/lib
C:/path/to/perl/lib
.
Output of perl -MData::Dumper -e " print Dumper(\%ENV) "
perl -MData::Dumper -e " print Dumper(\%ENV) "
$VAR1 = {
'USERPROFILE' => 'C:\\Users\\rahul',
'USERDNSDOMAIN' => 'MY_COMPANY.COM',
'HOMEDRIVE' => 'U:',
'VS90COMNTOOLS' => 'c:\\Program Files\\Microsoft Visual Stud
+io 9.0\\Co
mmon7\\Tools\\',
'CLIENTNAME' => 'My_Computer_name',
'COMMONPROGRAMFILES' => 'C:\\Program Files\\Common Files',
'WINDOWS_TRACING_FLAGS' => '3',
'APPDATA' => 'C:\\Users\\rahul\\AppData\\Roaming',
'PROGRAMFILES' => 'C:\\Program Files',
'OS' => 'Windows_NT',
'LOCALAPPDATA' => 'C:\\Users\\rahul\\AppData\\Local',
'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.W
+SH;.MSC',
'PROMPT' => '$P$G',
'NUMBER_OF_PROCESSORS' => '1',
'FP_NO_HOST_CHECK' => 'NO',
'HOMEPATH' => '\\',
'PATH' => 'C:\\Windows\\system32;C:\\Windows;C:\\Windows\\Sy
+stem32\\Wb
em;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;c:\\Program Files\
+\Microsoft
SQL Server\\90\\Tools\\binn\\;C:\\Program Files\\Microsoft Visual Stu
+dio 9.0\\V
C\\bin',
'PERL_YAML_BACKEND' => 'YAML',
'USERDOMAIN' => 'MY_DOMAIN',
'PROGRAMDATA' => 'C:\\ProgramData',
'TERM' => 'dumb',
'PROCESSOR_ARCHITECTURE' => 'x86',
'PSMODULEPATH' => 'C:\\Windows\\system32\\WindowsPowerShell\
+\v1.0\\Mod
ules\\',
'PERL_JSON_BACKEND' => 'JSON::XS',
'TEMP' => 'C:\\Users\\rahul\\AppData\\Local\\Temp',
'WINDOWS_TRACING_LOGFILE' => 'C:\\BVTBin\\Tests\\installpack
+age\\csilo
gfile.log',
'PROCESSOR_REVISION' => '1a05',
'SYSTEMDRIVE' => 'C:',
'SYSTEMROOT' => 'C:\\Windows',
'COMSPEC' => 'C:\\Windows\\system32\\cmd.exe',
'HOMESHARE' => '\\\\servername\\users\\rahul',
'LOGONSERVER' => '\\\\SERVER',
'SESSIONNAME' => 'RDP-Tcp#0',
'WINDIR' => 'C:\\Windows',
'FTP_PASSIVE' => '1',
'PROCESSOR_LEVEL' => '6',
'PUBLIC' => 'C:\\Users\\Public',
'USERNAME' => 'rahul',
'PROCESSOR_IDENTIFIER' => 'x86 Family 6 Model 26 Stepping 5,
+ GenuineIn
tel',
'VS80COMNTOOLS' => 'C:\\Program Files\\Microsoft Visual Stud
+io 8\\Comm
on7\\Tools\\',
'ALLUSERSPROFILE' => 'C:\\ProgramData',
'COMPUTERNAME' => 'VMWIN-7',
'TMP' => 'C:\\Users\\rahul\\AppData\\Local\\Temp'
};
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.