我有一个 HostGator VPS 服务器,并且希望能够运行(http://www.foolabs.com/xpdf/download.html)pdftotext
的一部分。xpdf
在我的 Mac 上测试后,它运行良好,所以我将它安装在我的 VPS 服务器上。
我按照安装说明进行操作,一切都完美无缺:
将可执行文件(xpdf、pdftotext 等)复制到 /usr/local/bin。
将手册页(*.1 和 *.5)复制到 /usr/local/man/man1 和 /usr/local/man/man5。
将 sample-xpdfrc 文件复制到 /usr/local/etc/xpdfrc
然后我测试了它:
root@*** [~]# pdftotext
pdftotext: /lib64/libc.so.6: version `GLIBC_2.11' not found (required by pdftotext)
如您所见,它找不到/lib64/libc.so.6
. /lib64/libc.so.6
但是,是否存在,如下所示:
root@*** [~]# /lib64/libc.so.6
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-52).
Compiled on a Linux 2.6.9 system on 2012-03-19.
Available extensions:
The C stubs add-on version 2.1.2.
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
GNU libio by Per Bothner
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
RT using linux kernel aio
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
然后我联系了 HostGator,他们告诉我它无法在我的服务器上运行,因为它找不到/lib64/libc.so.6
,因此在 Centos 6 64 位上不可用。
如果这确实是真的,是否有任何替代方法可以pdftotext
在此服务器上进行简单快速的转换?是否pdftotext
可以针对不同的版本进行编译,或者我使用权限错误地安装了它?