在windows服务器上安装pdfgrep

在windows服务器上安装pdfgrep,pdf,grep,windows-server-2008,Pdf,Grep,Windows Server 2008,我正试图在Windows Server 2008 R2上安装pdfgrep命令行实用程序,不幸的是,下载后我不知道如何处理这些源文件,因此我研究了与堆栈溢出相关的问题,找到了一个通知单,告诉我安装cygwin,我已经这样做了,但是当我进行/configure时,它不起作用,下面是我得到的输出: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is san

我正试图在Windows Server 2008 R2上安装
pdfgrep
命令行实用程序,不幸的是,下载后我不知道如何处理这些源文件,因此我研究了与堆栈溢出相关的问题,找到了一个通知单,告诉我安装
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.

>我还需要安装什么?

< p>对不起,我自己发现了这个问题,我只是重新运行CygWin安装程序,在重新安装

< p>之前选择C++编译。我知道用户找到了解决方案,但是我没有安装CygWin的选择(因为……),我找到了一个简单的解决方案。 注意:我运行的是windows 10,因此这可能不适用于低于7的windows

您只需解压缩文件夹,然后转到
DOS
或命令提示符。 现在有两种方法

  • 转到文件夹本身并从那里运行它
  • 或 2.直接从命令提示符中的任何位置运行代码

    C:\to\where\the\folder\is\pdfgrep -i keyword1|keyword2|etc C:\wherever\the\file\is.pdf
    
    -i
    为忽略大小写(pdfgrep选项之一)

    希望这能帮助其他人

    C:\to\where\the\folder\is\pdfgrep -i keyword1|keyword2|etc C:\wherever\the\file\is.pdf