|
|
经测试,使用slackware官方的19.3.3,使用官方脚本构建没有成功,缺一大堆依赖。今天用了一天的时间来解决perl的XML::parser依赖,一直没能成功,还要麻烦前辈帮我看看出错信息,百度翻了个底,各种方法都用了,还是搞不定。
出错信息1,(手动编译XML::Parser-2.46):
===================
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.5/../../../../lib/libexpat.a(xmlparse.o): relocation R_X86_64_PC32 against symbol `XML_ParserFree' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:458: recipe for target '../blib/arch/auto/XML/Parser/Expat/Expat.so' failed
make[1]: *** [../blib/arch/auto/XML/Parser/Expat/Expat.so] Error 1
make[1]: Leaving directory '/home/cdl/Desktop/XML-Parser-2.46/Expat'
Makefile:596: recipe for target 'subdirs' failed
make: *** [subdirs] Error 2
这里有两个错误,一个是-fPIC,我试了make -j CFLGS=-fPIC,make不会工作,./configure时有效,make时好像无效,而编译XML::Parser-2.46目录里不是使用./configure,而是# perl Makefile.PL
第二个错误信息(编译Mesa,Thunar时都会遇到,xfce有些组件都会用到perl和python):
=============
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.24.0
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
最后一句,依赖上面一个,于是卡在这一步了。望前辈帮忙看看,谢谢! |
|