|
|
我使用RedHat9自带的xpdf-2.01,但是无法阅读中文文档,参考网上的文章将add-to-xpdfrc中的内容拷贝到xpdfrc中也不能解决问题,所以我从网上下载了xpdf-3.01,freetype-2.1.10.tar.gz, t1lib-5.1.0.tar.gz,xpdf-chinese-simplified.tar.gz希望通过升级解决这一问题.
我先安装了freetype2和t1lib
结果无法运行xpdf-2.01,从命令行运行,输入xpdf,系统提示无法找到libt1.so.5,而我可以用"查找"找到它.删除与t1lib相关的文件后xpdf-2.01可以正常使用.
xpdf-3.01编译步骤:
第一次:
./configure
...
configure: WARNING: Couldn't find FreeType
configure: WARNING: -- You will be able to compile pdftops, pdftotext,
pdfinfo, pdffonts, and pdfimages, but not xpdf or pdftoppm
出现错误!
第二次:
./configure --with-x --with-freetype2-library=/usr/local/lib --with-freetype2-includes=/usr/local/include/
...
configure: WARNING: Couldn't find FreeType
configure: WARNING: -- You will be able to compile pdftops, pdftotext,
pdfinfo, pdffonts, and pdfimages, but not xpdf or pdftoppm
出现错误!
第三次:
./configure --with-x --with-freetype2-library=/usr/local/lib --with-freetype2-includes=/usr/local/include/freetype2
...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating goo/Makefile
config.status: creating fofi/Makefile
config.status: creating splash/Makefile
config.status: creating xpdf/Makefile
config.status: creating aconf.h
执行configure无问题.
make
...
collect2: ld returned 1 exit status
make[1]: *** [xpdf] Error 1
make[1]: Leaving directory `/root/temp/xpdf-3.01/xpdf'
make: *** [all] Error 2
出现错误!
卸载xpdf-2.01,重新安装t1lib后可以通过configure(使用了--with-t1-library和--with-t1-includes)和make,但运行xpdf时还是提示无法找到libt1.so.5
为什么???
有哪位成功编译并使用xpdf-3.01的,请将步骤贴上来,谢谢! |
|