I tried and liked google chrome for a few months until I got tired
of the multi-hour compile every week or so.  The chrome-binary ebuild
was removed a while ago, I'm guessing because of library version
conflicts, but I dunno for sure.

Anyway, I wanted to try a recent version of chrome without spending
all day compiling it on this dusty old x86 machine, so I improvised
this easy workaround:

First, you need x11-libs/libXScrnSaver and app-arch/rpm2targz already
installed.

Next, download the appropriate rpm package from www.google/chrome.

#cd /tmp   (or whatever staging area you prefer, but do it as root)

#rpmunpack /path/to/your/downloaded/google-chrome-whatever.rpm

#mv  google-whatever/opt/google  /opt   (the actual chrome binaries)

(Note:  you don't need the etc or usr/bin parts of the archive, so
 delete the whole /tmp/google-whatever directory now.)

Make the symlink
/usr/bin/google-chrome -> /opt/google/chrome/google-chrome

When you run google-chrome you will likely see an error for missing
libpng12.so.0, which gentoo has replaced with more recent versions
like libpng14 or libpng15.

If you see that error, here is a very quick and easy fix:

#ebuild  /usr/portage/media-libs/libpng/libpng-1.2.46.ebuild  compile

That step will build (but not install) libpng12, so you won't disturb
any of your existing packages.  The newly built library you need is
now waiting for you here:

/var/tmp/portage/media-libs/libpng-1.2.46/work/libpng-1.2.46/.libs/

Now copy libpng12.so.0.46.0 to /opt/google/chrome and rename it (or
symlink it) to libpng12.so.0, because that is what chrome looks for.

Complain here if you have problems :)


Reply via email to