尝试使用Perl安装模块

时间:2014-02-20 16:48:54

标签: perl strawberry-perl

我在Windows上使用Strawberry,我正在尝试安装几个模块(PDL :: Lite,PDL :: Basic,PDL :: MatrixOps,PDL :: LinearAlgebra和Math :: Random)。

我能够通过CPAN安装模块PDL :: Basic,Math :: Random。我在尝试安装PDL时出现错误消息(错误代码129,同时制作'.. \ blib \ arch \ auto \ PDL \ LinearAlgebra \ Trans \ Trans.dll';以及错误代码255,同时制作'subdirs'): :LinearAlgebra

cpan> install PDL::LinearAlgebra
Fetching with LWP:
http://cpan.strawberryperl.com/authors/01mailrc.txt.gz
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 Wed, 19 Feb 2014 16:49:52 GMT

Updating database file ...
Done!
Running install for module 'PDL::LinearAlgebra'
Running make for C/CH/CHM/PDL-LinearAlgebra-0.08.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\C\CH\CHM\PDL-LinearAlgebra-0.
08.tar.gz ok
Scanning cache C:\strawberry\cpan\build for sizes
............................................................................DONE


  CPAN.pm: Building C/CH/CHM/PDL-LinearAlgebra-0.08.tar.gz

Checking if your kit is complete...
Looks good
WARNING: LDLOADLIBS is not a known parameter.
Generating a dmake-style Makefile
Writing Makefile for PDL::LinearAlgebra::Trans
WARNING: LDLOADLIBS is not a known parameter.
Generating a dmake-style Makefile
Writing Makefile for PDL::LinearAlgebra::Real
WARNING: LDLOADLIBS is not a known parameter.
Generating a dmake-style Makefile
Writing Makefile for PDL::LinearAlgebra::Complex
Generating a dmake-style Makefile
Writing Makefile for PDL::LinearAlgebra::Special
Writing MYMETA.yml and MYMETA.json
Generating a dmake-style Makefile
Writing Makefile for PDL::LinearAlgebra
Writing MYMETA.yml and MYMETA.json
cp LinearAlgebra.pm blib\lib\PDL\LinearAlgebra.pm
C:\strawberry\perl\bin\perl.exe -IC:/strawberry/perl/site/lib "-MPDL::PP qw/PDL:
:LinearAlgebra::Trans PDL::LinearAlgebra::Trans Trans/" trans.pd
cp Trans.pm ..\blib\lib\PDL\LinearAlgebra/Trans.pm
Running Mkbootstrap for PDL::LinearAlgebra::Trans ()
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Trans.bs
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp  -typemap
 C:\strawberry\perl\lib\ExtUtils\typemap -typemap C:/strawberry/perl/site/lib/PD
L/Core/typemap.pdl  Trans.xs > Trans.xsc && C:\strawberry\perl\bin\perl.exe -MEx
tUtils::Command -e mv -- Trans.xsc Trans.c
gcc -c  -IC:/strawberry/perl/site/lib/PDL/Core  -s -O2 -DWIN32 -DWIN64 -DCONSERV
ATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_
PERLIO -fno-strict-aliasing -mms-bitfields -s -O2         -DVERSION=\"0.08\"
-DXS_VERSION=\"0.08\"  "-IC:\strawberry\perl\lib\CORE"   Trans.c
C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \
     -e "Mksymlists('NAME'=>\"PDL::LinearAlgebra::Trans\", 'DLBASE' => 'Trans',
'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
dlltool --def Trans.def --output-exp dll.exp
g++ -o ..\blib\arch\auto\PDL\LinearAlgebra\Trans\Trans.dll -Wl,--base-file -Wl,d
ll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" Trans.o
   C:\strawberry\perl\lib\CORE\libperl518.a oldnames.lib kernel32.lib user32.lib
 gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut3
2.lib  netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib odbc32.l
ib odbccp32.lib msvcrt.lib  ../lapack/libacml.lib "C:\Program Files\Microsoft Vi
sual Studio .NET 2003\Vc7\lib\msvcrt.lib" dll.exp
g++: error: oldnames.lib: No such file or directory
g++: error: kernel32.lib: No such file or directory
g++: error: user32.lib: No such file or directory
g++: error: gdi32.lib: No such file or directory
g++: error: winspool.lib: No such file or directory
g++: error: comdlg32.lib: No such file or directory
g++: error: advapi32.lib: No such file or directory
g++: error: shell32.lib: No such file or directory
g++: error: ole32.lib: No such file or directory
g++: error: oleaut32.lib: No such file or directory
g++: error: netapi32.lib: No such file or directory
g++: error: uuid.lib: No such file or directory
g++: error: wsock32.lib: No such file or directory
g++: error: mpr.lib: No such file or directory
g++: error: winmm.lib: No such file or directory
g++: error: version.lib: No such file or directory
g++: error: odbc32.lib: No such file or directory
g++: error: odbccp32.lib: No such file or directory
g++: error: msvcrt.lib: No such file or directory
g++: error: ../lapack/libacml.lib: No such file or directory
g++: error: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\msvcrt.li
b: No such file or directory
dmake:  Error code 129, while making '..\blib\arch\auto\PDL\LinearAlgebra\Trans\
Trans.dll'
dmake.exe:  Error code 255, while making 'subdirs'
  CHM/PDL-LinearAlgebra-0.08.tar.gz
  C:\strawberry\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
Stopping: 'install' failed for 'PDL::LinearAlgebra'.
Failed during this command:
 CHM/PDL-LinearAlgebra-0.08.tar.gz            : make NO

我找不到PDL :: Lite和PDL :: MatrixOps所以我下载了它们,但当我尝试在目录C:\ Users \ home \ Downloads中使用gzip -d PDL-2.007.tar.gz时,它说“gzip”不被识别为内部或外部命令,可操作程序或批处理文件。我的电脑上有winzip。我可以手动解压缩文件,但是我没有'tar'没有被识别为内部或外部命令,可操作程序或批处理文件。

我希望有人可以帮助我

由于

1 个答案:

答案 0 :(得分:0)

您没有阅读README

DEPENDENCIES

This module requires PDL and working BLAS and LAPACK libraries.