pdf - 在 Windows 服务器上安装 pdfgrep

标签 pdf grep windows-server-2008

我正在尝试在 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 或命令提示符。 现在有两种方法可以解决这个问题。

  1. 转到文件夹本身并从那里运行它
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/

相关文章:

c# - 无法运行 couchbase .net memcache 客户端,提示它的强名称验证失败

javascript - 使用 mpdf 通过 AJAX 生成 PDF

c# - 填写表格并打印文档

mysql - 我在将 WordPress 网站移动到另一台服务器的步骤中是否遗漏了任何内容?

html - IIS、ColdFusion 或 TomCat 会在大约 4MB 时切断页面输出 - 我需要帮助来确定哪个设置限制了该输出?

linux - 仅杀死特定 Java jar 的进程(实例)

c# - 是否可以通过 Azure 辅助角色中的 .NET 代码进行打印

java - Primefaces InputStream 在文件下载中生成损坏的 PDF

grep - grep 可以只显示与搜索模式匹配的单词吗?

shell - 使用 grep 匹配零字节的问题