Tuesday, October 20, 2009

Google Chromium on Gentoo

I installed Google Chrome on my 64 bit Ubuntu laptop last night and loved it. I just grabbed the zip file from chromium.org and really just unzipped it and ran it. What I didn't know is that the linux package is built for an Ubuntu system. So when I got to work to run chrome on my Gentoo workstation, I ran into an error:

./chrome: error while loading shared libraries: libnss3.so.1d: cannot open shared object file: No such file or directory

Gentoo has the libraries but they are named differently then Ubuntu. If you search this error, you can find that some people and figured out a work around by symlinking the libraries, but that was only necessary before the ebuild was built. Now Chromium is found in portage under www-client/chromium. There are two testing build and a masked build (http://packages.gentoo.org/package/www-client/chromium). I just have to have the most recent version as I'm a sucker for punishment, so I unmasked it with:

echo www-client/chromium >> /etc/portage/package.unmask

Then i'm off and running with

emerge www-client/chromium

It looks like it pulls ALL the source though, so even though you are compiling for 64 bit linux, you are getting source for XP and Mac OS. A du -sh shows 3.9 gig of disk use. So make sure you got the room. I'm using LXDE and it created my chromium application icon for me.

0 comments: