我正在尝试在 Windows Server 2008 R2 上安装 pdfgrep
命令行实用程序 this sources不幸的是,我不知道下载后如何处理这些源文件,所以我搜索了 stackoverflow 相关问题,我发现了一张告诉安装 cygwin 的票,我已经这样做了,但是当我./configure
,它不起作用,这是我得到的输出:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/home/Administrateur/pdfgrep-1.2':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
那么我还需要安装什么才能使其正常工作?
最佳答案
我知道用户找到了解决方案,但我没有安装 Cygwin 的选项(由于某些原因......),我找到了一个简单的解决方案。 注意:我运行的是 Windows 10,因此这可能不适用于 Windows 7 以下版本。
您所需要做的就是解压文件夹,然后进入 DOS 或命令提示符。 现在有两种方法可以解决这个问题。
- 转到文件夹本身并从那里运行它
cd C:\to\where\the\folder\is
pdfgrep -i keyword1|keyword2|etc C:\wherever\the\file\is.pdf
或 2. 直接从命令提示符中的任何位置运行代码
C:\to\where\the\folder\is\pdfgrep -i keyword1|keyword2|etc C:\wherever\the\file\is.pdf
-i
忽略大小写(pdfgrep 选项之一)。
希望这对其他人有帮助
关于pdf - 在 Windows 服务器上安装 pdfgrep,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24780428/