How to prelink mozilla-firefox-bin

Gentoo GNU/Linux users can enjoy additional performance enhancements by prelinking binaries. The documentation is unclear on whether binary packages can be prelinked. I tried it and it seems to work fine.

It is clear that any software I’ve compiled on my own machine can be safely prelinked, but since I have a very slow, old laptop, I also use some software precompiled as binary packages. Mozilla Firefox is one (emerge mozilla-firefox-bin). This is installed under /opt, which is masked out of the prelink path, so it doesn’t get prelinked automatically. I prelinked it manually by running prelink -Rm /opt/firefox and everything seems to be fine.

This is completely safe, because prelinking is fully reversible.

Technorati Tags:No Tags

You might also like:

  1. How to auto-mount removable devices in GNU/Linux
  2. Firefox vs. Opera on slow hardware
  3. Permit Cookies: a Firefox extension that makes cookie whitelisting easy
  4. To Gentoo or not to Gentoo?
  5. How to update a GCC profile on Gentoo

2 Responses to “How to prelink mozilla-firefox-bin”


  1. 1 linuxboy

    I have Gentoo too. Firefox is in /usr/lib/mozilla-firefox now:

    for i in `equery -C files  www-client/mozilla-firefox` ; do  dirname $i ;done | sort -u

    /
       [ ED: snipped some output ]
    /usr/lib/mozilla-firefox/include/ucvja
    /usr/lib/mozilla-firefox/include/ucvko
    /usr/lib/mozilla-firefox/include/ucvlatin
        [ ED: snipped some output ]
    /usr/share/pixmaps
    

    and prelink -Rm /usr/lib/mozilla-firefox/ work fine. However I found one missing dependency:

    prelink: /usr/lib/gimp/2.0/plug-ins/helpbrowser: Could not find one of the dependencies

    then:

    ldd /usr/lib/gimp/2.0/plug-ins/helpbrowser| grep 'not found'
            libgtkhtml-2.so.0 => not found
    

    Any idea which package I should rebuild to get libgtkhtml back?

  2. 2 Xaprb

    I think the gtkhtml package should supply it, though I can’t check that at the moment.

Leave a Reply

Please do not use this blog to get help with problems or bugs in Maatkit or innotop: use the appropriate forums, mailing list, or bug trackers. If you're asking for help with MySQL, please use the MySQL mailing list instead.