I don’t know how to raise a topic in “community” - but forum has been shut down. Sorry if I’m in the wrong place but this is extremely difficult to navigate.
I have a question about getting “pdfgrep” installed. It’s here: pdfgrep - Download
I had a previous executable working but I can’t seem to get that now either. I’ve got a TS-253D running QTS 5.2.6.3195. uname says “5.10.60-qnap” and “x86_64 GNU/Linux”.
Thank you, and sorry about that - even now I don’t see how to create a new topic in the browser UI, only “reply”… sorry if I’m just dim!
My goal is to get the command “pdfgrep” working from the command line on my QNAP. It was working before but it could be a year since I’ve used it. It’s possible it even came from my older QNAP so… it might be an ARM executable.
All of that aside, I just want to get pdfgrep working again but it says “./pdfgrep: cannot execute binary file” which I believe is typical if an executable is for the wrong platform.
So, I’d like to either download the right executable binary OR install it as a package. The linux’s I’ve used have apt or some other package manager and then “make” - which, I’ve got the source code but don’t see how to perform those actions on my QNAP.
In that sense, this might be a generic question on how to install packages on a QNAP server.
QTS doesn’t use any of the common package formats.
You could try compiling the executable from source. Follow the instructions on the developer’s website. Compiling inside QTS is a little hit-and-miss though.
How can I compile from source without doing it on QNAP? I’d need a linux machine of the same ilk, right? Any idea how I could do that? I’m not even sure what distributions I’d need to specify - and I am pretty sure TS-253D is an Intel processor - I don’t know what all I’d need to match or where to go about doing that. Any hint?
thank you for your help to this point though. Do you know the exact distro I’d be looking for if I can find pre-compiled binaries? I tried the Debian version I found here: Debian -- Package Download Selection -- pdfgrep_2.2.0-0.1+b2_i386.deb but it seemed to have the same problem.
The existing binaries in those packages are compiled to require certain other application binaries (and versions) to be present.
None will run in QTS.
Also, those are package formats (archives). The application binaries are within and would need to be extracted. But, the binaries are incompatible anyway, so there’s no-point.
okey doke! thanks for your help. The only thing I can conclude is my existing pdfgrep executable must have been from the TS-251 I had before I migrated to my TS-253D in early 2023… I could SWEAR I’ve used it since then. Either that or some OS change since that time made the executable no-longer executable.
anyway… sigh… I know it’s not intended to be a hacked-system necessarily (had a Kuro before that was 100% supposed to be hacked!). Oh well.
Qsirch works amazingly well and is very fast. Just be aware that the initial indexing will take some time and CPU cycles. But once done, it works really, really well.
Thanks all. Yeah, I activated qsirch and at least got the information I needed - I’m still playing with the app, I want to greatly restrict the scope of what it searches/indexes down to one folder - I am not a fan of things searching every piece of data that I hold dear! Anyway - it worked as a solution for me and thank you all!