2017-02-17 129 views
0

當我嘗試安裝Unicode::Map模塊時,出現以下錯誤。我試圖用dmake和MinGW在本地構建這個文件,我從Metacpan下載了TAR文件。安裝Unicode :: Map模塊時出錯

C:\Users\MG\Downloads\Unicode-Map-0.112.tar\Unicode-Map-0.112>perl Makefile.PL 
Generating a dmake-style Makefile 
Writing Makefile for Unicode::Map 
Writing MYMETA.yml and MYMETA.json 

C:\Users\MG\Downloads\Unicode-Map-0.112.tar\Unicode-Map-0.112>dmake 
Skip blib\lib\Unicode\Map.pm (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\CHINSIMP.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\CROATIAN.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\ICELAND.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\ARABIC.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\JAPANESE.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\CENTEURO.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\GUJARATI.map (unchanged) 
Skip blib\lib\Unicode\Map\ADOBE\STDENC.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\DEVANAGA.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\CHINTRAD.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\GREEK.map (unchanged) 
Skip blib\lib\Unicode\Map\ADOBE\ZDINGBAT.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\GURMUKHI.map (unchanged) 
Skip blib\lib\Unicode\Map\ADOBE\SYMBOL.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\DINGBATS.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\CYRILLIC.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\KOREAN.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\HEBREW.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\BIG5.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\JIS-X-0208.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\KSC1001.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\SYMBOL.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\CNS-11643-1986.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\GB12345-80.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\GB2312.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\EUC-KR.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\JIS-X-0212.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\GB2312-80.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\TURKISH.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\THAI.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\EUC-JP.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\ROMANIAN.map (unchanged) 
Skip blib\lib\Unicode\Map\APPLE\ROMAN.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\JIS-X-0201.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\JOHAB.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\ISO646-US.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP737.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-3.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP437.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-9.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-8.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-2.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\SHIFTJIS.map (unchanged) 
Skip blib\lib\Unicode\Map\EASTASIA\KSC5601-1992.map (unchanged) 
Skip blib\lib\Unicode\Map\IBM\IBM038.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-10.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-15.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-4.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-7.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP775.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-14.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-13.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-6.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-5.map (unchanged) 
Skip blib\lib\Unicode\Map\ISO\8859-1.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP862.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP860.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP874.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP857.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\EBCDIC\CP1026.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP865.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\EBCDIC\CP875.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP850.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\MAC\GREEK.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\EBCDIC\CP037.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP863.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\EBCDIC\CP500.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP869.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP866.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\MAC\CYRILLIC.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP852.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP864.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP861.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\DOS\CP855.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP932.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP1253.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\MAC\ROMAN.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP1254.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\MAC\ICELAND.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP949.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP1258.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\MAC\LATIN2.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP1251.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP1257.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP950.map (unchanged) 
Skip blib\lib\Unicode\Map\NEXT\NEXTSTEP.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP1255.map (unchanged) 
Skip blib\lib\Unicode\Map\REGISTRY (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP936.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP1252.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP1250.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\MAC\TURKISH.map (unchanged) 
Skip blib\lib\Unicode\Map\MS\WIN\CP1256.map (unchanged) 
Running Mkbootstrap for Unicode::Map() 
C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Map.bs 
D:\MinGW_4.9.2_Win_O\bin\gcc.exe -c  -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.112\" -DXS_VERSION=\"0.112\" "-IC:\Perl\lib\CORE" Map.c 
In file included from Map.xs:21:0: 
C:\Perl\lib\CORE/hv_func.h: In function 'S_perl_hash_murmur3': 
C:\Perl\lib\CORE/perl.h:1677:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 
# define INT2PTR(any,d) (any)(PTRV)(d) 
          ^
C:\Perl\lib\CORE/perl.h:1685:19: note: in expansion of macro 'INT2PTR' 
#define PTR2IV(p) INT2PTR(IV,p) 
       ^
C:\Perl\lib\CORE/hv_func.h:391:17: note: in expansion of macro 'PTR2IV' 
    STRLEN i = -PTR2IV(ptr) & 3; 
       ^
D:\MinGW_4.9.2_Win_O\bin\dlltool.exe --def Map.def --output-exp dll.exp 
D:\MinGW_4.9.2_Win_O\bin\g++.exe -o blib\arch\auto\Unicode\Map\Map.dll -Wl,--base-file -Wl,dll.base -mdll -s -static-libgcc -static-libstdc++ -L"C:\Perl\lib\CORE" -L"C:\MinGW\i686-w64-mingw32\lib" Map.o C:\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 
Map.o:Map.c:(.text+0xd): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x8a): undefined reference to `__imp_Perl_sv_2pv_flags' 
Map.o:Map.c:(.text+0x127): undefined reference to `__imp_Perl_block_gimme' 
Map.o:Map.c:(.text+0x14d): undefined reference to `__imp_Perl_newSV' 
Map.o:Map.c:(.text+0x15e): undefined reference to `__imp_Perl_sv_2mortal' 
Map.o:Map.c:(.text+0x1b9): undefined reference to `__imp_Perl_die_nocontext' 
Map.o:Map.c:(.text+0x1ce): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x1e9): undefined reference to `__imp_Perl_croak_xs_usage' 
Map.o:Map.c:(.text+0x20a): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x25a): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x29b): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x2ab): undefined reference to `__imp_Perl_newSV_type' 
Map.o:Map.c:(.text+0x2e5): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x2f9): undefined reference to `__imp_Perl_av_push' 
Map.o:Map.c:(.text+0x31f): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x333): undefined reference to `__imp_Perl_av_push' 
Map.o:Map.c:(.text+0x366): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x37a): undefined reference to `__imp_Perl_av_push' 
Map.o:Map.c:(.text+0x3ad): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x3c1): undefined reference to `__imp_Perl_av_push' 
Map.o:Map.c:(.text+0x403): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x417): undefined reference to `__imp_Perl_av_push' 
Map.o:Map.c:(.text+0x467): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x47b): undefined reference to `__imp_Perl_av_push' 
Map.o:Map.c:(.text+0x4a4): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x4b8): undefined reference to `__imp_Perl_av_push' 
Map.o:Map.c:(.text+0x4dd): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x539): undefined reference to `__imp_Perl_newRV' 
Map.o:Map.c:(.text+0x555): undefined reference to `__imp_Perl_sv_2mortal' 
Map.o:Map.c:(.text+0x57e): undefined reference to `__imp_Perl_croak_xs_usage' 
Map.o:Map.c:(.text+0x5e8): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x60b): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x632): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x649): undefined reference to `__imp_Perl_sv_2pv_flags' 
Map.o:Map.c:(.text+0x6e8): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x791): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x7c2): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x7e1): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x7f2): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x804): undefined reference to `__imp_Perl_sv_2iv_flags' 
Map.o:Map.c:(.text+0x816): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x828): undefined reference to `__imp_Perl_sv_2iv_flags' 
Map.o:Map.c:(.text+0x835): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x85d): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x86c): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x87e): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x8a3): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x964): undefined reference to `__imp_Perl_newSV' 
Map.o:Map.c:(.text+0x985): undefined reference to `__imp_Perl_av_len' 
Map.o:Map.c:(.text+0x9b0): undefined reference to `__imp_Perl_av_fetch' 
Map.o:Map.c:(.text+0xa08): undefined reference to `__imp_Perl_hv_common_key_len' 
Map.o:Map.c:(.text+0xa80): undefined reference to `__imp_Perl_sv_2iv_flags' 
Map.o:Map.c:(.text+0xace): undefined reference to `__imp_Perl_sv_2mortal' 
Map.o:Map.c:(.text+0xb29): undefined reference to `__imp_Perl_sv_setsv_flags' 
Map.o:Map.c:(.text+0xb58): undefined reference to `__imp_Perl_sv_catsv_flags' 
Map.o:Map.c:(.text+0xb67): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0xb87): undefined reference to `__imp_Perl_croak_xs_usage' 
Map.o:Map.c:(.text+0xba3): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0xc4f): undefined reference to `__imp_Perl_sv_2iv_flags' 
Map.o:Map.c:(.text+0xc98): undefined reference to `__imp_Perl_newSV' 
Map.o:Map.c:(.text+0xcab): undefined reference to `__imp_Perl_hv_common_key_len' 
Map.o:Map.c:(.text+0xce9): undefined reference to `__imp_Perl_sv_setsv_flags' 
Map.o:Map.c:(.text+0xd4c): undefined reference to `__imp_Perl_sv_catsv_flags' 
Map.o:Map.c:(.text+0xd7e): undefined reference to `__imp_Perl_sv_2mortal' 
Map.o:Map.c:(.text+0xdb9): undefined reference to `__imp_Perl_croak_xs_usage' 
Map.o:Map.c:(.text+0xe64): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0xe78): undefined reference to `__imp_Perl_sv_2iv_flags' 
Map.o:Map.c:(.text+0xee4): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0xf22): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0xf38): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0xf67): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0xf7b): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0xf82): undefined reference to `__imp_Perl_hv_common' 
Map.o:Map.c:(.text+0x1054): undefined reference to `__imp_Perl_newSVpvf_nocontext' 
Map.o:Map.c:(.text+0x1071): undefined reference to `__imp_Perl_newSVpvf_nocontext' 
Map.o:Map.c:(.text+0x10fb): undefined reference to `__imp_Perl_hv_common_key_len' 
Map.o:Map.c:(.text+0x1196): undefined reference to `__imp_Perl_hv_common_key_len' 
Map.o:Map.c:(.text+0x12d0): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x1386): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x1490): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x1744): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x1780): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x1920): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x1b09): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x1b62): undefined reference to `__imp_Perl_newSV_type' 
Map.o:Map.c:(.text+0x1b73): undefined reference to `__imp_Perl_newRV' 
Map.o:Map.c:(.text+0x1bc6): undefined reference to `__imp_Perl_newSV_type' 
Map.o:Map.c:(.text+0x1bd7): undefined reference to `__imp_Perl_newRV' 
Map.o:Map.c:(.text+0x1c52): undefined reference to `__imp_Perl_newSVpv' 
Map.o:Map.c:(.text+0x1d99): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x1dba): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x1e03): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x1e24): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x1e45): undefined reference to `__imp_Perl_warn_nocontext' 
Map.o:Map.c:(.text+0x1e66): more undefined references to `__imp_Perl_warn_nocontext' follow 
Map.o:Map.c:(.text+0x1ecd): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x1f61): undefined reference to `__imp_Perl_newSViv' 
Map.o:Map.c:(.text+0x1f88): undefined reference to `__imp_Perl_sv_2mortal' 
Map.o:Map.c:(.text+0x1fb1): undefined reference to `__imp_Perl_croak_xs_usage' 
Map.o:Map.c:(.text+0x1fcd): undefined reference to `__imp_Perl_get_context' 
Map.o:Map.c:(.text+0x2027): undefined reference to `__imp_Perl_xs_apiversion_bootcheck' 
Map.o:Map.c:(.text+0x2047): undefined reference to `__imp_Perl_xs_version_bootcheck' 
Map.o:Map.c:(.text+0x2050): undefined reference to `__imp_Perl_newXS' 
Map.o:Map.c:(.text+0x2104): undefined reference to `__imp_Perl_call_list' 
collect2.exe: error: ld returned 1 exit status 
dmake: Error code 129, while making 'blib\arch\auto\Unicode\Map\Map.dll' 

有人可以幫我與我應該怎麼辦消除這種誤差?

回答

2

您正在使用哪個版本的Perl?你在哪個Windows操作系統版本上?

您可以編譯模塊,但還有其他選項可用。

如果您使用的是Strawberry Perl,只需運行以下命令即可安裝它。

cpanm Unicode::Map

如果您在ActiveState的Perl中,它會像

ppm Unicode::Map

您是否嘗試過的?

我安裝了Strawberry和ActiveState Perl。在版本5.24.1(64位)和我在Windows 7 64位。我可以直接去dmake install,它似乎工作正常。所以無法重現這個問題。

編輯OP的更新後:

嗨....我沒有的activeperl 5.20.0的副本,但這裏有一些workarounds-

1)嘗試安裝其他模塊只是爲了測試它是否正常工作。如果是這樣,請再次嘗試下載Unicode :: Map並查看。可能是有一些文件損壞可能導致它。 (我可能是錯的)。

2)使用Strawberry perl portable。這是一個可以從他們的網站下載的草莓perl的便攜版本。注意: - 您必須點擊「更多下載」下方的「所有版本:ZIP,便攜式,特殊版本」行。下載便攜式perl版本。按照自述文件。然後,安裝Unicode :: Map以便它安裝在同一個文件夾中。然後將整個便攜式perl文件夾複製到希望運行它的服務器上。

下面介紹如何去做。我已經下載了Downloads文件夾下的便攜版本。文件名 - strawberry-perl-5.22.1.2-32bit-portable.zip。解壓縮它,cd到草莓Perl的5.22.1.2-32bit便攜式文件夾後

C:\Users\pmu>cd C:\Users\pmu\Downloads\strawberry-perl-5.22.1.2-32bit-portable 

然後運行portableshell.bat文件:

C:\Users\pmu\Downloads\strawberry-perl-5.22.1.2-32bit-portable>portableshell.bat 
---------------------------------------------- 
Welcome to Strawberry Perl Portable Edition! 
* URL - http://www.strawberryperl.com/ 
* see README.TXT for more info 
---------------------------------------------- 
Perl executable: C:\Users\pmu\Downloads\strawberry-perl-5.22.1.2-32bit-portable\perl\bin\perl.exe 
Perl version : 5.22.1/MSWin32-x86-multi-thread-64int 

從這裏開始,直到你打控制+ C或一些等價物,,直到你退出並關閉命令提示符窗口,你將會在這個perl的「版本」中。

現在只需cd cd到你有untarred文件的位置。

cd C:\Users\pmu\testthis\Unicode-Map-0.112> 

別擔心,你仍然會在Perl的5.22.1.2的「境界」。

現在運行makefile命令,然後運行dmake和dmake install命令。

這將做什麼,它會將模塊安裝在「草莓perl-5.22.1.2-32bit便攜」文件夾!

C:\Users\ugrankar\Downloads\strawberry-perl-5.22.1.2-32bit-portable\perl\site\lib\Unicode\Map 

然後,您可以簡單地將文件夾複製到要運行perl的服務器。只要記住cd到該文件夾​​並再次運行portable.bat。

希望這會有所幫助。

編輯答案進一步明晰

莫希特嗨,你不需要任何東西複製到的activeperl lib文件夾。

我們想要做的是,在您的服務器上爲Strawberry Perl Portable提供完全獨立的perl環境。因此,將便攜式perl文件夾從筆記本電腦複製到服務器後,您的服務器將擁有兩個perl環境。 1)第一個是ActiveState Perl。這將是默認的。 2)便攜式Perl。這是您從便攜式計算機複製到服務器上的文件夾。 我希望你已經將便攜式perl文件夾解壓縮到你的筆記本電腦或臺式機上,並運行命令在該便攜式perl文件夾中安裝模塊。考慮你的筆記本電腦名稱是「Mohitlaptop」。

將模塊安裝到筆記本電腦的便攜式perl中後,將便攜式perl文件夾(我的意思是整個文件夾)複製到服務器。假設服務器名稱是「Server1」。現在您需要做的是,登錄到server1,打開命令提示符,cd到您從筆記本電腦(Mohitlaptop)複製的文件夾,

然後運行portableshell.bat命令。您不必再次安裝模塊,因爲您已將模塊安裝在筆記本電腦上的便攜式perl文件夾中。

+0

嗨,我安裝了ActivePerl版本5.20.0,並且由於我在企業防火牆後面,我無法使用PPM和CPAN命令行。所以我唯一的選擇是下載tar文件並在本地構建模塊,但是我這樣做的時候出現錯誤,就像您在發佈的問題中看到的一樣。 – Mohit

+0

嗨安裝在便攜文件夾中的模塊。但是,最後一行是什麼意思 - 請記住cd到該文件夾​​並再次運行portable.bat。我已將該文件夾複製到我的ActivePerl lib文件夾中,我應該在哪裏cd並運行portableshell.bat或者它是否是您所指的portable.perl。 – Mohit

+0

此外,我仍然收到錯誤 - 在我的腳本中,無法在@INC中找到模塊Unicode :: Map的可加載對象。請幫助 – Mohit