- Install homebrew from https://brew.sh/ (follow the instructions there)
- tap the https://invent.kde.org/packaging/homebrew-kde/ repo,
brew tap kde-mac/kde https://invent.kde.org/packaging/homebrew-kde.git
brew edit okular
, workaround now is to comment out or delete the linedepends_on "chmlib"
(won't compile on macos arm64 for now as of 2021-08-18), then save (if using vim you need to first pressi
to insert/type, when saving then<esc>
then:wq
then<enter>
.brew install okular
, wait for stuff to compile and/or install- It may ask for keychain credentials (to sign the binaries? because of mac arm64 security policy https://eclecticlight.co/2021/01/26/when-you-dont-have-permission-to-run-an-app-on-an-m1-mac/)
$(brew --repo kde-mac/kde)/tools/do-caveats.sh
- Now okular is in your
$HOME/Applications/KDE
folder, and will show up in Launchpad! You can view pdf, djvu, etc documents.
-
-
Save 7468696e6b/ec8fa5d6cdb4e80633b9df95869b70c0 to your computer and use it in GitHub Desktop.
The cask option didn't work for me.
not working for me either.
I did many things to try and work this through. KF5I18n package seems to not be found when trying to install Okular... Like KF5I18n uses KF5, but the KF5I18n package in homebrew actually installs KF6I18n, which is Version 6.0.0 and I have a feeling that makes it harder to find when looking for the dependency while building with homebrew.
Could not find a package configuration file provided by "KF5I18n"
(requested version 5.111.0) with any of the following names:
KF5I18nConfig.cmake
kf5i18n-config.cmake
Add the installation prefix of "KF5I18n" to CMAKE_PREFIX_PATH or set
"KF5I18n_DIR" to a directory containing one of the above files. If
"KF5I18n" provides a separate development package or SDK, be sure it has
been installed.
Could not find a package configuration file provided by "KF5I18n" (requested version 5.111.0) with any of the following names:
KF5I18nConfig.cmake kf5i18n-config.cmake
Add the installation prefix of "KF5I18n" to CMAKE_PREFIX_PATH or set "KF5I18n_DIR" to a directory containing one of the above files. If "KF5I18n" provides a separate development package or SDK, be sure it has been installed.
I'm getting this exact same error, including:
Warning: Unable to query GitHub for recent issues on the tap
Validation Failed: [{"message"=>"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource"=>"Search", "field"=>"q", "code"=>"invalid"}]
I have the same error with "KF5I18n". Unable to install at this time.
Exactly the same error:
Could not find a package configuration file provided by "KF5I18n"
(requested version 5.111.0) with any of the following names:
KF5I18nConfig.cmake
kf5i18n-config.cmake
Add the installation prefix of "KF5I18n" to CMAKE_PREFIX_PATH or set "KF5I18n_DIR" to a directory containing one of the above files. If "KF5I18n" provides a separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
Im having the same issue with KF5I18n, did anyone manage to figure that out?
thanks!
+1 on the same error with KF5I18n.
I think the only real way I’ve been able to install Okular on Mac was from precompiled binary located at this link:
Under “Nightly Installers”
Thank you, I did try searching for the precompiled binary, wasn't easy to find, the link works :)
This method works for me, but here was an error "okular" can’t be opened because Apple cannot check it for malicious software
. Which I had to override.
I’m probably going to make a nix derivation for it sometime.
so I can install on mac too.
I’m probably going to make a nix derivation for it sometime. so I can install on mac too.
installs on macbook and works so far
But I cannot print PDF files...
I downgraded followings.
$ brew doctor
Uncommitted files:
M Formula/k/karchive.rb
M Formula/k/kdoctools.rb
M Formula/k/ki18n.rb
M Formula/q/qca.rb
M Formula/t/threadweaver.rb
karchive 5.111.0
kdoctools 5.111.0
ki18n 5.115.0
qca 2.3.7
threadweaver 5.115.0
kf5-kactivities.rb 5.111.0
kf5-kbookmarks.rb 5.102.0
kf5-kconfigwidgets.rb 5.102.0
kf5-khtml.rb 5.102.0
kf5-kio.rb 5.102.0
kf5-knotifications.rb 5.111.0
kf5-kparts.rb 5.102.0
kf5-kwallet.rb 5.102.0
kf5-kxmlgui.rb 5.102.0
Then, I could install okular 23.08.2. But the print preview is too small and I cannot print PDF files...
Is there someone help me?
You guys having trouble tried installing without building? getting the pre built binaries? like in
brew install --cask okular