zegervdv / homebrew-zathura

Homebrew formulae to build Zathura on Mac OS X
547 stars 43 forks source link

Installation instructions do not put plugins in the correct place #31

Closed brabalan closed 6 years ago

brabalan commented 6 years ago

I followed the installation instructions and I got this error when launching zathura:

error: could not open plugin directory: /usr/local/Cellar/zathura/0.3.9/lib/zathura
error: Unknown file type: 'application/pdf'

It seems the brew --prefix zathura does not return the Cellar path:

% brew --prefix zathura
/usr/local/opt/zathura

I manually created the directory and linked the plugin in the Cellar and zathura now works.

zegervdv commented 6 years ago

weird, I just tried a clean install and by following the caveat for zathura-pdf-poppler I can open pdfs just fine.

Did you follow these steps?

      To enable this plugin you will need to link it in place.
      First create the plugin directory if it does not exist yet:
        $ mkdir -p $(brew --prefix zathura)/lib/zathura
      Then link the .dylib to the directory:
        $ ln -s $(brew --prefix zathura-pdf-poppler)/libpdf-poppler.dylib $(brew --prefix zathura)/lib/zathura/libpdf-poppler.dylib

      More information as to why this is needed: https://github.com/zegervdv/homebrew-zathura/issues/19