ºìÁªLinuxÃÅ»§
Linux°ïÖú

CentOS Fedora RedHat°²×°Kscope-1.6.2±¨´í½â¾ö·½·¨

·¢²¼Ê±¼ä:2014-06-13 16:15:48À´Ô´:ºìÁª×÷Õß:velcbo
¿ÉÄÜÓÉÓÚûÓÐǮ׬µÄÔ­Òò£¬ËùÒÔkscopeÕâ¸öÃâ·ÑµÄ¿´´úÂëÉñÆ÷´Ó1.9.4¿ªÊ¼Ëƺõ¾ÍûÓиüÐÂÁË£¬¾ÍÁ¬1.9.4Õâ¸ö±È½Ïеİ汾£¬¸øÈ˸оõÒ²ÏñÊÇ×öÁËÒ»°ë¾Í·ÅÆúÁ˵IJúÆ·£¬»¹Ô¶Ô¶±È²»ÉÏ1.6.x°æ±¾µÄÇ¿´ó£¬µ«ÊÇÓÃrhel6»òÕßCentOS6ÒÔÉϰ汾µÄϵͳ£¬×°kscope-1.6.2È´»á±¨´í£¬¶øÇÒ´íÎó»¹Ã»ÓÐÖ±½Ó¸æËßÄãÐèҪװЩʲô°ü£¬ºÜÓпÉÄÜ×°ÁËÒ»´ó¶ÑµÄ°ü£¬µ½×îºó./configure»¹Êǹý²»ÁË¡£ÒÔϾͷÖÏíÒ»ÏÂcentosÔõÑù˳Àû°²×°kscope-1.6.2,°²×°¹ý³ÌÖÐϵͳ±¨µÄ´í²»Ò»¶¨¶¼Ïàͬ£¬µ«ÊÇ»ù±¾°´Ò»Ï·½·¨¶¼¿ÉÒÔ½â¾ö¡£

Ò»¡¢./configure³ö´í£º

checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. Thiswill fail.
So, check this please and use another prefix!

# yum install kdelibs3kdelibs3-devel

Good - your configure finished. Start make now

¶þ¡¢make³ö´í£º

/usr/bin/ld: cannot find -lkateinte rfaces
collect2: ld returned 1 exit status
make[3]: *** [kscope] ´íÎó 1
make[3]: Leaving directory`/root/Desktop/kscope/kscope-1.6.2/src'
make[2]: *** [all] ´íÎó 2
make[2]: Leaving directory`/root/Desktop/kscope/kscope-1.6.2/src'
make[1]: *** [all-recursive] ´íÎó 1
make[1]: Leaving directory`/root/Desktop/kscope/kscope-1.6.2'
make: *** [all] ´íÎó 2

# vim src/Makefile

482ÐиÄΪ£º
kscope_LDADD = /usr/lib/libkatepartinterfaces.la-lktexteditor $(LIB_KDEUI)

½Ó×Åmake,È»ºómake install ¾Í¿ÉÒÔ½â¾öÁË.
ÔÚÅäÖÃkscopeµÄʱºòÐèÒªÕÒµ½cscope ctags ºÍdotµÄ·¾¶ ,µ«ÊÇÕÒ²»µ½dotµÄ·¾¶£¬ÕâÊÇÖ»ÒªÅäÖúÃyumÔ´£¬È»ºóyum-y install graphviz.i686,Ôٲ²âdotµÄ·¾¶¾Í¿ÉÒÔÕÒµ½ÁË¡£

×÷Õߣºnapolin
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