Wednesday, March 28, 2012

Chakra and the Missing Multilib

I've transitioned to the Chakra distribution and love their dedication to KDE. The one thing that I kept encountering was I wanted to get Adobe Reader installed.  You may ask "Why?" Well the answer is simple, because when it comes to dealing with PDFs that have embedded javascript forms in them Okular either barfs on itself, or it just plain ignores them. Neither is a very good option when fields that you can't edit are calculated values based upon entries in fields you can edit.

Fortunately, Chakra has the Chakra Community Repository (CCR) where people can add different programs for others to make use of without them having to added to the official Chakra release.  If the CCR doesn't have what you're looking for, then there is also a small command line script you can download to pull apps from the root Arch Linux User Repository (AUR). In this case, someone else had already added acroread (the linux version of Adobe Reader) to the CCR, but everytime I tried to install it, it failed right out of the gate due to a failed dependency to lib32-gtk2. After some searching I found that this was part of the multilib, but for some reason I wasn't pulling it down. Some more searching and I found that my repository list was missing the multilib repository. Pacman (the command line package manager) needed to be told about this repository. To tell pacman about the repository, type the following line in a terminal session.

sudo nano /etc/pacman.conf

Once in, page-down until you come to #[unstable].  At the beginning of the line, tap enter a couple of times to make some room and then add the following lines.

[lib32]
Include = /etc/pacman.d/mirrorlist

Then a ctrl-x, y for yes, an enter to save and you're all done.  Now pacman will know where to go for the lib32 dependencies. Once this was done, then installation of acroread from the CCR worked without issue.

I know of no reason for the lib32 omission, I have no idea if anyone else had the issue, but here is the fix that came up with. Good luck.

No comments: