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灯, 水草

请输入看板名称,例如:Gossiping站内搜寻

TOP