Perl 板


LINE

最近讀了perl學習手札,裡面有教如何用cpan來下載 perl模組,可能是我太笨了,學不會。所以想請教大 家。 我是在windows XP的系統下,安裝ActivePerl-5.8.7.815-MSWin32-x86-211909版本 在cpan安裝GD模組,MS-DOS顯示如下: cpan> install GD CPAN: Storable loaded ok Going to read \.cpan\sources\authors\01mailrc.txt.gz CPAN: Compress::Zlib loaded ok CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://cpan.cdpa.nsysu.edu.tw/Unix/Lang/CPAN/modules/02packages.details.txt.gz Going to read \.cpan\sources\modules\02packages.details.txt.gz Database was generated on Wed, 16 Aug 2006 21:32:34 GMT There's a new CPAN.pm version (v1.87) available! [Current version is v1.7601] You might want to try install Bundle::CPAN reload cpan without quitting the current session. It should be a seamless upgrade while we are running... Fetching with LWP: ftp://cpan.cdpa.nsysu.edu.tw/Unix/Lang/CPAN/modules/03modlist.data.gz Going to read \.cpan\sources\modules\03modlist.data.gz Going to write \.cpan\Metadata Running install for module GD Running make for L/LD/LDS/GD-2.34.tar.gz Fetching with LWP: ftp://cpan.cdpa.nsysu.edu.tw/Unix/Lang/CPAN/authors/id/L/LD/LDS/GD-2.34.tar. gz CPAN: Digest::MD5 loaded ok Fetching with LWP: ftp://cpan.cdpa.nsysu.edu.tw/Unix/Lang/CPAN/authors/id/L/LD/LDS/CHECKSUMS Checksum for \.cpan\sources\authors\id\L\LD\LDS\GD-2.34.tar.gz ok Scanning cache \.cpan\build for sizes CPAN: Archive::Tar loaded ok GD-2.34/ GD-2.34/t/ GD-2.34/t/test.out.3.jpeg GD-2.34/t/GD.t GD-2.34/t/tile.jpeg GD-2.34/t/test.out.4.jpeg GD-2.34/t/test.out.5.jpeg GD-2.34/t/test.out.6.jpeg GD-2.34/t/test.out.7.jpeg GD-2.34/t/test.out.8.jpeg GD-2.34/t/test.out.9.jpeg GD-2.34/t/test.out.3.png-1 GD-2.34/t/Polyline.t GD-2.34/t/test.out.4.png-1 GD-2.34/t/test.out.4.png-2 GD-2.34/t/test.out.10.png-1 GD-2.34/t/test.out.10.png-2 GD-2.34/t/test.out.10.png-3 GD-2.34/t/test.out.1.png GD-2.34/t/test.out.2.gif GD-2.34/t/test.out.2.png GD-2.34/t/test.out.3.gif GD-2.34/t/test.out.3.png GD-2.34/t/test.out.4.gif GD-2.34/t/test.out.4.png GD-2.34/t/test.out.5.gif GD-2.34/t/test.out.5.png GD-2.34/t/test.out.6.gif GD-2.34/t/test.out.6.png GD-2.34/t/test.out.7.gif GD-2.34/t/test.out.7.png GD-2.34/t/test.out.8.gif GD-2.34/t/test.out.8.png GD-2.34/t/test.out.9.gif GD-2.34/t/test.out.9.png GD-2.34/t/test.out.5.png-1 GD-2.34/t/Generic.ttf GD-2.34/t/test.out.6.png-1 GD-2.34/t/test.out.7.png-1 GD-2.34/t/frog.jpg GD-2.34/t/frog.xpm GD-2.34/t/test.out.10.jpeg GD-2.34/t/test.out.8.png-1 GD-2.34/t/test.out.8.png-2 GD-2.34/t/test.out.8.png-3 GD-2.34/t/test.out.8.png-4 GD-2.34/t/test.out.8.png-5 GD-2.34/t/test.out.8.png-6 GD-2.34/t/tile.gif GD-2.34/t/tile.png GD-2.34/t/test.out.2.png-1 GD-2.34/t/test.out.9.png-1 GD-2.34/t/test.out.9.png-2 GD-2.34/t/palettemap.png GD-2.34/t/test.out.10.gif GD-2.34/t/test.out.10.png GD-2.34/t/test.out.2.jpeg GD-2.34/GD/ GD-2.34/GD/Polygon.pm GD-2.34/GD/Simple.pm GD-2.34/GD/Image.pm.PLS GD-2.34/GD/Polyline.pm GD-2.34/GD.pm GD-2.34/GD.xs GD-2.34/demos/ GD-2.34/demos/brushes.pl GD-2.34/demos/font_list.png GD-2.34/demos/fonttest GD-2.34/demos/polys.pl GD-2.34/demos/fills.pl GD-2.34/demos/truetype_test GD-2.34/demos/shapes.pl GD-2.34/demos/copies.pl GD-2.34/demos/ttf.pl GD-2.34/demos/gd_example.cgi GD-2.34/demos/tile.png GD-2.34/demos/polyline.pl GD-2.34/demos/transform.pl GD-2.34/qd.pl GD-2.34/README GD-2.34/Makefile.PL GD-2.34/README.QUICKDRAW GD-2.34/META.yml GD-2.34/typemap GD-2.34/bdf_scripts/ GD-2.34/bdf_scripts/README GD-2.34/bdf_scripts/bdf2gdfont.PLS GD-2.34/bdf_scripts/bdftogd GD-2.34/bdf_scripts/bdf2gdfont.pl GD-2.34/README.unix GD-2.34/ChangeLog GD-2.34/MANIFEST CPAN.pm: Going to build L/LD/LDS/GD-2.34.tar.gz NOTICE: This module requires libgd 2.0.28 or higher. If you are using Math::Trig 1.01 or lower, it has a bug that causes a "prerequisite not found" warning to be issued. You may safely ignore this warning. Type perl Makefile.PL -h for command-line option summary 'gdlib-config' 不是內部或外部命令、 可執行的程式或批次檔。 Where is libgd installed? [/usr/lib] Please choose the features that match how libgd was built: Build JPEG support? [y] Build PNG support? [y] Build FreeType support? [y] Build GIF support? [y] Build support for animated GIFs? [y] If you experience compile problems, please check the @INC, @LIBPATH and @LIBS arrays defined in Makefile.PL and manually adjust, if necessary. Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lgd Note (probably harmless): No library found for -lpng Note (probably harmless): No library found for -lz Note (probably harmless): No library found for -lfreetype Note (probably harmless): No library found for -ljpeg Note (probably harmless): No library found for oldnames.lib Note (probably harmless): No library found for kernel32.lib Note (probably harmless): No library found for user32.lib Note (probably harmless): No library found for gdi32.lib Note (probably harmless): No library found for winspool.lib Note (probably harmless): No library found for comdlg32.lib Note (probably harmless): No library found for advapi32.lib Note (probably harmless): No library found for shell32.lib Note (probably harmless): No library found for ole32.lib Note (probably harmless): No library found for oleaut32.lib Note (probably harmless): No library found for netapi32.lib Note (probably harmless): No library found for uuid.lib Note (probably harmless): No library found for ws2_32.lib Note (probably harmless): No library found for mpr.lib Note (probably harmless): No library found for winmm.lib Note (probably harmless): No library found for version.lib Note (probably harmless): No library found for odbc32.lib Note (probably harmless): No library found for odbccp32.lib Note (probably harmless): No library found for msvcrt.lib Writing Makefile for GD 'nmake' 不是內部或外部命令、 可執行的程式或批次檔。 nmake -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible cpan> 書上了例子(我存檔成4.pl): use GD::Graph::bars3d; my $graph=GD::Graph::bars3d->new(800,600); my @files=</var/log/maillog.*.bz2>; my $image=$graph->plot([[map/(\d+)\./g,@files],[map -s,@files],]) or die $graph->error; open my $fh,'>','3.png'ordie $!; print $fh $image->png; print "@ING\n"; 我執行後MS-DOS出現如下: C:\Perl>perl 4.pl Can't locate GD/Graph/bars3d.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/sit e/lib .) at 4.pl line 1. BEGIN failed--compilation aborted at 4.pl line 1. 那到底是我沒有安裝成功GD模組,還是書上例題有錯呢?? 對不起版面弄得有點長,希望高手教我!! <(_ _)> --



※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 121.254.98.178
1F:推 qrtt1:windows下請改用ppm.exe或ppm3.exe 08/17 21:20
2F:→ rockdan:可否在詳細的說明一下,抱歉!我是新手 08/17 21:26
3F:→ rockdan:是perl package manager嗎 08/17 21:31
4F:→ rockdan:是否也是在ppm>下打install GD呢?? 08/17 21:33
5F:推 LiloHuang:請觀看本板先前我貼的 編號526號之文章內容說明 08/17 22:09
6F:→ rockdan:正在測試中,那是否會支援.PNG檔 08/17 22:11
7F:→ rockdan:是成功的install GD了但是我的4.pl還是無法執行 08/17 22:30
8F:推 LiloHuang:都會支援 如果還有錯誤就是CODE不對囉 08/17 23:00







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:Tech_Job站內搜尋

TOP