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

From Apache OpenOffice Wiki
Jump to: navigation, search
(翻訳作業)
(JA/QA/Run_OOo_versions_parallelへのリダイレクトページに変更)
 
(3 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 が2つまたは ooo-devN が2つインストールされている場合など、内部に矛盾が起こるので同じフォルダを使う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.* のインストール (3層型 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 は 3層型になっています。(Three-Layer OOo を参照してください。) 3層型では 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> ('''最下層''' ure と '''中間層''' basis を含んでいます。)
 
# <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.
 
 
 
ここでは完全に独立したインストール (システム/デスクトップ統合を含まず、ユーザー設定ファイルを含む) を行うのですが、それはパッケージを抽出し、3つ層をまとめておくために opt フォルダを改名するだけです。
 
 
 
 
 
==== 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>/home/user/download/ooo/TEMP_INST/DEV300_m7_native_packed-1_en-US.9293/RPMS/TEMP_ROOT</code>
 
に <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ステップで DEB を抽出することができます。
 
 
 
<source lang="bash">
 
# extract the DEBs in one step
 
# 1ステップで DEB ファイルを抽出します
 
 
 
~/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>/home/user/download/ooo/TEMP_INST/DEV300_m7_native_packed-1_en-US.9293/DEBS/TEMP_ROOT</code>
 
に <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 が2つまたは ooo-devN が2つインストールされている場合など、内部に矛盾が起こるので同じフォルダを使う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 の場合==
 
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.
 
 
 
Windows ではパッケージの管理者用インストールをしなければなりません。これは .cab ファイルの抽出を行うため msi ベースのインストールを行う必要があるためです。
 
 
 
 
 
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.
 
 
 
あなたが自己解凍型のインストーラを持っているなら (100MB を超える .exe ファイル。例えば <code>OOo_2.4.237_Win32Intel_install.exe</code>)、それを実行してください。
 
それ自身にファイルを解凍させるため、インストールを進行します。途中、ファイルを展開する場所をたずねるでしょう。
 
抽出の後に自動的にインストーラが起動しますが、キャンセルして終了してください。
 
 
 
 
 
In the following, we assume you extracted it to <code>c:\temp\install</code>
 
 
 
これ以降は、 <code>c:\temp\install</code> に抽出したと仮定します。
 
 
 
 
 
Now, open a console (<Windows_Key>+R, following by typing "cmd<enter>", will do), there do a
 
コンソールを起動してください。(<Windows キー>+R を押した後、 "cmd<enter>"と入力しても起動できます。)
 
そして、以下を行ってください。
 
  ...> 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.)
 
 
 
(上のものは、特定のフォルダに ooodev24.msi があると仮定します。名前はあなたがインストールしたいバージョンに変更しますが、それは一つのファイルになっています。その名前を使用してください。)
 
 
 
 
 
<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.
 
 
 
<code>msiexec</code> は .msi ファイルを処理するプログラムです。 /a スイッチは管理者用インストールを意味します。インストーラが起動してインストール先をたずねられるので、あなたが最終的にインストールしたい場所を選択します。それから、「インストール」ボタンを押して数分でインストールが終了するでしょう。
 
 
 
 
 
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.
 
 
 
これを実行するとユーザーとの対話を行わずに "c:\Program Files\OOoDev\m237" にインストールを行います。
 
 
 
 
 
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.
 
 
 
<code>DEV300m23</code> から初めて OpenOffice.org の実行に必要な Microsoft Visual C++ ランタイムが OOo のインストーラに含まれていませんが、通常のインストールの間にシステムにインストールされます。(これを見てください[http://www.openoffice.org/servlets/ReadMsg?list=interface-announce&msgNo=1173 this interface-announce@openoffice.org mail])
 
これは、管理インストールのときはインストールされないので、[http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF Microsoft Visual C++ 2008 Redistributable Package (x86)] (または、同じ製品の異なるバージョン) を別途インストールを行わなければなりません。
 
 
 
 
 
=== ユーザー設定 ===
 
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
 
 
 
Linux の場合と同じように他の OOo のバージョンのファイルと競合しないことを確かめる必要があります。
 
そして、任意のテキストエディタで <code><OOo_installation>\program\bootstrap.ini</code>を
 
開き、次の行を見つけてください。
 
 
 
  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>.)
 
 
 
(この最後の部分もまたバージョンに依存します。しかし、 <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.
 
 
 
これでユーザー設定のデータは <code>program</code> の <code>user</code> フォルダに保存されるでしょう。これには、2つの利点があります。まず、異なるバージョンのデータと競合しません。また、インストールフォルダが設定データを''含んでいる''ためこのフォルダを削除するだけで完全なアンインストールができます。
 
しかし、通常のインストールと異なり同じ Windows を使用しているユーザー全員で設定ファイルを共有することになるので注意してください。
 
 
 
 
 
== 自動テストに変更を反映させる ==
 
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.
 
 
 
あなたが、このインストールに [http://wiki.services.openoffice.org/wiki/VCLTesttool VCLTestTool] で自動化されたテストを行う場合、どのような設定を行わなければならないのか知るために wiki ページを見てください。
 
 
 
 
 
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
 
 
 
VCLTestTool にこのインストールを認識させるために 'OOoProgramDir' オプションが必要です。これにはインストールしたフォルダの program フォルダを指定してください。
 
 
 
[[Image:VCLTestTool-options-OOoProgramDir.png]]
 
 
 
 
 
[[Category:Installation]]
 
[[Category:Quality Assurance]]
 

Latest revision as of 09:46, 15 May 2009

Personal tools