Difference between revisions of "JA/translation/Run OOo versions parallel"

From Apache OpenOffice Wiki
Jump to: navigation, search
(翻訳訂正)
(JA/QA/Run_OOo_versions_parallelへのリダイレクトページに変更)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:複数の異なるバージョンの OpenOffice.org を実行する方法(翻訳作業中)}}
+
#REDIRECT [[JA/QA/Run_OOo_versions_parallel]]
原文タイトル:How to run different OpenOffice.org versions in parallel
 
----
 
'''この文章は現在翻訳作業中です。'''
 
----
 
To participate in OpenOffice.org you do not need to be a programmer: you can help to fix OpenOffice.org bugs as soon as possible by simply installing a developer snapshot and using it as you usually do.
 
 
 
プログラマでなくとも OpenOffice.org の活動に参加することができます。あなたが普段使用するバージョンと同じように開発版のインストールを行い使用することで、早期にバグを発見し修正を行う手助けになります。
 
 
 
 
 
Usually every version comes in an installable file that installs in the same directory as previous versions: for example a <B>stable</B> version, let's say OpenOffice.org 2.3.1, will install on a directory like /opt/openoffice.org2.3/ (*nix systems) and  C:\Program Files\OpenOffice.org 2.3\ (Windows, where the folder "Program Files" has usually a localized name), while a <B>developer snapshot</B> will install in /opt/ooo-dev2.3/ (*nix systems) and C:\Program Files\OOo-dev 2.3\ (Windows).
 
 
 
通常、全てのバージョンは前のバージョンのファイルを上書きしてインストールを行います。
 
たとえば'''安定版'''を OpenOffice.org 2.3.1 としましょう。 Unix 系の場合は /opt/openoffice.org2.3 に、 Windows の場合は C:\Program Files\OpenOffice.org 2.3\ ("Program Files" というフォルダ名はたいていローカライズされています) に、一方、'''開発版'''は Unix 系の場合は、/opt/ooo-dev2.3/ と Windows の場合は C:\Program Files\OOo-dev 2.3\ にインストールされるでしょう。
 
 
 
 
 
This has some drawbacks: you may want to install different developer snapshots, or also want to keep your "old" stable version of OpenOffice.org. A new stable or developer version will install in the corresponding folder, replacing the current installation (on Windows this will be made be the installer, on *nix systems you will have to deinstall old versions before installing new ones).
 
 
 
これにはいくつかの欠点があります。あなたが異なった開発版をインストールしたいか、または OpenOffice.org の「古い」安定したバージョンの使用を続けたい場合です。新しい安定版、または開発版はそれぞれ対応する場所 (訳注:開発版なら /opt/ooo-dev2.3 とか、安定版なら /opt/openoffice.org3/ など)にインストールされ、そして現在インストールされているものを置き換えます。 Windows の場合は、インストーラーによって行われ、 Unix 系では、新しいバージョンをインストールするとき、自身で古いバージョンを削除する必要があります。
 
 
 
 
 
To avoid this we will explain how to install different OpenOffice.org versions and run them in parallel.
 
 
 
この問題を回避するために、異なるバージョンの OpenOffice.org をインストールし、並列に実行する方法をこれから説明します。
 
 
 
 
 
==Linuxの場合==
 
Linux
 
 
 
In this section we will show how to "install" any OpenOffice.org version distributed in a RPM or DEB package. In fact, we won't ''install'' it but rather ''extract'' the files in the packages.
 
 
 
このセクションでは RPM または DEB パッケージで配布される OpenOffice.org を"インストール"する方法を説明します。正確には"インストール"ではなくパッケージからファイルを"抽出"します。
 
 
 
 
 
Notice that with this method you can use an RPM or a DEB package, '''regardless''' of your distribution’s package format (that is, you can extract an RPM package in Debian, or a DEB package in Mandriva).
 
 
 
注意としては、この方法では、あなたの (Linux) ディストリビューションのパッケージのフォーマットによらず、 RPM もしくは DEB パッケージのどちらでも使えます。
 
つまり、 Debian でも RPM パッケージを抽出でき、 Mandriva でも DEB パッケージを抽出できます。
 
 
 
=== バージョン 2.x のインストール ===
 
Installing 2.* versions
 
==== RPM パッケージ ====
 
RPM packages
 
 
 
