Re: OpenOffice Install--no "program" directory
Kerin Millar <[email protected]> Wed, 16 Oct 2002 18:38:42 +0100
| Newsgroups | gmane.linux.gentoo.newbies |
|---|---|
| Message-ID | <[email protected]> |
Ben M. Thomas wrote: > After a 20+ hour compile of openoffice ( I had no idea! ), the emerge > completed successfully, so it seemed. I then ran ooffice ( which should > run "setup" ) where I received the following message: > > Gnome session manager detected - session management disabled > running openoffice.org setup... > /usr/bin/ooffice: /opt/OpenOffice.org1.0.1/program/setup: No such file > or directory > setup failed.. abort <snip> Strange. I've enclosed a reponse I made to someone else who was having a slightly different issue. But you should have a look at the steps for setting it up as I've outlined them here. I have found them to give the best results. Furthermore, I have heard that there may be some issues with the 1.0.1 build, so you might want to have a look at the forums and at bugs.gentoo.org to see if there is any real information on that. Note that where I say "/opt/OpenOffice", I really mean "/opt/OpenOffice.org1.0.1" in your case. Also, try running the setup process in a minimalist window manager (such as Fluxbox), just to rule out any incongruous behaviour in the presence of Gnome. Quote follows: ============== Ensure you have a Java runtime environment available /and/ properly configured. I recommend Sun's because as they designed Java, their runtime can usually be trusted to provide the best balance of conformance and performance, furthermore they wrote most of the code that forms a portion of OpenOffice. It's not open-source though. Type the following at a console (you will need to download the java distribution from java.sun.com into /usr/portage/distfiles first, and emerge will tell you so): emerge dev-java/sun-jdk java-config --list-available-vms A list will appear showing any potential java environments available (you can have multiple environments available, and Gentoo's java-config command allows you to switch between them). You should be able to see something like "[sun-jdk-1.4.0]". In that case, type java-config --set-system-vm=sun-jdk-1.4.0 Now you need to make sure you followed the correct procedure for setting up OpenOffice. Once emerged, the binaries are in /opt/OpenOffice. But you need to install a "localised" copy for the user account you will be running under. Follow these steps: 1) Do *not* run OpenOffice as root. Create a new user account if you haven't already. Log in as that user. 2) Run /opt/OpenOffice/setup 3) Go through the installation procedure. Note the following: OpenOffice will install files to a subdirectory in your home directory (which can be specified). You must choose a "Network" install otherwise you will duplicate *all* the files in /opt/OpenOffice into your home directory! You will be asked to select a Java environment as part of the OpenOffice install. Select whichever one you have available. 4) Create you shortcuts to run OpenOffice in such a fashion that they point to your localised OpenOffice directory, not the /opt/OpenOffice directory (e.g. ~/OpenOffice/soffice instead of /opt/OpenOffice/soffice). Note that setup only behaves as such when you are *not* logged in as root. The above procedure should be executed for every user account you wish to run OpenOffice under. --kerframil