TracInstallバージョン 1バージョン 2 との変更


以下の違いを無視:
日時:
2015/05/27 0:24:03 (11年前)
更新者:
trac
コメント:

--

凡例:

変更なし
追加
削除
更新
  • TracInstall

    v1 v2  
    1 = Trac Installation Guide for 0.12 =
     1= Trac Installation Guide for 1.0 =
    22[[TracGuideToc]]
    33
    4 Trac is written in the Python programming language and needs a database, [http://sqlite.org/ SQLite], [http://www.postgresql.org/ PostgreSQL], or [http://mysql.com/ MySQL]. For HTML rendering, Trac uses the [http://genshi.edgewall.org Genshi] templating system.
    5 
    6 Since version 0.12, Trac can also be localized, and there's probably a translation available for your language. If you want to be able to use the Trac interface in other languages, then make sure you **first** have installed the optional package [#OtherPythonPackages Babel]. Lacking Babel, you will only get the default English version, as usual. If you install Babel later on, you will need to re-install Trac.
    7 
    8 If you're interested in contributing new translations for other languages or enhance the existing translations, then please have a look at [trac:wiki:TracL10N TracL10N].
    9 
    10 What follows are generic instructions for installing and setting up Trac and its requirements. While you may find instructions for installing Trac on specific systems at [trac:wiki:TracInstallPlatforms TracInstallPlatforms] on the main Trac site, please be sure to '''first read through these general instructions''' to get a good understanding of the tasks involved.
    11 
    12 [[PageOutline(2-3,Installation Steps,inline)]]
    13 
    14 == Dependencies ==
    15 === Mandatory Dependencies
    16 To install Trac, the following software packages must be installed:
    17 
    18  * [http://www.python.org/ Python], version >= 2.4 and < 3.0
    19    //(note that we dropped the support for Python 2.3 in this release and that this will be the last Trac release supporting Python 2.4)//
    20  * [http://peak.telecommunity.com/DevCenter/setuptools setuptools], version >= 0.6
    21  * [http://genshi.edgewall.org/wiki/Download Genshi], version >= 0.6 (but < 0.7dev, i.e. don't use Genshi trunk)
    22 
    23 You also need a database system and the corresponding python bindings.
    24 The database can be either SQLite, PostgreSQL or MySQL.
    25 
    26 ==== For the SQLite database #ForSQLite
    27 
    28 If you're using Python 2.5 or 2.6, you already have everything you need.
    29 
    30 If you're using Python 2.4 and need pysqlite, you can download from
    31 [http://code.google.com/p/pysqlite/downloads/list google code] the Windows installers or the tar.gz archive for building from source:
    32 {{{
    33 $ tar xvfz <version>.tar.gz
    34 $ cd <version>
    35 $ python setup.py build_static install
    36 }}}
    37  
    38 This will extract the SQLite code and build the bindings.
    39 
    40 To install SQLite, your system may require the development headers. Without these you will get various GCC related errors when attempting to build:
    41 
    42 {{{
    43 $ apt-get install libsqlite3-dev
    44 }}}
    45 
    46 SQLite 2.x is no longer supported, and neither is !PySqlite 1.1.x.
    47 
    48 A known bug !PySqlite versions 2.5.2-4 prohibits upgrade of trac databases
    49 from 0.11.x to 0.12. Please use versions 2.5.5 and newer or 2.5.1 and
    50 older. See [trac:#9434] for more detail.
    51 
    52 See additional information in [trac:PySqlite].
    53 
    54 ==== For the PostgreSQL database #ForPostgreSQL
    55 
    56 You need to install the database and its Python bindings:
    57  * [http://www.postgresql.org/ PostgreSQL], version 8.0 or later
     4Trac は Python で書かれており、データベースとして [http://sqlite.org/ SQLite], [http://postgresql.org/ PostgreSQL], [http://mysql.com/ MySQL] のどれかが必要です。 Trac は HTML レンダリングのために [http://genshi.edgewall.org Genshi] テンプレートシステムを使用します。
     5
     6バージョン 0.12 以降、 Trac はローカライズされているため、自分が普段使っている言語に翻訳されているかもしれません。 Trac のインタフェースで別の言語を使用したい場合は、任意のパッケージである [#OtherPythonPackages Babel] をインストールする必要があります。[#InstallingTrac Installing Trac] セクションのローカライゼーションのサポートの手順を参照してください。 Babel がない場合、通常通り、デフォルトの英語バージョンのみ使用することができます。
     7
     8新しい言語での翻訳の作成や、すでにある言語での翻訳のエンハンスをコントリビュートした場合は [[trac:TracL10N]] を見てみてください。 (訳注: 日本語の翻訳はすでにコントリビュートされています)
     9
     10Trac のインストールとセットアップに対する一般的な手順と必要な条件を以下に示します。 Trac を特定のシステムにインストールする手順は Trac Project サイトの [trac:TracInstallPlatforms TracInstallPlatforms] にありますが、 '''まず最初に以下の一般的な手順を読み通して''' タスクの関係を確実に理解してください。
     11
     12[[PageOutline(2-3,インストール手順,inline)]]
     13
     14== 依存関係 == #Dependencies
     15=== 必須の依存関係 === #MandatoryDependencies
     16Trac をインストールするためには以下のソフトウェアパッケージがインストールされていなければなりません:
     17
     18 * [http://www.python.org/ Python], 2.5 以上 3.0 未満
     19   (Python 2.4 のサポートは、このリリース(訳注: 1.0)で打ち切られました)
     20 * [http://peak.telecommunity.com/DevCenter/setuptools setuptools], 0.6 以上, [http://pypi.python.org/pypi/distribute ディストリビュート] を使用してもかまいません
     21 * [http://genshi.edgewall.org/wiki/Download Genshi], 0.6 以上(リリースはされていませんが 0.7dev でも正しく動作します)
     22
     23また、データベースと、それに対応する Python のバインディングが必要です。
     24データベースは SQLite, PostgreSQL, MySQL のいずれかが使用できます。
     25
     26==== SQLite の場合 ==== #ForSQLite
     27
     28Python 2.5 、 2.6 、 2.7 には、SQLite データベースのライブラリがPython の標準ディストリビューションに( `sqlite3` モジュールとして)同梱されています。
     29
     30もちろん、最新の [[trac:Pysqlite]] をダウンロードすることも可能です。
     31[http://code.google.com/p/pysqlite/downloads/list google code] から Windows インストーラやソースからビルドするための
     32tar.gz アーカイブがダウンロードできます。
     33{{{
     34$ tar xvfz <version>.tar.gz
     35$ cd <version>
     36$ python setup.py build_static install
     37}}}
     38
     39上記の手順で最新の SQLite コードがダウンロードされバインディングがビルドされます。
     40
     41SQLite 2.x のサポートは終了しました。
     42
     43既知のバグとして、 PySqlite バージョン 2.5.2-4 では、 Trac のデータベースを
     440.11.x から 0.12. にアップグレードすることができません。 2.5.5 以降か 2.5.1 と
     45それ以前のバージョンを使用して下さい。詳細については、 [trac:#9434 本家チケット 9434] を参照して下さい。
     46
     47[trac:PySqlite PySqlite] にさらに情報があります。
     48
     49==== PostgreSQL の場合 #ForPostgreSQL
     50
     51下記いずれかの データベースと、データベースに対応した Python バインディングをインストールする必要があります:
     52 * [http://www.postgresql.org/ PostgreSQL], バージョン 8.0 以降
    5853 * [http://pypi.python.org/pypi/psycopg2 psycopg2]
    5954
    60 See [trac:DatabaseBackend#Postgresql DatabaseBackend] for details.
    61 
    62 
    63 ==== For the MySQL database #ForMySQL
    64 
    65 Trac can now work quite well with MySQL, provided you follow the guidelines.
    66 
    67  * [http://mysql.com/ MySQL], version 5.0 or later
    68  * [http://sf.net/projects/mysql-python MySQLdb], version 1.2.2 or later
    69 
    70 It is '''very''' important to read carefully the  [trac:MySqlDb] page before creating the database.
    71 
    72 === Optional Dependencies
    73 
    74 ==== Version Control System ====
     55詳しくは [trac:DatabaseBackend#Postgresql DatabaseBackend] を参照してください。
     56
     57
     58==== MySQL の場合 ==== #ForMySQL
     59
     60Trac は以下のガイドラインで、 MySQL でも良好に動作するようになりました。
     61
     62 * [http://mysql.com/ MySQL], 5.0 以降
     63 * [http://sf.net/projects/mysql-python MySQLdb], 1.2.2 以降
     64
     65'''非常に''' 重要なことが記載されているので、データベースを作成する前に、[trac:MySqlDb] のページを注意深く読んで下さい。
     66
     67=== 任意の依存関係 === #OptionalDependencies
     68
     69==== バージョン管理システム ==== #VersionControlSystem
    7570
    7671===== Subversion =====
    77 
    78 [http://subversion.apache.org/ Subversion] 1.5.x or 1.6.x and the '''''corresponding''''' Python bindings.
    79 
    80 There are [http://subversion.apache.org/packages.html pre-compiled SWIG bindings] available for various platforms. See also the TracSubversion page for details about Windows packages.
    81 
    82 Older versions starting from 1.4.0, etc. should still work. For troubleshooting information, check the [trac:TracSubversion#Troubleshooting TracSubversion] page. Versions prior to 1.4.0 won't probably work since trac uses svn core functionality (e.g. svn_path_canonicalize) that is not implemented in the python swig wrapper in svn <= 1.3.x (although it exists in the svn lib itself).
    83 
    84 Note that Trac '''doesn't''' use [http://pysvn.tigris.org/ PySVN], neither does it work yet with the newer `ctype`-style bindings.
    85 
    86 '''Please note:''' if using Subversion, Trac must be installed on the '''same machine'''. Remote repositories are currently [trac:#493 not supported].
    87 
    88 
    89 ===== Others =====
    90 
    91 Support for other version control systems is provided via third-parties. See [trac:PluginList] and [trac:VersionControlSystem].
    92 
    93 ==== Web Server ====
    94 A web server is optional because Trac is shipped with a server included, see the [#RunningtheStandaloneServer Running the Standalone Server ] section below.
    95 
    96 Alternatively you configure Trac to run in any of the following environments.
    97  * [http://httpd.apache.org/ Apache] with
    98    - [http://code.google.com/p/modwsgi/ mod_wsgi], see [wiki:TracModWSGI] (preferred)
    99    - //[http://modpython.org/ mod_python 3.3.1], see TracModPython (deprecated)//
    100  * any [http://www.fastcgi.com/ FastCGI]-capable web server, see TracFastCgi
    101  * any [http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html AJP]-capable web
    102    server, see [trac:TracOnWindowsIisAjp]
    103  * IIS with [http://code.google.com/p/isapi-wsgi/ Isapi-wsgi], see [trac:TracOnWindowsIisIsapi]
    104  * //as a last resort, a CGI-capable web server (see TracCgi), but usage of Trac as a cgi script
    105    is highly discouraged, better use one of the previous options.//
    106    
    107 
    108 ==== Other Python Packages ====
    109 
    110  * [http://babel.edgewall.org Babel], version 0.9.5,
    111    needed for localization support[[BR]]
    112    ''Note: '' If you want to be able to use the Trac interface in other languages, then make sure you first have installed the optional package Babel. Lacking Babel, you will only get the default english version, as usual. If you install Babel later on, you will need to re-install Trac.
    113  * [http://docutils.sourceforge.net/ docutils], version >= 0.3.9
    114    for WikiRestructuredText.
    115  * [http://pygments.pocoo.org Pygments] for
    116    [wiki:TracSyntaxColoring syntax highlighting].
    117    [http://silvercity.sourceforge.net/ SilverCity] and/or
    118    [http://gnu.org/software/enscript/enscript.html Enscript] may still be used
    119    but are deprecated and you really should be using Pygments.
    120  * [http://pytz.sf.net pytz] to get a complete list of time zones,
    121    otherwise Trac will fall back on a shorter list from
    122    an internal time zone implementation.
    123 
    124 '''Attention''': The various available versions of these dependencies are not necessarily interchangable, so please pay attention to the version numbers above. If you are having trouble getting Trac to work please double-check all the dependencies before asking for help on the [trac:MailingList] or [trac:IrcChannel].
    125 
    126 Please refer to the documentation of these packages to find out how they are best installed. In addition, most of the [trac:TracInstallPlatforms platform-specific instructions] also describe the installation of the dependencies. Keep in mind however that the information there ''probably concern older versions of Trac than the one you're installing'' (there are even some pages that are still talking about Trac 0.8!).
    127 
    128 
    129 == Installing Trac ==
    130 === Using `easy_install`
    131 One way to install Trac is using [http://pypi.python.org/pypi/setuptools setuptools].
    132 With setuptools you can install Trac from the subversion repository;
    133 
    134 A few examples:
    135 
    136  - first install of the latest stable version Trac 0.12.3, with i18n support:
     72 * [http://subversion.apache.org/ Subversion] 1.5.x または 1.6.x と '''''対応する''''' Python バインディング。1.0 から 1.2.4 や 1.3.2 、 1.4.2 などの古いバージョンも今のところ動作します。トラブルシューティングの情報が [trac:TracSubversion#Troubleshooting TracSubversion] のページに記載されていますので、確認してください
     73
     74様々なプラットフォーム向けに [http://subversion.apache.org/packages.html SWIG バインディング] が用意されています。(このリストから Windows パッケージ用のコンパイル済みの SWIG バインディングを探してください。TracSubversion には [http://alagazam.net Algazam] がよいです。私も python 2.6 の基、使用しています。)
     75
     76Note: Trac は [http://pysvn.tigris.org/ PySVN] のような新しい `ctype` 形式のバインディングでは '''動作しません'''。
     77
     78
     79'''重要な Note:''' Subversion を使用するなら Trac を '''同じマシン''' にインストールする必要があります。リモートリポジトリは現在 [trac:#493 サポートされていません]。
     80
     81
     82===== その他のバージョン管理システム ===== #Others
     83
     84Subversion 以外のバージョン管理システムのサポートはサードパーティから提供されます。 [trac:PluginList] や [trac:VersionControlSystem] を参照して下さい。
     85
     86==== Web サーバ ==== #WebServer
     87Trac にはサーバ機能が組み込まれているので、 Web サーバは必須ではありません。このページに下にある [#RunningtheStandaloneServer スタンドアロンサーバの起動] セクションを参照してください。
     88
     89Trac は下記の環境において動作します。
     90 * [http://httpd.apache.org/ Apache] との組み合わせで
     91   - [http://code.google.com/p/modwsgi/ mod_wsgi], [wiki:TracModWSGI] と
     92    http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac を参照
     93   - [http://modpython.org/ mod_python 3.3.1], 非奨励 (TracModPython 参照)
     94 * [http://www.fastcgi.com/ FastCGI] 対応 Web サーバ (TracFastCgi 参照)
     95 * [http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html AJP] 対応 Web
     96   サーバ ([trac:TracOnWindowsIisAjp TracOnWindowsIisAjp] 参照)
     97 * CGI 対応 Web サーバ (TracCgi 参照)。’’’Trac を CGI スクリプトとして使用することは
     98   全く推奨されていませんので’’’ 、上記に挙げた方法を選択して下さい
     99
     100
     101==== その他の Python パッケージ ==== #OtherPythonPackages
     102
     103 * [http://babel.edgewall.org Babel], 0.9.5 以上
     104   ローカライズの機能を使用する場合は必要(リリースはされていませんが 1.0dev でも正しく動作します)
     105 * [http://docutils.sourceforge.net/ docutils], 0.3.9 以上
     106   WikiRestructuredText の機能を使用する場合は必要
     107 * [http://pygments.pocoo.org Pygments]
     108   [wiki:TracSyntaxColoring シンタックスハイライティング] の機能を使用する場合は必要
     109   [http://silvercity.sourceforge.net/ SilverCity] や
     110   [http://gnu.org/software/enscript/enscript.html Enscript] も、今のところ使用できますが、
     111   サポートを打ち切る予定なので、 Pygments を使用してください
     112 * [http://pytz.sf.net pytz] , タイムゾーンの完全なリストを取得する場合に必要
     113   pytz がない場合、 Trac は内部で定義している
     114   短いタイムゾーンの実装にフォールバックします
     115
     116'''Attention''': これらの依存関係は様々なバージョンで必ずしも置き換えできるとは限らないので、上記のバージョン番号に注意してください。 Trac を動かす上で問題が発生した場合は [trac:MailingList メーリングリスト] や [trac:IrcChannel IRC チャネル] で質問をする前にすべての依存関係を再度確認してください。
     117
     118これらのパッケージのドキュメンテーションを参照して、それらが最も上手にインストールできる方法を探してください。また [trac:TracInstallPlatforms プラットフォーム特有の説明] の多くに、これらの依存関係のインストール方法が記述されています。しかしながら [trac:TracInstallPlatforms プラットフォーム特有の説明] の情報はあなたがインストールしている Trac より古い バージョンについての説明があることを覚えておいてください (なんと Trac 0.8 に関する説明をしているページもあります)。
     119
     120
     121== Trac のインストール == #InstallingTrac
     122=== `easy_install` を使用したインストール ===#Usingeasy_install
     123Trac をインストールする方法のひとつに [http://pypi.python.org/pypi/setuptools setuptools] の利用があります。
     124setuptools を使用すると、 Trac を Subversion リポジトリからインストールすることもできます。
     125
     126例:
     127
     128 - Trac 1.0 をインストールします:
    137129   {{{
    138    easy_install Babel==0.9.5
    139    easy_install Trac==0.12
     130   easy_install Trac==1.0
    140131   }}}
    141    ''It's very important to run the two `easy_install` commands separately, otherwise the message catalogs won't be generated.''
    142 
    143  - upgrade to the latest stable version of Trac:
     132   (まだ有効になっていない場合)
     133 - 開発中の最新バージョン 1.0dev をインストールします:
    144134   {{{
    145    easy_install -U Trac
     135   easy_install Trac==dev
    146136   }}}
    147 
    148  - upgrade to the latest trunk development version:
    149    {{{
    150    easy_install -U Trac==dev
    151    }}}
    152 
    153 For upgrades, reading the TracUpgrade page is mandatory, of course.
    154 
    155 === From source
    156 If you want more control, you can download the source in archive form, or do a checkout from one of the official [[Trac:TracRepositories|source code repositories]].
    157 
    158 Be sure to have the prerequisites already installed. You can also obtain the Genshi and Babel source packages from http://www.edgewall.org and follow for them a similar installation procedure, or you can just `easy_install` those, see [#Usingeasy_install above].
    159 
    160 Once you've unpacked the Trac archive or performed the checkout, move in the top-level folder and do:
     137   この場合、ローカライズに対応していないバージョンである可能性があります。
     138   リリースされているバージョンを使用するか、ソースからインストールするようにしてください
     139
     140=== `pip` を使用したインストール === #Usingpip
     141'pip' は easy_install のリプレースであり、とても簡単に素早く Python パッケージをインストールすることができます。
     142Trac を 5 分程度でインストール、起動できます:
     143
     144pip によってインストールされる場所を `/opt/user/trac` とした場合の例です:
     145
     146 -
     147{{{
     148pip -E /opt/user/trac install trac psycopg2
     149}}}
     150または
     151 -
     152{{{
     153pip -E /opt/user/trac install trac mysql-python
     154}}}
     155
     156PostgreSQL (libpq-dev) や MySQL (libmysqlclient-dev) へのバインディングも自動でビルドできるように、 pip が OS 固有のヘッダファイルを確実に利用できるようにして下さい。
     157
     158また pip は (Genshi, Pygments などの) 依存関係を解決し、 pypi.python.org から最新のパッケージをダウンロードして、 `/opt/user/trac` の配下にインストールするところまで自動化されています。
     159
     160すべてのコマンド (`tracd`, `trac-admin`) は `/opt/user/trac/bin` の配下にインストールされます。 `mod_python` (`PythonHandler` ディレクティブを使用する場合) や `mod_wsgi` (`WSGIDaemonProcess` ディレクティブを使用する場合) においても活用することができます。
     161
     162加えて、 Trac プラグインのうちのいくつか ([http://pypi.python.org/pypi?:action=search&term=trac&submit=search ここ] で一覧を見ることができます) も pip からインストールすることが可能です。
     163
     164
     165
     166=== ソースからのインストール === #Fromsource
     167もちろん、ソースディレクトリのトップに格納されている setup.py を使用してインストールすることもできます。
     168
     169(Trac-1.0.tar.gz など)リリースパッケージの .tar.gz や .zip ファイル、または直接リポジトリからソースを取得することが出来ます(詳細は Trac:SubversionRepository を参照してください)。
     170
    161171{{{
    162172$ python ./setup.py install
    163173}}}
    164174
    165 You'll need root permissions or equivalent for this step.
    166 
    167 This will byte-compile the python source code and install it as an .egg file or folder in the `site-packages` directory
    168 of your Python installation. The .egg will also contain all other resources needed by standard Trac, such as htdocs and templates.
    169 
    170 The script will also install the [wiki:TracAdmin trac-admin] command-line tool, used to create and maintain [wiki:TracEnvironment project environments], as well as the [wiki:TracStandalone tracd] standalone server.
    171 
    172 If you install from source and want to make Trac available in other languages, make sure  Babel is installed. Only then, perform the `install` (or simply redo the `install` once again afterwards if you realize Babel was not yet installed):
     175``このステップを実行するためには root 権限 (または root 権限と同等の権限) が必要です。``
     176
     177この操作で Python のソースコードがバイトコンパイルされ、 .egg ファイルかディレクトリが Python インストールの `site-packages` ディレクトリにインストールされます。
     178.egg には htdocs や templates のようなソースファイル以外に標準の Trac が必要とするすべてのリソースが含まれています。
     179
     180このスクリプトは [wiki:TracStandalone tracd] スタンドアロンサーバと一緒に、 [wiki:TracEnvironment プロジェクト Environment] を作成し維持するための [wiki:TracAdmin trac-admin] コマンドラインツールをインストールします。
     181
     182ソースからインストールする場合や、新しい言語で Trac を国際化するためには Babel をインストールしておく必要があります。この場合も `install` を実行するだけです (Babel がインストールされていない状態で、すでに Trac をインストールしてしまった場合でも、 `install` をやり直すことで Babel サポートを有効化できます):
    173183{{{
    174184$ python ./setup.py install
    175185}}}
    176 Alternatively, you can do a `bdist_egg` and copy the .egg from dist/ to the place of your choice, or you can create a Windows installer (`bdist_wininst`).
    177 
    178 === Advanced Options ===
    179 
    180 ==== Custom location with `easy_install`
    181 
    182 To install Trac to a custom location, or find out about other advanced installation options, run:
     186また、 `bdist_egg` を実行すると dist ディレクトリに作成される .egg ファイルをインストール先にコピーしたり、 (`bdist_wininst` の実行によって) Windows インストーラを作成しても構いません。
     187
     188=== 高度なオプション === #AdvancedOptions
     189
     190Trac のインストール場所を変えるなどの高度なインストールオプションを知りたければ以下を実行してください:
    183191{{{
    184192easy_install --help
    185193}}}
    186194
    187 Also see [http://docs.python.org/inst/inst.html Installing Python Modules] for detailed information.
    188 
    189 Specifically, you might be interested in:
     195詳細な情報は [http://docs.python.org/inst/inst.html Python モジュールをインストールする] を参照してください。
     196
     197特にあなたは以下に興味を持つかもしれません:
    190198{{{
    191199easy_install --prefix=/path/to/installdir
    192200}}}
    193 or, if installing Trac to a Mac OS X system:
     201Mac OS X に Trac をインストールする場合:
    194202{{{
    195203easy_install --prefix=/usr/local --install-dir=/Library/Python/2.5/site-packages
    196204}}}
    197 Note: If installing on Mac OS X 10.6 running {{{ easy_install http://svn.edgewall.org/repos/trac/trunk }}} will install into {{{ /usr/local }}} and {{{ /Library/Python/2.6/site-packages }}} by default
    198 
    199 The above will place your `tracd` and `trac-admin` commands into `/usr/local/bin` and will install the Trac libraries and dependencies into `/Library/Python/2.5/site-packages`, which is Apple's preferred location for third-party Python application installations.
    200 
    201 ==== Using `pip`
    202 'pip' is an easy_install replacement that is very useful to quickly install python packages.
    203 To get a trac installation up and running in less than 5 minutes:
    204 
    205 Assuming you want to have your entire pip installation in /opt/user/trac:
    206 
    207  -
    208 {{{
    209 pip -E /opt/user/trac install trac psycopg2
    210 }}}
    211 or
    212  -
    213 {{{
    214 pip -E /opt/user/trac install trac mysql-python
    215 }}}
    216 
    217 Make sure your OS specific headers are available for pip to automatically build PostgreSQL (libpq-dev) or MySQL (libmysqlclient-dev) bindings.
    218 
    219 pip will automatically resolve all dependencies (like Genshi, pygments, etc.) and download the latest packages on pypi.python.org and create a self contained installation in /opt/user/trac .
    220 
    221 All commands (tracd, trac-admin) are available in /opt/user/trac/bin. This can also be leveraged for mod_python (using !PythonHandler directive) and mod_wsgi (using WSGIDaemonProcess directive)
    222 
    223 Additionally, you can install several trac plugins (listed [http://pypi.python.org/pypi?:action=search&term=trac&submit=search here]) through pip.
    224 
    225 
    226 
    227 == Creating a Project Environment ==
    228 
    229 A [TracEnvironment Trac environment] is the backend storage where Trac stores information like wiki pages, tickets, reports, settings, etc. An environment is basically a directory that contains a human-readable [TracIni configuration file], and various other files and directories.
    230 
    231 A new environment is created using [wiki:TracAdmin trac-admin]:
     205Note: Mac OS X 10.6 上で {{{ easy_install http://svn.edgewall.org/repos/trac/trunk }}} を使用する場合は、オプションを指定しなくても {{{ /usr/local }}} および {{{ /Library/Python/2.6/site-packages }}} にインストールされます。
     206
     207上記の例は、 `tracd` と `trac-admin` コマンドを `/usr/local/bin` に、 Trac のライブラリと依存ファイルを `/Library/Python/2.5/site-packages` にインストールします。これらのパスは Apple での Pyhton サードパーティアプリケーションの標準ロケーションです。(訳注: つまり、上記と違うパスにインストールしたい場合のみ、オプションの指定が必要になります)
     208
     209
     210== プロジェクト Environment の作成 == #CreatingaProjectEnvironment
     211
     212[TracEnvironment Trac Environment] は Trac が Wiki ページ、チケット、レポート、設定などの情報を保存するバックエンドストレージです。基本的に人間が読み込み可能な [TracIni 構成ファイル] と他の様々なファイルやディレクトリで構成されます。
     213
     214新しい Environment は [wiki:TracAdmin trac-admin] を使用して作成します:
    232215{{{
    233216$ trac-admin /path/to/myproject initenv
    234217}}}
    235218
    236 [TracAdmin trac-admin] will prompt you for the information it needs to create the environment, such as the name of the project and the [TracEnvironment#DatabaseConnectionStrings database connection string]. If you're not sure what to specify for one of these options, just press `<Enter>` to use the default value.
    237 
    238 Using the default database connection string in particular will always work as long as you have SQLite installed.
    239 For the other [DatabaseBackend database backends] you should plan ahead and already have a database ready to use at this point.
    240 
    241 Since 0.12, Trac doesn't ask for a [TracEnvironment#SourceCodeRepository source code repository] anymore when creating an environment. Repositories can be [TracRepositoryAdmin added] afterward, or the version control support can be disabled completely if you don't need it.
    242 
    243 Also note that the values you specify here can be changed later by directly editing the [TracIni conf/trac.ini] configuration file.
    244 
    245 Finally, make sure the user account under which the web front-end runs will have '''write permissions''' to the environment directory and all the files inside. This will be the case if you run `trac-admin ... initenv` as this user. If not, you should set the correct user afterwards. For example on Linux, with the web server running as user `apache` and group `apache`, enter:
     219[TracAdmin trac-admin] は、プロジェクトの名前や [TracEnvironment#DatabaseConnectionStrings データベース接続文字列] など、 Environment を新規作成するために必要な情報を入力するためのプロンプトを表示します。これらの設定項目について特に変更が必要ない場合は、単に `<Enter>` を押下すると、デフォルト値が使用されます。
     220
     221データベース接続文字列のデフォルトは SQLite が使用されます。 SQLite がインストールされている場合は、他の設定は不要です。
     222他の [trac:DatabaseBackend データベースバックエンド] を使用する場合は、あらかじめデータベースが使用可能な状態にしておかねばなりません。
     223
     2240.12 以降で Trac は、新しい Environment の作成時に [TracEnvironment#SourceCodeRepository ソースコードリポジトリ] を尋ねないようになりました。リポジトリを後で [TracRepositoryAdmin 追加する] までの間、バージョン管理のサポートは無効化されます。
     225
     226また、 ここで指定した値は [TracIni conf/trac.ini] 設定ファイルを直接編集することで後から変更できます。
     227
     228最後に、 Web のフロントエンドを実行しているユーザアカウントは、 Environment のディレクトリと、その中のすべてのファイルに対する書き込み権限が必要です。 `trac-admin ... initenv` の実行を該当するユーザで実行した場合は、この作業は不要ですが、そうでない場合、ただしユーザに権限を付与する作業が必要になります。たとえば Linux で `apache` ユーザ `apache` グループで Web サーバを起動する場合は:
    246229{{{
    247230# chown -R apache.apache /path/to/myproject
     
    249232
    250233{{{#!div class=important
    251 '''Warning:''' Please only use ASCII-characters for account name and project path, unicode characters are not supported there.
    252 }}}
    253 
    254 
    255 == Deploying Trac
    256 
    257 === Running the Standalone Server ===
    258 
    259 After having created a Trac environment, you can easily try the web interface by running the standalone server [wiki:TracStandalone tracd]:
     234'''Warning:''' アカウント名とプロジェクトパスには ASCII 文字のみを使用して下さい。 unicode 文字はサポートしていません。
     235}}}
     236
     237
     238== Trac の利用 == #DeployingTrac
     239
     240=== スタンドアロンサーバの起動 === #RunningtheStandaloneServer
     241
     242Trac 環境を作成した後に、スタンドアロンサーバ [wiki:TracStandalone tracd] を実行することで簡単に Web インタフェースを試すことができます。
    260243{{{
    261244$ tracd --port 8000 /path/to/myproject
    262245}}}
    263246
    264 Then, fire up a browser and visit `http://localhost:8000/`. You should get a simple listing of all environments that `tracd` knows about. Follow the link to the environment you just created, and you should see Trac in action. If you only plan on managing a single project with Trac you can have the standalone server skip the environment list by starting it like this:
     247ブラウザを起動して、 `http://localhost:8000/` にアクセスしてください。 `tracd` が認識しているすべての Environment の簡単な一覧が表示されます。作成した Environment へのリンクにアクセスすることで Trac が動作中であることを確認できます。 Trac でプロジェクトをひとつだけ管理したい場合、以下のように起動することで、スタンドアロンサーバは Environment 一覧の表示をスキップして、直接 Environment を表示します:
    265248{{{
    266249$ tracd -s --port 8000 /path/to/myproject
    267250}}}
    268251
    269 === Running Trac on a Web Server ===
    270 
    271 Trac provides various options for connecting to a "real" web server:
     252=== Web サーバ上での Trac の起動 === #RunningTraconaWebServer
     253
     254Trac には "実際の" Web サーバへ接続するために、いくつかの選択肢があります:
    272255 - [wiki:TracFastCgi FastCGI]
    273  - [wiki:TracModWSGI mod_wsgi] 
    274  - //[wiki:TracModPython mod_python] (no longer recommended, as mod_python is not actively maintained anymore)//
    275  - //[wiki:TracCgi CGI] (should not be used, as the performance is far from optimal)//
    276 
    277 Trac also supports [trac:TracOnWindowsIisAjp AJP] which may be your choice if you want to connect to IIS. Other deployment scenarios are possible: [trac:TracNginxRecipe nginx], [http://projects.unbit.it/uwsgi/wiki/Example#Traconapacheinasub-uri uwsgi], [trac:TracOnWindowsIisIsapi Isapi-wsgi] etc.
    278 
    279 ==== Generating the Trac cgi-bin directory ==== #cgi-bin
    280 
    281 In order for Trac to function properly with FastCGI you need to have a `trac.fcgi` file and for mod_wsgi a `trac.wsgi` file. These are Python scripts which load the appropriate Python code. They can be generated using the `deploy` option of [wiki:TracAdmin trac-admin].
    282 
    283 There is, however, a bit of a chicken-and-egg problem. The [wiki:TracAdmin trac-admin] command requires an existing environment to function, but complains if the deploy directory already exists. This is a problem, because environments are often stored in a subdirectory of the deploy. The solution is to do something like this:
     256 - [wiki:TracModWSGI mod_wsgi]
     257 - //[wiki:TracModPython mod_python] (mod_python は現在活発なメンテナンスが行われていないため、推奨されません)//
     258 - //[wiki:TracCgi CGI] (最適なパフォーマンスに遠く及ばないため、使用すべきではありません)//
     259
     260Trac では [trac:TracOnWindowsIisAjp AJP] もサポートしており、IIS と接続したい場合に選択肢の一つとなるかもしれません。その他の選択肢もあります: [trac:TracNginxRecipe nginx], [http://projects.unbit.it/uwsgi/wiki/Example#Traconapacheinasub-uri uwsgi], [trac:TracOnWindowsIisIsapi Isapi-wsgi] 等。
     261
     262==== Trac の cgi-bin ディレクトリを生成する ==== #cgi-bin
     263
     264Trac を FastCGI などで正しく機能させるには、 FastCGI であれば `trac.fcgi` ファイル、 mod_wsgi であれば `trac.wsgi` ファイルが必要となります。これらのファイルは適切な Python コードをロードする Python スクリプトです。 [wiki:TracAdmin trac-admin] コマンドの `deploy` オプションを使用することで生成できます。
     265
     266若干の「卵が先か鶏が先か」問題があります。 [wiki:TracAdmin trac-admin] コマンドが機能するためには Environment が必要なのですが、 deploy には既に存在するディレクトリは使用できません。これに起因して、 Environment は depoly するディレクトリのサブディレクトリを使用することができません。この制限を回避するには次のようにします:
    284267{{{
    285268mkdir -p /usr/share/trac/projects/my-project
     
    290273
    291274
    292 ==== Mapping Static Resources ====
    293 
    294 Out of the box, Trac will pass static resources such as style sheets or images through itself. For anything but a tracd only based deployment, this is far from optimal as the web server could be set up to directly serve those static resources (for CGI setup, this is '''highly undesirable''' and will cause abysmal performance).
    295 
    296 Web servers such as [http://httpd.apache.org/ Apache] allow you to create “Aliases” to resources, giving them a virtual URL that doesn't necessarily reflect the layout of the servers file system. We also can map requests for static resources directly to the directory on the file system, avoiding processing these requests by Trac itself.
    297 
    298 There are two primary URL paths for static resources - `/chrome/common` and `/chrome/site`. Plugins can add their own resources, usually accessible by `/chrome/<plugin>` path, so its important to override only known paths and not try to make universal `/chrome` alias for everything.
    299 
    300 Note that in order to get those static resources on the filesystem, you need first to extract the relevant resources from Trac using the [TracAdmin trac-admin]` <environment> deploy` command:
     275==== 静的なリソースをマッピングする ==== #MappingStatcResources
     276
     277特に設定することなく Trac はスタイルシートや画像のような静的なリソースを扱うことができます。tracd は唯一基本的な動作環境ですが、 Web サーバがそれら静的リソースを直接供給するように設定することより、はるかに最適になります。(CGI でセットアップした場合、'''極めて望ましくない''' し、著しい性能悪化の原因となります)
     278
     279[http://httpd.apache.org/ Apache] のような Web サーバはリソースに対して "Alias" を設定することで仮想の URL を与え、サーバのファイルシステムのレイアウトとは異なる位置にマップすることができます。また、Trac自身によるこれらの要求に対する処理を避けて、直接ファイルシステム上のディレクトリへ静的リソースに対する要求をマッピングすることができます。
     280
     281静的なリソースに対する主要な URL パスとして `/chrome/common` と `/chrome/site` があります。プラグインを使用している場合、各々の静的リソースとして `/chrome/<plugin>` のようなパスが追加されていることがありますが、主要なパスに対して追加を行えるだけなので、 `/chrome` に対して `Alias` を設定しても、プラグインが提供する静的リソースに対してアクセスできる訳ではありません。(訳注: このような場合 `trac-admin` の `deploy` で作成された `htdocs` ディレクトリに対して `Alias` を使用してください)
     282
     283Note: ファイルシステムにおける静的なリソースを取得するためには、最初に [TracAdmin trac-admin] の ` <environment> deploy` コマンドを使用して、 Trac 関連のリソースを拡張する必要があります。
    301284[[TracAdminHelp(deploy)]]
    302285
    303 The target `<directory>` will then contain an `htdocs` directory with:
    304  - `site/` - a copy of the environment's directory `htdocs/`
    305  - `common/` - the static resources of Trac itself
    306  - `<plugins>/` - one directory for each resource directory managed by the plugins enabled for this environment
    307 
    308 ===== Example: Apache and `ScriptAlias` ===== #ScriptAlias-example
    309 
    310 Assuming the deployment has been done this way:
     286ターゲットの `<directory>` は、以下のように `htdocs` ディレクトリに含まれます:
     287 - `site/` - Environment 内の `htdocs/` ディレクトリのコピーです
     288 - `common/` - Trac 自身が持つ静的なリソース
     289 - `<plugins>/` - Environment で使用可能なプラグインによって管理される個々のリソースディレクトリ
     290
     291===== 例: Apache と `ScriptAlias` ===== #ScriptAlias-example
     292
     293以下のような環境を仮定すると:
    311294{{{
    312295$ trac-admin /var/trac/env deploy /path/to/trac/htdocs/common
    313296}}}
    314297
    315 Add the following snippet to Apache configuration ''before'' the `ScriptAlias` or `WSGIScriptAlias` (which map all the other requests to the Trac application), changing paths to match your deployment:
     298Apache の設定ファイル内において `ScriptAlias` や `WSGIScriptAlias` の記述(Trac アプリケーションへの他のすべてのリクエストに対するマップの記述) ''より上に'' 以下のブロックを追記します。 パスは環境に合わせ変更してください:
    316299{{{
    317300Alias /trac/chrome/common /path/to/trac/htdocs/common
     
    324307}}}
    325308
    326 If using mod_python, you might want to add this too (otherwise, the alias will be ignored):
     309もし mod_python を使用している場合、この設定を追加した方が良いかもしれません(使用していない場合は、このエイリアスは無視されます):
    327310{{{
    328311<Location "/trac/chrome/common/">
     
    331314}}}
    332315
    333 Note that we mapped `/trac` part of the URL to the `trac.*cgi` script, and the path `/trac/chrome/common` is the path you have to append to that location to intercept requests to the static resources.
    334 
    335 Similarly, if you have static resources in a project's `htdocs` directory (which is referenced by `/trac/chrome/site` URL in themes), you can configure Apache to serve those resources (again, put this ''before'' the `ScriptAlias` or `WSGIScriptAlias` for the .*cgi scripts, and adjust names and locations to match your installation):
     316Note: `trac.*cgi` スクリプトを `/trac` にマップしている場合、 `/trac/chrome/common` を加えたパスに対するリクエストは、静的リソースで処理するように割り込みを加えます。
     317
     318同様に、静的なリソースを project の `htdocs` ディレクトリで使用している場合 (テーマの中で `/trac/chrome/site` を参照しているなど)、 これらのリソースを供給するよう Apache を設定することが出来ます。(再度、.*cgi スクリプトの `ScriptAlias` や `WSGIScriptAlias` ''より上に'' 以下のブロックを記述します。インストール状況に合わせて、ファイル名やロケーションは適宜変更してください):
    336319{{{
    337320Alias /trac/chrome/site /path/to/projectenv/htdocs
     
    343326}}}
    344327
    345 Alternatively to aliasing `/trac/chrome/common`, you can tell Trac to generate direct links for those static resources (and only those), using the [[wiki:TracIni#trac-section| [trac] htdocs_location]] configuration setting:
     328一方で `/trac/chrome/common` をエイリアスとするような場合、 Trac では [wiki:TracIni#trac-section| [trac] htdocs_location] を設定することで、それらリソースに対して直接リンクを生成することができます:
    346329{{{
    347330[trac]
    348331htdocs_location = http://static.example.org/trac-common/
    349332}}}
    350 Note that this makes it easy to have a dedicated domain serve those static resources (preferentially [http://code.google.com/speed/page-speed/docs/request.html#ServeFromCookielessDomain cookie-less]).
    351 
    352 Of course, you still need to make the Trac `htdocs/common` directory available through the web server at the specified URL, for example by copying (or linking) the directory into the document root of the web server:
     333Note: これは 静的なリソースを供給する専用のドメインを簡単に設定します。([http://code.google.com/speed/page-speed/docs/request.html#ServeFromCookielessDomain cookie-less])
     334
     335当然、Web サーバのドキュメントルートにディレクトリをコピーする(又は、リンクする)等して、特定の URL で Web サーバに接続できるよう Trac の `htdocs/common` ディレクトリを作成する必要があります。
    353336{{{
    354337$ ln -s /path/to/trac/htdocs/common /var/www/static.example.org/trac-common
     
    356339
    357340
    358 ==== Setting up the Plugin Cache ====
    359 
    360 Some Python plugins need to be extracted to a cache directory. By default the cache resides in the home directory of the current user. When running Trac on a Web Server as a dedicated user (which is highly recommended) who has no home directory, this might prevent the plugins from starting. To override the cache location you can set the PYTHON_EGG_CACHE environment variable. Refer to your server documentation for detailed instructions on how to set environment variables.
    361 
    362 == Configuring Authentication ==
    363 
    364 Trac uses HTTP authentication. You'll need to configure your webserver to request authentication when the `.../login` URL is hit (the virtual path of the "login" button). Trac will automatically pick the REMOTE_USER variable up after you provide your credentials. Therefore, all user management goes through your web server configuration. Please consult the documentation of your web server for more info.
    365 
    366 The process of adding, removing, and configuring user accounts for authentication depends on the specific way you run Trac.
    367 
    368 Please refer to one of the following sections:
    369  * TracStandalone#UsingAuthentication if you use the standalone server, `tracd`.
    370  * [wiki:TracModWSGI#ConfiguringAuthentication TracModWSGI#ConfiguringAuthentication] if you use the Apache web server, with any of its front end: `mod_wsgi` of course, but the same instructions applies also for `mod_python`, `mod_fcgi` or `mod_fastcgi`.
    371  * TracFastCgi if you're using another web server with FCGI support (Cherokee, Lighttpd, !LiteSpeed, nginx)
    372 
    373 == Granting admin rights to the admin user
    374 Grant admin rights to user admin:
     341==== プラグインキャッシュの設定 ==== #SettingupthePluginCache
     342
     343Python プラグインの中にはキャッシュディレクトリを必要とするものがあります。デフォルトではキャッシュディレクトリは、現在のユーザのホームディレクトリに置かれます。 Trac を Web サーバで動作させている場合、ホームディレクトリを持たない専用ユーザであることが多く (強く推奨します)、プラグインの起動が妨げられることがあります。キャッシュディレクトリの場所を変更するには、環境変数 PYTHON_EGG_CACHE を設定してください。環境変数を設定する方法の詳細は使用しているサーバのドキュメントから参照してください。
     344
     345== 認証の構成 == #ConfiguringAuthentication
     346
     347Trac は HTTP 認証を使用します。`.../login` の URL ("ログイン"(英語版では "login") ボタンの仮想パス) がリクエストされた際に、認証を要求するように Web サーバを設定する必要があります。Trac は認証情報を得た後自動的に REMOTE_USER 変数を獲得します。そのため、すべてのユーザの管理は Web サーバ の設定で行います。設定方法等の詳細な情報は、利用している Web サーバのドキュメントを参照してください。
     348
     349認証のためのユーザアカウントを追加、削除、設定する方法は Trac を起動する方法により異なります。
     350
     351以下に記すセクションを適宜参照してください:
     352 * スタンドアロンサーバ `tracd` を使用する場合は TracStandalone#UsingAuthentication
     353 * Apache Web サーバ と `mod_wsgi` に代表される `mod_python` や `mod_fcgi`, `mod_fastcgi` といったフロントエンドを使用する場合は [wiki:TracModWSGI#ConfiguringAuthentication TracModWSGI#ConfiguringAuthentication]
     354 * Apache 以外の FCGI をサポートしている Web サーバ (Cherokee, Lighttpd, !LiteSpeed, nginx) を使用する場合 TracFastCgi
     355
     356== admin ユーザへの管理者権限の付与 == #Grantingadminrightstotheadminuser
     357admin ユーザに管理者権限を付与します:
    375358{{{
    376359$ trac-admin /path/to/myproject permission add admin TRAC_ADMIN
    377360}}}
    378 This user will have an "Admin" entry menu that will allow you to admin your trac project.
    379 
    380 == Finishing the install
    381 
    382 === Automatic reference to the SVN changesets in Trac tickets ===
    383 
    384 You can configure SVN to automatically add a reference to the changeset into the ticket comments, whenever changes are committed to the repository. The description of the commit needs to contain one of the following formulas:
    385  * '''`Refs #123`''' - to reference this changeset in `#123` ticket
    386  * '''`Fixes #123`''' - to reference this changeset and close `#123` ticket with the default status ''fixed''
    387 
    388 This functionality requires a post-commit hook to be installed as described in [wiki:TracRepositoryAdmin#ExplicitSync TracRepositoryAdmin], and enabling the optional commit updater components by adding the following line to the `[components]` section of your [wiki:TracIni#components-section trac.ini], or enabling the components in the "Plugins" admin panel.
     361このユーザは Trac プロジェクトに管理者としてアクセスするため、メニュー内に "管理"(英語版では "Admin") が表示されます。
     362
     363== インストールを終えて == #Finishingtheinstall
     364
     365=== SVN のチェンジセットを Trac のチケットに自動リンクする方法 === #AutomaticreferencetotheSVNchangesetsinTractickets
     366
     367変更をリポジトリにコミットした時に、チェンジセットへのリンクをチケットのコメントに自動で追加するように SVN を設定することができます。コミットメッセージには以下に示すいずれかの書式が含まれていなければなりません:
     368 * '''`Refs #123`''' - このチェンジセットへのリンクをチケット `#123` に追加します
     369 * '''`Fixes #123`''' - このチェンジセットへのリンクをチケット `#123` に追加し、チケットを ''fixed'' でクローズします
     370
     371この機能を使用するためには post-commit フックを [wiki:TracRepositoryAdmin#ExplicitSync TracRepositoryAdmin] に記載したリポジトリにインストールし、  commit updater コンポーネントを有効にせねばなりません。コンポーネントの有効化は、 [wiki:TracIni#components-section trac.ini] ファイルの `[components]` セクションに下記記述を追加するか、 "プラグイン" (英語版では "Plugins") 管理パネルから設定します。
    389372{{{
    390373tracopt.ticket.commit_updater.* = enabled
    391374}}}
    392 For more information, see the documentation of the `CommitTicketUpdater` component in the "Plugins" admin panel.
    393 
    394 === Using Trac ===
    395 
    396 Once you have your Trac site up and running, you should be able to create tickets, view the timeline, browse your version control repository if configured, etc.
    397 
    398 Keep in mind that //anonymous// (not logged in) users can by default access only a few of the features, in particular they will have a read-only access to the resources. You will need to configure authentication and grant additional [wiki:TracPermissions permissions] to authenticated users to see the full set of features.
     375詳細な情報は "プラグイン" 管理パネルの `CommitTicketUpdater` コンポーネントにあるドキュメントを参照してください。
     376
     377=== Trac を使用する === #UsingTrac
     378
     379一度 Trac サイトを稼働させれば、チケットを作成したり、タイムラインを見たり、 (設定されていれば) バージョン管理のリポジトリを閲覧したりできるはずです。
     380
     381//anonymous// (ログインしていない) でアクセスするユーザは、デフォルトではほとんど機能を使用することができません。特に、リソースに対して読み取りのみのアクセスになります。すべての機能を使用できるわけではないことに留意してください。すべての機能を使用するためには認証を構成して、認証されたユーザに対し [wiki:TracPermissions アクセス許可] を与える必要があります。
    399382
    400383'' Enjoy! ''