Before starting, make sure you have GNU '''tar''' ([http://www.gnu.org/software/tar/ http://www.gnu.org/software/tar/]), '''rpm2cpio''' ([http://www.rpm.org/ http://www.rpm.org/]) and GNU '''cpio''' ([http://www.gnu.org/software/cpio/cpio.html http://www.gnu.org/software/cpio/cpio.html]).
 
 
 
作業を行う前に GNU'''tar''' ([http://www.gnu.org/software/tar/ http://www.gnu.org/software/tar/])、 '''rpm2cpio''' ([http://www.rpm.org/ http://www.rpm.org/]) と、 GNU'''cpio''' ([http://www.gnu.org/software/cpio/cpio.html http://www.gnu.org/software/cpio/cpio.html]) がインストールされていることを確認してください。
 
 
 
 
 
In the following example we will "install"
 
 
 
ここでは次のファイルの "インストール" を例に説明します。
 
 
 
<code>OOo_2.4.0_LinuxIntel_install_en-US.tar.gz</code>
 
 
 
that has been downloaded in the directory
 
 
 
次のディレクトリにダウンロードを行いました。
 
 
 
<code>/home/ユーザー名/download/ooo/</code>
 
 
 
<source lang="bash">
 
# cd to the folder where you downloaded the *.tar.gz file
 
# in this example we downloaded
 
# the file OOo_2.4.0_LinuxIntel_install_en-US.tar.gz
 
# in the folder /home/user/download/ooo/
 
# cd コマンドで *.tar.gz ファイルを保存した場所に移動します。
 
# この例では次のファイルと場所を使用します。
 
# ファイルは OOo_2.4.0_LinuxIntel_install_en-US.tar.gz
 
# 場所は /home/ユーザー名/download/ooo/ です。
 
~> cd download/ooo/
 
 
 
# make a temp dir to extract the file content
 
# in this example we name it TEMP_INST
 
# ファイルを抽出するための一時作業用フォルダを作成します。
 
# ここではフォルダ名を TEMP_INST とします。
 
 
 
~/download/ooo> mkdir TEMP_INST
 
 
 
# cd to that temp folder
 
# 作業用フォルダに移動します。
 
 
 
~/download/ooo> cd TEMP_INST/
 
 
 
# extract the file content
 
# ファイルを抽出します。
 
 
 
~/download/ooo/TEMP_INST> tar -zxvf ../OOo_2.4.0_LinuxIntel_install_en-US.tar.gz
 
 
 
</source>
 
 
 
With this commands we have unpacked the content of the tarball in the temporal directory. Note that the directory structure we may find varies in different OpenOffice.org versions; older versions unpacked the RPMS directory in the root (in this example <code>download/ooo/TEMP_INST/RPMS/</code>).
 
 
 
これで一時作業用フォルダに tar ボールを解凍しました。 注意としては OpenOffice.org のバージョンの違いによってはフォルダ構成が異なるかもしれません。古いバージョンでは TEMP_INST の RPMS フォルダに解凍されました。 (例えば <code>download/ooo/TEMP_INST/RPMS/</code> です。)
 
 
 
 
 
Recent versions have a root directory named according to the build number; in our example the root directory is <code>OOH680_m12_native_packed-1_en-US.9286</code>.
 
 
 
最近のバージョンでは、 ビルド番号を付けたルートフォルダにに解凍されます。この例では、 <code>OOH680_m12_native_packed-1_en-US.9286</code> です。
 
 
 
 
 
We need to <code>cd</code> the RPMS inside this root, where all the rpms are located.
 
 
 
<code>cd</code> で (全ての rpm ファイルがある) RPMS フォルダに移動する必要があります。
 
 
 
<source lang="bash">
 
# now we have to create another temp dir to extract all the RPMs files
 
# contained in the RPMS folder
 
# Some older versions created only a RPMS folder in the dir
 
# where we unpacked, for example download/ooo/TEMP_INST/RPMS/
 
# In this example the root directory begins with the build name
 
# RPMS フォルダに含まれた全ての RPM ファイルを抽出するために新たに、
 
# 一時作業用フォルダを作成しなければいけません。
 
# いくつかの古いバージョンは TEMP_INST 以下に RPMS フォルダのみ作成します。
 
# この例ではルートディレクトリをビルド名からはじめます。
 
 
 
~/download/ooo/TEMP_INST> cd OOH680_m12_native_packed-1_en-US.9286/RPMS/
 
 
 
# in the following we will shorten the dir name
 
# instead of ~/download/ooo/TEMP_INST/OOH680_m12_native_packed-2_en-US.9276/RPMS>
 
# we will write ~/download/ooo/TEMP_INST/OOH680_m12 .../RPMS>
 
# これ以降の説明では
 
# ~/download/ooo/TEMP_INST/OOH680_m12_native_packed-2_en-US.9276/RPMS> を
 
# ~/download/ooo/TEMP_INST/OOH680_m12 .../RPMS> と省略表記します。
 
 
 
# make a temp dir where to extract OpenOffice.org installation root directory
 
# OpenOffice.org のインストール先となる作業用のルートフォルダを作成してください。
 
 
 
~/download/ooo/TEMP_INST/OOH680_m12.../RPMS> mkdir TEMP_ROOT
 
~/download/ooo/TEMP_INST/OOH680_m12.../RPMS> cd TEMP_ROOT/
 
 
 
# extract the RPMs
 
# RPM ファイルを抽出する
 
 
 
~/download/ooo/TEMP_INST/OOH680_m12.../RPMS/TEMP_ROOT> for i in ../openoffice.org*.rpm; do rpm2cpio $i | cpio -id; done
 
 
 
</source>
 
 
 
With this procedure we will find in
 
 
 
この手順で
 
 
 
<code>/home/ユーザー名/download/ooo/TEMP_INST/OOH680_m12_native_packed-1_en-US.9286/RPMS/TEMP_ROOT</code>
 
フォルダに OpenOffice.org のルートフォルダを見つけられるでしょう。
 
 
 
all the root directory:
 
 
 
<code>~/download/ooo/TEMP_INST/OOH680_m12_native_packed-1_en-US.9286/RPMS/TEMP_ROOT/opt/openoffice.org2.4/</code>
 
 
 
Now you just have to copy or move that root directory wherever you want.
 
 
 
任意の場所にルートフォルダを移動またはコピーしなければなりません。
 
 
 
<source lang="bash">
 
~/download/ooo/TEMP_INST/OOH680_m12.../RPMS/TEMP_ROOT>cd opt
 
 
 
# make sure not to precede "opt" with a slash, as in /opt
 
# because this will point to the folder where resides the main installation
 
# in /opt/openoffice.org2.4/
 
# "opt" の前にスラッシュを付けないでください。つまり /opt としないでください。
 
# スラッシュを付けてしまうとインストールされている /opt/openoffice.org2.4 を指定することになります。
 
 
 
# in this example we "install" the new version on home/user/openoffice.org2.4
 
# この例では /home/ユーザー名/openoffice.org2.4 に "インストール" を行います。
 
 
 
~/download/ooo/TEMP_INST/OOH680_m12.../RPMS/TEMP_ROOT/opt> mv openoffice.org2.4 ~
 
 
 
</source>
 
 
 
And finally remove all the temporary files
 
 
 
最後に一時作業用のフォルダを削除します。
 
 
 
 
 
<source lang="bash">
 
~/download/ooo/TEMP_INST/OOH680_m12.../RPMS/TEMP_ROOT/opt> cd ~/download/ooo/
 
~download/ooo> rm -rf TEMP_INST/
 
</source>
 
--査読依頼ここまで--
 
==== DEB パッケージ ====
 
 
 
In the following example we will "install"
 
 
 
ここでは次のファイルの "インストール" を例に説明します。
 
 
 
 
 
<code>OOo_2.4.0_LinuxIntel_install_en-US_deb.tar.gz</code>
 
 
 
that has been downloaded in the directory
 
 
 
次のディレクトリにダウンロードを行いました。
 
 
 
<code>/home/ユーザー名/download/ooo/</code>
 
 
 
<source lang="bash">
 
# cd to the folder where you downloaded the *.tar.gz file
 
# in this example we downloaded
 
# the file OOo_2.4.0_LinuxIntel_install_en-US_deb.tar.gz
 
# in the folder /home/user/download/ooo/
 
# cd コマンドで *.tar.gz ファイルを保存した場所に移動します。
 
# この例では次のファイルと場所を使用します。
 
# ファイルは OOo_2.4.0_LinuxIntel_install_en-US.tar.gz
 
# 場所は /home/ユーザー名/download/ooo/ です。
 
 
 
~> cd download/ooo/
 
 
 
# make a temp dir to extract the file content
 
# in this example we name it TEMP_INST
 
# ファイルを抽出するための一時作業用フォルダを作成します。
 
# ここではフォルダ名を TEMP_INST とします。
 
 
 
~/download/ooo> mkdir TEMP_INST
 
 
 
# cd to that temp folder
 
# 作業用フォルダに移動します。
 
 
 
~/download/ooo> cd TEMP_INST/
 
 
 
# extract the file content
 
# ファイルを抽出します。
 
 
 
~/download/ooo/TEMP_INST> tar -zxvf ../OOo_2.4.0_LinuxIntel_install_en-US_deb.tar.gz
 
 
 
</source>
 
 
 
With this commands we have unpacked the content of the tarball in the temporal directory. Note that the directory structure we may find varies in different OpenOffice.org versions; older versions unpacked the DEBS directory in the root (in this example <code>download/ooo/TEMP_INST/DEBS/</code>).
 
 
 
これで一時作業用フォルダに tar ボールを解凍しました。 注意としては OpenOffice.org のバージョンの違いによってはフォルダ構成が異なるかもしれません。古いバージョンでは TEMP_INST の DEBS フォルダに解凍されました。 (例えば <code>download/ooo/TEMP_INST/DEBS/</code> です。)
 
 
 
 
 
Recent versions have a root directory named according to the build number; in our example the root directory is <code>OOH680_m12_native_packed-1_en-US.9286</code>.
 
 
 
最近のバージョンでは、 ビルド番号を付けたルートフォルダにに解凍されます。この例では、 <code>OOH680_m12_native_packed-1_en-US.9286</code> です。
 
 
 
 
 
We need to <code>cd</code> the DEBS inside this root, where all the debs are located.
 
 
 
<code>cd</code> で (全ての deb ファイルがある) DEBS フォルダに移動する必要があります。
 
 
 
 
 
<source lang="bash">
 
# now we have to create another temp dir to extract all the DEBs files
 
# contained in the DEBS folder
 
# DEBS フォルダに含まれた全ての DEB ファイルを抽出するために新たに、
 
# 一時作業用フォルダを作成しなければいけません。
 
 
 
~/download/ooo/TEMP_INST> cd OOH680_m12_native_packed-1_en-US.9286/DEBS/
 
 
 
# in the following we will shorten the dir name
 
# instead of ~/download/ooo/TEMP_INST/OOH680_m12_native_packed-2_en-US.9276/DEBS>
 
# we will write ~/download/ooo/TEMP_INST/OOH680_m12 .../DEBS>
 
# これ以降の説明では
 
# ~/download/ooo/TEMP_INST/OOH680_m12_native_packed-2_en-US.9276/DEBS> を
 
# ~/download/ooo/TEMP_INST/OOH680_m12 .../DEBS> と省略表記します。
 
 
 
 
 
# make a temp dir where to extract OpenOffice.org installation root directory
 
# OpenOffice.org のインストール先となる作業用のルートフォルダを作成してください。
 
 
 
~/download/ooo/TEMP_INST/OOH680_m12.../DEBS> mkdir TEMP_ROOT
 
~/download/ooo/TEMP_INST/OOH680_m12.../DEBS> cd TEMP_ROOT/
 
 
 
# extract the DEBs
 
# DEB ファイルを抽出する
 
 
 
~/download/ooo/TEMP_INST/OOH680_m12.../DEBS/TEMP_ROOT> for i in ../openoffice.org*.deb; do dpkg-deb -x $i . ; done
 
 
 
</source>
 
 
 
With this procedure we will find in
 
 
 
この手順で
 
 
 
<code>/home/ユーザー名/download/ooo/TEMP_INST/OOH680_m12_native_packed-1_en-US.9286/DEBS/TEMP_ROOT</code>
 
OpenOffice.org のルートフォルダを見つけられるでしょう。
 
 
 
all the root directory:
 
 
 
<code>~/download/ooo/TEMP_INST/OOH680_m12_native_packed-1_en-US.9286/DEBS/TEMP_ROOT/opt/openoffice.org2.4/</code>
 
 
 
Now you just have to copy or move that root directory wherever you want.
 
 
 
任意の場所にルートフォルダを移動またはコピーしなければなりません。
 
 
 
<source lang="bash">
 
~/download/ooo/TEMP_INST/OOH680_m12.../DEBS/TEMP_ROOT>cd opt
 
 
 
# make sure not to precede "opt" with a slash, as in /opt
 
# because this will point to the folder where resides the main installation
 
# in /opt/openoffice.org2.4/
 
# "opt" の前にスラッシュを付けないでください。つまり /opt としないでください。
 
# スラッシュを付けてしまうとインストールされている /opt/openoffice.org2.4 を指定することになります。
 
 
 
# in this example we "install" the new version on home/user/openoffice.org2.4
 
# この例では /home/ユーザー名/openoffice.org2.4 に "インストール" を行います。
 
 
 
~/download/ooo/TEMP_INST/OOH680_m12.../DEBS/TEMP_ROOT/opt> mv openoffice.org2.4 ~
 
 
 
</source>
 
 
 
And finally remove all the temporary files
 
 
 
最後に一時作業用のフォルダを削除します。
 
 
 
<source lang="bash">
 
~/download/ooo/TEMP_INST/OOH680_m12.../DEBS/TEMP_ROOT/opt> cd ~/download/ooo/
 
~download/ooo> rm -rf TEMP_INST/
 
</source>
 
 
 
 
 
==== バージョン 2.* のユーザー設定ファイルのフォルダ構成 ====
 
User directory configuration for 2.* versions
 
 
 
Before running this new version, we have to make some changes in the configuration. The procedure is the '''''same''''' for RPM and DEB packages.
 
 
 
この新しいバージョンを実行する前にいくつかの設定変更を行わなければなりません。この手順は RPM と DEB パッケージのどちらも'''同じ'''です。
 
 
 
 
 
By default, an OpenOffice.org version will read and write in the corresponding user directory (for example, a stable OpenOffice.org 2.N version in /home/''user''/.openoffice.org2/, a developer snapshot in /home/''user''/.ooo-dev2/). This means that you can not run in parallel two versions that install as openoffice.orgN, or two as ooo-devN, because this could lead to inconsistencies.
 
 
 
デフォルトでは OpenOffice.org のバージョンが対応するフォルダが使用されます。 (例えば、安定版の OpenOffice.org 2.N は /home/ユーザー名/.openoffice.org2/ を、開発版は /home/ユーザー名/.ooo-dev2/ を使用します。) これは設定ファイルに矛盾が生じるかもしれないため、並列に Openoffice.orgN もしくは ooo-devN を2つインストールして実行できないことを意味します。
 
 
 
 
 
To avoid this we must change OpenOffice.org configuration to look for the user's directory somewhere else: we will indicate the same installation root directory, this way we will have all together, being easier to deinstall later.
 
 
 
この問題を回避するため OpenOffice.org の設定を他のフォルダを使用するように変更しなければなりません。あとでアンインストールする作業を簡単にするためにインストールフォルダを使用することを進めます。
 
 
 
 
 
To do this we must edit the configuration file located in
 
 
 
この作業を行うため <code>$OO_INST_ROOT_DIR/program/bootstraprc</code> を変更しなければなりません。
 
 
 
 
 
As this file does not have write permission, change this first
 
 
 
このファイルは読み取り専用になっているので、まずそれを変更しなければなりません。
 
 
 
<source lang="bash">
 
~> cd openoffice.org2.4/program/
 
~/openoffice.org2.4/program> chmod +w bootstraprc
 
</source>
 
 
 
Now you can open this file with your text editor and change the line starting with <code>UserInstallation=</code> as follows:
 
 
 
テキストエディタでこのファイルを開き、 <code>UserInstallation=</code> から始まる行を書き換えます。
 
 
 
<PRE>UserInstallation=$ORIGIN/..</PRE>
 
 
 
The whole file may look then as follows:
 
 
 
ファイル全体は次のようになっているでしょう。
 
 
 
<PRE>
 
[Bootstrap]
 
BaseInstallation=$ORIGIN/..
 
InstallMode=<installmode>
 
ProductKey=OpenOffice.org 2.4
 
UserInstallation=$ORIGIN/..
 
[ErrorReport]
 
ErrorReportPort=80
 
ErrorReportServer=report.services.openoffice.org
 
</PRE>
 
 
 
This way the user directory will be in the root directory of OpenOffice.org, and you can run several version in parallel.
 
 
 
このようにすることでユーザーの設定ファイルは OpenOffice.org のルートフォルダに置かれるでしょう。
 
そして、あなたは並列して複数のバージョンを実行することができるでしょう。
 
 
 
 
 
=== バージョン 3.* のインストール (three layer OpenOffice.org) ===
 
Installing 3.* versions (three layer OpenOffice.org)
 
 
 
 
 
Starting with DEV300m4, OpenOffice.org has three layers (see [[ODF_Toolkit/Efforts/Three-Layer_OOo | Three-Layer OOo]]). This means that when we extract the RPM/DEB packages, we will find two directories:
 
 
 
DEV300m4 から OpenOffice.org は three layers を持っています。 ([[ODF_Toolkit/Efforts/Three-Layer_OOo | Three-Layer OOo]] を参照してください。) これは RPM/DEB パッケージを抽出するときに、2つのフォルダが作成されるということです。
 
 
 
# <code>opt/openoffice.org</code> (contains the '''lowest''' and the '''middle''' layers: <code>ure</code> and <code>basis</code>)
 
# <code>opt/ooo-dev3.0</code> (contains the '''top''' layer)
 
 
 
# <code>opt/openoffice.org</code> ('''最低''' と '''中間''' 層を含んでいます。 <code>ure</code> and <code>basis</code>)
 
# <code>opt/ooo-dev3.0</code> ('''トップ'''の層を含んでいます)
 
 
 
where you have to replace <code>ooo-dev3.0</code> with the product name, for example <code>openoffice.org3.0</code>.
 
 
 
それぞれの環境に応じて <code>ooo-dev3.0</code> を読み替えてください。 (たとえば <code>openoffice.org3.0</code> です)
 
 
 
 
 
As we want to create a '''''completely self-contained installation''''' (without any system/desktop integration, and with its own user directory), we only need to extract the packages and then rename this <code>opt</code> directory so that the three layers are kept together.
 
 
 
完全に独立したインストール (システム/デスクトップ統合を含まず、ユーザー設定ファイルを含む) を行いたい場合は、パッケージを抽出してそれを改名して、フォルダ構成が保たれるようにするだけです。
 
 
 
 
 
==== RPM パッケージ====
 
RPM packages
 
 
 
In the following example we will "install"
 
 
 
ここでは次のファイルの "インストール" を例に説明します。
 
 
 
<code>OOo-Dev_DEV300_m7_LinuxIntel_install_en-US.tar.gz</code>
 
 
 
that has been downloaded in the directory
 
 
 
次のディレクトリにダウンロードを行いました。
 
 
 
<code>/home/user/download/ooo/</code>
 
<code>/home/ユーザー名/download/ooo/</code>
 
 
 
<source lang="bash">
 
# cd to the folder where you downloaded the *.tar.gz file
 
# in this example we downloaded
 
# the file OOo-Dev_DEV300_m7_LinuxIntel_install_en-US.tar.gz
 
# in the folder /home/user/download/ooo/
 
# cd コマンドで *.tar.gz ファイルを保存した場所に移動します。
 
# この例では次のファイルと場所を使用します。
 
# ファイルは OOo-Dev_DEV300_m7_LinuxIntel_install_en-US.tar.gz
 
# 場所は /home/ユーザー名/download/ooo/ です。
 
 
 
~> cd download/ooo/
 
 
 
# make a temp dir to extract the file content
 
# in this example we name it TEMP_INST
 
# ファイルを抽出するための一時作業用フォルダを作成します。
 
# ここではフォルダ名を TEMP_INST とします。
 
 
 
~/download/ooo> mkdir TEMP_INST
 
 
 
# cd to that temp folder
 
# 作業用フォルダに移動します。
 
 
 
~/download/ooo> cd TEMP_INST/
 
 
 
# extract the file content
 
# ファイルを抽出します。
 
 
 
~/download/ooo/TEMP_INST> tar -zxvf ../OOo-Dev_DEV300_m7_LinuxIntel_install_en-US.tar.gz
 
 
 
</source>
 
 
 
With this commands we have unpacked the content of the tarball in the temporal directory.
 
 
 
これで一時作業用フォルダに tar ボールを解凍しました。 
 
 
 
 
 
We need now to <code>cd</code> the RPMS inside this root, where all the rpms are located.
 
 
 
cd で (全ての rpm ファイルがある) RPMS フォルダに移動する必要があります。
 
 
 
<source lang="bash">
 
# now we have to create another temp dir to extract all the RPMs files
 
# contained in the RPMS folder
 
# RPMS フォルダに含まれた全ての RPM ファイルを抽出するために新たに、
 
# 一時作業用フォルダを作成しなければいけません。
 
 
 
~/download/ooo/TEMP_INST> cd DEV300_m7_native_packed-1_en-US.9293/RPMS/
 
 
 
# in the following we will shorten the dir name
 
# instead of ~/download/ooo/TEMP_INST/DEV300_m7_native_packed-1_en-US.9293/RPMS>
 
# we will write ~/download/ooo/TEMP_INST/ DEV300_m7.../RPMS>
 
# これ以降の説明では
 
# ~/download/ooo/TEMP_INST/DEV300_m7_native_packed-1_en-US.9293/RPMS> を
 
# ~/download/ooo/TEMP_INST/ DEV300_m7.../RPMS> と省略表記します。
 
 
 
# make a temp dir where to extract OpenOffice.org installation root directory
 
# OpenOffice.org のインストール先となる作業用のルートフォルダを作成してください。
 
 
 
~/download/ooo/TEMP_INST/DEV300_m7.../RPMS> mkdir TEMP_ROOT
 
~/download/ooo/TEMP_INST/DEV300_m7.../RPMS> cd TEMP_ROOT/
 
</source>
 
 
 
Notice that depending on the version, you may find two different naming schemes:
 
 
 
バージョンの違いによって2つの異なった命令を行うことに注意してください。
 
 
 
# <code>openoffice.org-*.rpm</code> for the lowest and middle layers
 
# <code>ooo-dev-*.rpm</code> for the top layer
 
 
 
# <code>openoffice.org-*.rpm</code> 最低・中層用
 
# <code>ooo-dev-*.rpm</code> 最上層用
 
 
 
So you can extract the RPMs in one or two steps:
 
 
 
したがって、1ステップまたは2ステップで RPM を抽出することができます。
 
 
 
<source lang="bash">
 
# extract the RPMs in one step
 
# 1ステップで RPM ファイルを抽出します
 
 
 
~/download/ooo/TEMP_INST/DEV300_m7.../RPMS/TEMP_ROOT> for i in ../o*.rpm; do rpm2cpio $i | cpio -id; done
 
</source>
 
 
 
Note that we do not use the wildcard <code>for i in ../*.rpm</code>, because the package may include the rpm for Java Runtime Environment (in this example, the package comes with <code>jre-6u4-linux-i586.rpm</code>), so using the wildcard <code>../o*.rpm</code> we make sure that only the rpms sarting with "o" are extracted.
 
 
 
Java Runtime Environment (この例では、 <code>jre-6u4-linux-i586.rpm</code> です) を含んでいるかもしれないので、 <code>for i in ../*.rpm</code> としないように注意してください。
 
<code>../o*.rpm</code> とすることで、 "o" から始まるパッケージのみ展開することができます。
 
 
 
<source lang="bash">
 
# extract the RPMs in two steps
 
# the lowest and middle layers
 
# 最低・中層になっている RPM ファイルを2ステップで抽出します
 
 
 
~/download/ooo/TEMP_INST/DEV300_m7.../RPMS/TEMP_ROOT> for i in ../openoffice.org*.rpm; do rpm2cpio $i | cpio -id; done
 
 
 
# extract the top layer
 
# 最上層の抽出
 
 
 
~/download/ooo/TEMP_INST/DEV300_m7.../RPMS/TEMP_ROOT> for i in ../ooo-dev*.rpm; do rpm2cpio $i | cpio -id; done
 
</source>
 
 
 
With this procedures we will find in
 
 
 
この手順で
 
 
 
<code>/home/user/download/ooo/TEMP_INST/DEV300_m7_native_packed-1_en-US.9293/RPMS/TEMP_ROOT</code>
 
 
 
an <code>opt</code> folder that contains two directories:
 
 
 
<code>opt</code> フォルダに次の2つのフォルダを見つけることができます。
 
 
 
#<code>/TEMP_ROOT/opt/ooo-dev3.0</code>
 
#<code>/TEMP_ROOT/opt/openoffice.org</code>
 
 
 
this last folder contains in turn other two directories: <code>basis3.0</code> and <code>ure</code>.
 
 
 
後者のフォルダは <code>basis3.0</code> と <code>ure</code> フォルダを順番に含んでいます。
 
 
 
 
 
Now you just have to copy or move that '''opt''' directory wherever you want.
 
 
 
'''opt''' フォルダを任意の場所にコピーまたは移動します。
 
 
 
<source lang="bash">
 
# in this example we "install" the new version on home/user/OOo_DEV300_m7
 
# この例では home/ユーザー名/OOo_DEV300_m7 に新しいバージョンを "インストール" します。
 
 
 
~/download/ooo/TEMP_INST/DEV300_m7.../RPMS/TEMP_ROOT> mv opt ~/OOo_DEV300_m7
 
</source>
 
 
 
And finally remove all the temporary files
 
 
 
最後に一時作業用のフォルダを削除します。
 
 
 
<source lang="bash">
 
~/download/ooo/TEMP_INST/DEV300_m7.../RPMS/TEMP_ROOT> cd ~/download/ooo/
 
~download/ooo> rm -rf TEMP_INST/
 
</source>
 
 
 
 
 
==== DEB パッケージ====
 
DEB packages
 
 
 
In the following example we will "install"
 
ここでは次のファイルの "インストール" を例に説明します。
 
 
 
<code>OOo-Dev_DEV300_m7_LinuxIntel_install_en-US_deb.tar.gz</code>
 
 
 
that has been downloaded in the directory
 
次のディレクトリにダウンロードを行いました。
 
 
 
<code>/home/user/download/ooo/</code>
 
 
 
<source lang="bash">
 
# cd to the folder where you downloaded the *.tar.gz file
 
# in this example we downloaded
 
# the file OOo-Dev_DEV300_m7_LinuxIntel_install_en-US_deb.tar.gz
 
# in the folder /home/user/download/ooo/
 
# cd コマンドで *.tar.gz ファイルを保存した場所に移動します。
 
# この例では次のファイルと場所を使用します。
 
# ファイルは OOo-Dev_DEV300_m7_LinuxIntel_install_en-US_deb.tar.gz
 
# 場所は /home/ユーザー名/download/ooo/ です。
 
 
~> cd download/ooo/
 
 
 
# make a temp dir to extract the file content
 
# in this example we name it TEMP_INST
 
# ファイルを抽出するための一時作業用フォルダを作成します。
 
# ここではフォルダ名を TEMP_INST とします。
 
 
 
~/download/ooo> mkdir TEMP_INST
 
 
 
# cd to that temp folder
 
# 作業用フォルダに移動します。
 
 
 
~/download/ooo> cd TEMP_INST/
 
 
 
# extract the file content
 
# ファイルを抽出します。
 
 
 
~/download/ooo/TEMP_INST> tar -zxvf ../OOo-Dev_DEV300_m7_LinuxIntel_install_en-US_deb.tar.gz
 
</source>
 
 
 
With this commands we have unpacked the content of the tarball in the temporal directory.
 
 
 
これで一時作業用フォルダに tar ボールを解凍しました。 
 
 
 
 
 
We need now to <code>cd</code> the DEBS inside this root, where all the debs are located.
 
 
 
<code>cd</code> で (全ての deb ファイルがある) DEBS フォルダに移動する必要があります。
 
 
 
<source lang="bash">
 
# now we have to create another temp dir to extract all the DEBs files
 
# contained in the DEBS folder
 
# DEBS フォルダに含まれた全ての DEB ファイルを抽出するために新たに、
 
# 一時作業用フォルダを作成しなければいけません。
 
 
 
~/download/ooo/TEMP_INST> cd DEV300_m7_native_packed-1_en-US.9293/DEBS/
 
 
 
# in the following we will shorten the dir name
 
# instead of ~/download/ooo/TEMP_INST/DEV300_m7_native_packed-1_en-US.9293/DEBS>
 
# we will write ~/download/ooo/TEMP_INST/DEV300_m7.../DEBS>
 
# これ以降の説明では
 
# ~/download/ooo/TEMP_INST/DEV300_m7_native_packed-1_en-US.9293/DEBS> を
 
# ~/download/ooo/TEMP_INST/DEV300_m7.../DEBS> と省略表記します。
 
 
 
# make a temp dir where to extract OpenOffice.org installation root directory
 
# OpenOffice.org のインストール先となる作業用のルートフォルダを作成してください。
 
 
 
~/download/ooo/TEMP_INST/DEV300_m7.../DEBS> mkdir TEMP_ROOT
 
~/download/ooo/TEMP_INST/DEV300_m7 .../DEBS> cd TEMP_ROOT/
 
</source>
 
 
 
Notice that depending on the version, you may find two different naming schemes:
 
バージョンの違いによって2つの異なった命令を行うことに注意してください。
 
 
 
#<code>openoffice.org-*.rpm</code> for the lowest and middle layers
 
#<code>ooo-dev-*.rpm</code> for the top layer
 
 
 
# <code>openoffice.org-*.deb</code> 最低・中層用
 
# <code>ooo-dev-*.deb</code> 最上層用
 
 
 
So you can extract the DEBs in one or two steps:
 
 
 
したがって、1ステップまたは2ステップで RPM を抽出することができます。
 
 
 
<source lang="bash">
 
# extract the DEBs in one step
 
# 1ステップで RPM ファイルを抽出します
 
 
 
~/download/ooo/TEMP_INST/DEV300_m7.../DEBS/TEMP_ROOT> for i in ../*.deb; do dpkg-deb -x $i . ; done
 
</source>
 
 
 
<source lang="bash">
 
# extract the DEBs in two steps
 
# the lowest and middle layers
 
# 最低・中層になっている DEB ファイルを2ステップで抽出します
 
 
 
~/download/ooo/TEMP_INST/DEV300_m7.../DEBS/TEMP_ROOT> for i in ../openoffice.org*.deb; do dpkg-deb -x $i . ; done
 
 
 
# extract the top layer
 
# 最上層の抽出
 
 
 
~/download/ooo/TEMP_INST/DEV300_m7.../DEBS/TEMP_ROOT> for i in ../ooo-dev*.deb; do dpkg-deb -x $i . ; done
 
</source>
 
 
 
With this procedure we will find in
 
 
 
この手順で
 
 
 
 
 
<code>/home/user/download/ooo/TEMP_INST/DEV300_m7_native_packed-1_en-US.9293/DEBS/TEMP_ROOT</code>
 
 
 
an <code>opt</code> folder that contains two directories:
 
 
 
<code>opt</code> フォルダに次の2つのフォルダを見つけることができます。
 
 
 
#<code>/TEMP_ROOT/opt/ooo-dev3.0</code>
 
#<code>/TEMP_ROOT/opt/openoffice.org</code>
 
 
 
this last folder contains in turn other two directories: <code>basis3.0</code> and <code>ure</code>.
 
 
 
後者のフォルダは <code>basis3.0</code> と <code>ure</code> フォルダを順番に含んでいます。
 
 
 
 
 
Now you just have to copy or move that '''opt''' directory wherever you want.
 
 
 
'''opt''' フォルダを任意の場所にコピーまたは移動します。
 
 
 
<source lang="bash">
 
# in this example we "install" the new version on home/user/OOo_DEV300_m7
 
# この例では home/ユーザー名/OOo_DEV300_m7 に新しいバージョンを "インストール" します。
 
 
 
~/download/ooo/TEMP_INST/DEV300_m7.../DEBS/TEMP_ROOT> mv opt ~/OOo_DEV300_m7
 
</source>
 
 
 
And finally remove all the temporary files
 
 
 
最後に一時作業用のフォルダを削除します。
 
 
 
<source lang="bash">
 
~/download/ooo/TEMP_INST/DEV300_m7.../DEBS/TEMP_ROOT> cd ~/download/ooo/
 
~download/ooo> rm -rf TEMP_INST/
 
</source>
 
 
 
 
 
==== バージョン 3.* のユーザー設定ファイルのフォルダ構成 ====
 
User directory configuration for 3.* versions
 
 
 
Before running this new version, we have to make some changes in the configuration. The procedure is the '''''same''''' for RPM and DEB packages.
 
 
 
この新しいバージョンを実行する前にいくつかの設定変更を行わなければなりません。この手順は RPM と DEB パッケージのどちらも'''同じ'''です。
 
 
 
 
 
By default, an OpenOffice.org version will read and write in the corresponding user directory (for example, a stable OpenOffice.org 2.N version in /home/''user''/.openoffice.org2/, a developer snapshot in /home/''user''/.ooo-dev2/). This means that you can not run in parallel two versions that install as openoffice.orgN, or two as ooo-devN, because this could lead to inconsistencies.
 
 
 
デフォルトでは OpenOffice.org のバージョンが対応するフォルダが使用されます。 (例えば、安定版の OpenOffice.org 2.N は /home/ユーザー名/.openoffice.org2/ を、開発版は /home/ユーザー名/.ooo-dev2/ を使用します。) これは設定ファイルに矛盾が生じるかもしれないため、並列に Openoffice.orgN もしくは ooo-devN を2つインストールして実行できないことを意味します。
 
 
 
 
 
To avoid this we must change OpenOffice.org configuration to look for the user's directory somewhere else: we will indicate the same installation root directory, this way we will have all together, being easier to deinstall later.
 
 
 
この問題を回避するため OpenOffice.org の設定を他のフォルダを使用するように変更しなければなりません。あとでアンインストールする作業を簡単にするためにインストールフォルダを使用することを進めます。
 
 
 
To do this we must edit the configuration file <code>bootstraprc</code> located in the <code>program </code>directory inside the top layer, in this example:
 
 
 
この作業を行うため最上層の <code>program</code> フォルダにある <code>bootstraprc</code> ファイルを編集しなければないません。
 
 
 
この例では <code>/home/user/OOo_DEV300_m7/ooo-dev3.0/program</code> です。
 
 
 
As this file does not have write permission, change this first
 
このファイルは読み取り専用になっているので、まずそれを変更しなければなりません。
 
 
 
<source lang="bash">
 
> cd ~/OOo_DEV300_m7/ooo-dev3.0/program
 
~/OOo_DEV300_m7/ooo-dev3.0/program> chmod +w bootstraprc
 
</source>
 
 
 
Now you can open this file with your text editor and change the line starting with <code>UserInstallation=</code> as follows:
 
 
 
テキストエディタでこのファイルを開き、 <code>UserInstallation=</code> から始まる行を書き換えます。
 
 
 
<PRE>UserInstallation=$ORIGIN/..</PRE>
 
 
 
The whole file may look then as follows:
 
 
 
ファイル全体は次のようになっているでしょう。
 
 
 
<PRE>
 
[Bootstrap]
 
BaseInstallation=${OOO_BASE_DIR}
 
InstallMode=<installmode>
 
ProductKey=OOo-dev 3.0
 
UserInstallation=$ORIGIN/..
 
[ErrorReport]
 
ErrorReportPort=80
 
ErrorReportServer=report.services.openoffice.org
 
</PRE>
 
 
 
This way the user directory will be in the root directory of OpenOffice.org, and you can run several version in parallel.
 
 
 
このようにすることでユーザーの設定ファイルは OpenOffice.org のルートフォルダに置かれるでしょう。そして、あなたは並列して複数のバージョンを実行することができるでしょう。
 
 
 
 
 
==Windows==
 
 
 
On Windows, you must do a so-called administrative installation of your package. This is something available for all msi-based installations, and basically simply means extracting the .cab files which come with your installation.
 
 
 
If you have a all-in-one executable containing your installation set (one single .exe file having more than 100 MB, named e.g. <code>OOo_2.4.237_Win32Intel_install.exe</code>), you first allow it to extract itself. For this, simply start the executable - it will prompt you for where to extract the files. After extraction, it will automatically run the real installer - cancel it.
 
 
 
In the following, we assume you extracted it to <code>c:\temp\install</code>
 
 
 
Now, open a console (<Windows_Key>+R, following by typing "cmd<enter>", will do), there do a
 
  ...> c:
 
  c:\> cd \temp\install
 
  c:\temp\install> msiexec /a ooodev24.msi
 
 
 
(The above assumes there is a file ooodev24.msi in the given directory. The name changes with the version you're installing, but it should always be exactly one .msi file. Use this one's name.)
 
 
 
<code>msiexec</code> is a tool to, well, execute .msi files. The /a switch tells it to do an administrative install. It will start a UI, where you again are asked for the target location - choose a folder where you finally want to have OOo being installed. Then, click the "Install" button, wait a few minutes, and there you are.
 
 
 
side note for advanced users:
 
  msiexec /a ooodev24.msi "TARGETDIR=c:\Program Files\OOoDev\m237" /qr
 
will install OOo into the folder "c:\Program Files\OOoDev\m237", without any further user interaction.
 
 
 
Beginning with <code>DEV300m23</code>, the necessary Microsoft Visual&nbsp;C++ runtime files are no longer contained in the installed OOo product, but are rather installed into the system during normal installation (see [http://www.openoffice.org/servlets/ReadMsg?list=interface-announce&msgNo=1173 this interface-announce@openoffice.org mail]).  As this is not done during an administrative installation, you have to install the [http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF Microsoft Visual C++ 2008 Redistributable Package (x86)] (or equivalent for different compiler versions) yourself.
 
 
 
=== User Configuration ===
 
 
 
Like with the Linux version above, you need to make sure the user data of the just installed OOo version doesn't conflict with the user data of other installations. To do so, open the file <code><OOo_installation>\program\bootstrap.ini</code> in a text editor of your choice, and locate the line
 
 
 
  UserInstallation=$SYSUSERCONFIG/OOo-dev2
 
 
 
(Again, the last part of this depends on the concrete version you installed, but there's only one line starting with <code>UserInstallation</code>.)
 
 
 
Change this to
 
  UserInstallation=$ORIGIN/..
 
 
 
Now, your user data will be put into a folder <code>user</code> right besides your <code>program</code> folder. Which has two advantages: Different version's user data don't clash anymore, and you can remove the complete installation, ''including'' your user data, by simply deleting the installation folder.
 
Be aware, however, that now different people working on the same Windows machine will all work with the same user data, which is unlike a normal installation.
 
 
 
 
 
== Adapt changes for automated testing ==
 
 
 
If you plan to use an installation for automated testing with [http://wiki.services.openoffice.org/wiki/VCLTesttool VCLTestTool please check Wiki-page] to learn what settings must be made.
 
 
 
To let VCLTestTool find the administrative installation it is required to adapt an option named 'OOoProgramDir'. Simply change this to the program-dir in the brand layer of your OpenOffice.org Installation
 
 
 
[[Image:VCLTestTool-options-OOoProgramDir.png]]
 
 
 
 
 
[[Category:Installation]]
 
[[Category:Quality Assurance]]
 

Latest revision as of 09:46, 15 May 2009

Personal tools