OpenOffice.org 2.0 Beta on AMD64 Gentoo Linux

Yep! It’s true. I am now running OpenOffice.org 1.9.122 on my AMD64 Gentoo Linux box. The biggest problem with this setup is that OO needs a 32-bits version of Java and this is not available normally (as it is replaced (sensibly) by a 64-bits JVM). Here’s how I succeeded:

  • Emerge glibc-2.3.5-r1 (which is still ~amd64) because of some compatibility issues

    (1) echo "=sys-libs/glibc/glibc-2.3.5-r1 ~amd64" >> /etc/portage/package.keywords
    (2) emerge -av glibc

  • Manual install of a 32-bits Java SDK or JRE

    Go to http://java.sun.com/ and download a 32-bits Java SDK or JRE and install it manually at a suitable place (e.g. /opt/nonportage/j2sdk1.4.2_06/). I personally use a relatively old SDK which I downloaded some months ago and everything seem to work well…

  • Emerge the latest OpenOffice.Org 2.0 Beta

    The 2.0 Beta is ~amd64 and hard-masked. Looks like paranoia to me :-)

    echo "=app-office/openoffice-bin-1.9.122 ~amd64" >> /etc/portage/package.keywords
    echo "app-office/openoffice-bin" >> /etc/portage/package.unmask
    emerge -av =openoffice-bin-1.9.122

  • Modify some environment variables and run OpenOffice once

    export JDK_HOME=/opt/nonportage/j2sdk1.4.2_06
    export JAVA_HOME=${JDK_HOME}
    export JAVAC=${JDK_HOME}/bin/javac
    export PATH=${JDK_HOME}/bin:${JDK_HOME}/jre/bin:${PATH}
    export MANPATH=${MANPATH}:${JDK_HOME}/man
    /opt/OpenOffice.org/program/soffice

    Of course, replace /opt/nonportage/j2sdk1.4.2_06 by the path you used when installing the 32-bits JDK or JRE.

    Enjoy! OpenOffice will remember the location of the 32-bits Java SDK or JRE and you won’t need to modify any environment variables afterwards…

  • Share/Bookmark

About avinash

I am the Managing-Director of Knowledge Seven Ltd, provider of quality consultancy, support and training for open source software. I am also an amateur photographer and musician. I use a Google Nexus One Android smartphone, an Apple MacBook, Mac OS X, Linux and a lot of open source software. I am married to Christina and we have two wonderful kids, Kyan & Anya. In case you are wondering, Noulakaz means "our home" in my native language, créole.
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled