1 |
On 6 February 2012 21:42, walt <w41ter@×××××.com> wrote: |
2 |
> I tried and liked google chrome for a few months until I got tired |
3 |
> of the multi-hour compile every week or so. The chrome-binary ebuild |
4 |
> was removed a while ago, I'm guessing because of library version |
5 |
> conflicts, but I dunno for sure. |
6 |
> |
7 |
> Anyway, I wanted to try a recent version of chrome without spending |
8 |
> all day compiling it on this dusty old x86 machine, so I improvised |
9 |
> this easy workaround: |
10 |
> |
11 |
> First, you need x11-libs/libXScrnSaver and app-arch/rpm2targz already |
12 |
> installed. |
13 |
> |
14 |
> Next, download the appropriate rpm package from www.google/chrome. |
15 |
> |
16 |
> #cd /tmp (or whatever staging area you prefer, but do it as root) |
17 |
> |
18 |
> #rpmunpack /path/to/your/downloaded/google-chrome-whatever.rpm |
19 |
> |
20 |
> #mv google-whatever/opt/google /opt (the actual chrome binaries) |
21 |
> |
22 |
> (Note: you don't need the etc or usr/bin parts of the archive, so |
23 |
> delete the whole /tmp/google-whatever directory now.) |
24 |
> |
25 |
> Make the symlink |
26 |
> /usr/bin/google-chrome -> /opt/google/chrome/google-chrome |
27 |
> |
28 |
> When you run google-chrome you will likely see an error for missing |
29 |
> libpng12.so.0, which gentoo has replaced with more recent versions |
30 |
> like libpng14 or libpng15. |
31 |
> |
32 |
> If you see that error, here is a very quick and easy fix: |
33 |
> |
34 |
> #ebuild /usr/portage/media-libs/libpng/libpng-1.2.46.ebuild compile |
35 |
> |
36 |
> That step will build (but not install) libpng12, so you won't disturb |
37 |
> any of your existing packages. The newly built library you need is |
38 |
> now waiting for you here: |
39 |
> |
40 |
> /var/tmp/portage/media-libs/libpng-1.2.46/work/libpng-1.2.46/.libs/ |
41 |
> |
42 |
> Now copy libpng12.so.0.46.0 to /opt/google/chrome and rename it (or |
43 |
> symlink it) to libpng12.so.0, because that is what chrome looks for. |
44 |
> |
45 |
> Complain here if you have problems :) |
46 |
> |
47 |
> |
48 |
|
49 |
you seem to have missed a very simple way to do all this: |
50 |
|
51 |
emerge google-chrome |
52 |
|
53 |
|
54 |
JOB = DONE |