2011-10-03 154 views
0

我在嘗試在我的系統(fedora,perl v5.8.8)上安裝perl Tk時遇到了問題。我從http://search.cpan.org/~srezic/Tk-804.029/pod/gencmd下載了tarred模塊,解壓縮它。在終端中,我給了「perl Makefile .PL「,其中工作得很好,然後」製造「,它不能完成。下面是它給出的:在fedora上安裝Perl/Tk

"make[1]: Entering directory `/work/harikal/Tk-804.029/pTk' 
gcc -c -I.. -I. -Ibitmaps -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"804.029\" -DXS_VERSION=\"804.029\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ tkImgPhoto.c 
tkImgPhoto.c: In function ‘AllocateColors’: 
tkImgPhoto.c:3584: warning: implicit declaration of function ‘sazeof’ 
tkImgPhoto.c:3584: error: expected expression before ‘XColor’ 
make[1]: *** [tkImgPhoto.o] Error 1 
make[1]: Leaving directory `/work/harikal/Tk-804.029/pTk' 
make: *** [pTk/libpTk.a] Error 2" 

然後它退出。我應該做些什麼?? 請幫忙

謝謝。

回答

5

如果您使用的是系統安裝的Perl,那麼爲什麼不使用Fedora項目的模塊預構建包。

$ sudo yum install perl-Tk