mkucej / i-librarian

Legacy I, Librarian - collaborative PDF manager. Not maintained, new version is at https://github.com/mkucej/i-librarian-free
https://i-librarian.net
98 stars 38 forks source link

Tesseract and LibreOffice binary executables for OS X installation #150

Open 2otherjobs opened 4 years ago

2otherjobs commented 4 years ago

Used Homebrew on OS X 10.15 to create Apache/php72 stack. Also homebrew to install tesseract, popplar, Ghostscript, LibreOffice. Have successfully soft-linked required bin executables for GS and popplar. Have tried same with tess and libreoffice without being recognized on 'Software details' page:

cd /User/user/Sites/librarian/bin ln -s /usr/local/Cellar/tesseract/4.1.1/tesseract/bin/tesseract tesseract

Have also tried copying entire tesseract-ocr pkg from GitHub to librarian/bin without success.

Less obvious how to link libreoffice to librarian/bin - which file should be linked? Prefer to get complete installation on OS X than to run I-librarian from Linux/Vbox. Appears I am close... And I can offer updated OS X instructions for others if this can be worked out...

mkucej commented 4 years ago

What version of I, Librarian are you talking about? This repo is for the legacy version 4. If you are installing version 5, you can try to add absolute paths in Administrator > Global settings (I know it says Windows, but it should work on Mac too), or add the respective program directories to the PATH.

2otherjobs commented 4 years ago

Version 5. For homebrew installations on OS X of Poppler, Ghostscript, Tesseract and LibreOffice, this is what worked (the iLibrarian folder is installed under /Users/username/Sites/): cd /Users/username/Sites/librarian/bin && mkdir poppler gs ln -s /usr/local/Cellar/poppler/0.88.0/bin/pdfinfo poppler/pdfinfo change "pdfinfo" to "pdftocairo", "pdftohtml", or "pdftotext" and repeat ln -s /usr/local/Cellar/ghostscript/9.52/bin/gs gs/gs

Open the Librarian website. Under Administrator > Global settings LibreOffice path /Applications/LibreOffice.app/Contents/MacOS

Tesseract OCR path /usr/local/Cellar/tesseract/4.1.1/bin

On the Software details page, the Binary Executables all turned green and were marked "installed".

Thank you.