72 | | |
73 | | == Installing Trac == |
| 86 | === Install PySQLite === |
| 87 | |
| 88 | Install the [http://pysqlite.org PySqlite] database driver: |
| 89 | {{{ |
| 90 | easy_install pysqlite |
| 91 | }}} |
| 92 | |
| 93 | If you want to use another database than SQLite, you need to read the TracOnWindows/Advanced instructions. |
| 94 | |
| 95 | Note: When installing PySQLite this way, you may see the following error: |
| 96 | |
| 97 | >Error: Setup script exited with error: Python was built with version 7.1 |
| 98 | >of Visual Studio, and extensions need to be built with the same version |
| 99 | >of the compiler, but it isn't installed. |
| 100 | |
| 101 | If so, try installing PySQLite with the Windows executable installer referenced earlier: |
| 102 | |
| 103 | || ''PySqlite'' || [http://initd.org/pub/software/pysqlite/releases/2.3/2.3.2/pysqlite-2.3.2.win32-py2.4.exe pysqlite-2.3.2.win32-py2.4.exe] (or the [http://initd.org/pub/software/pysqlite/releases/2.3/2.3.2/pysqlite-2.3.2.win32-py2.3.exe Python 2.3 version]) || |
| 104 | |
| 105 | Download the installer pysqlite-2.3.2.win32-py2.4.exe to your usual download directory. |
| 106 | |
| 107 | When it has finished downloading, double-click on it to run the installer. The installer window will appear, labeled '''Setup pysqlite-2.3.2'''. |
| 108 | |
| 109 | On the first window of the installation dialog, click Next to begin the installation process. |
| 110 | |
| 111 | On the second window, confirm the Python install directory. If you have followed the instructions above, it will be "c:\python24\". The default install directory will show as "c:\python24\Lib\site-packages\". Accept the defaults or change them to match your own directory structure. Click Next to proceed. |
| 112 | |
| 113 | The next window in the dialog gives you a chance to cancel or continue. To continue, click Next. |
| 114 | |
| 115 | On the next window, the installer shows you installation progress as files are written to the target locations. When the processing is complete, click Finish. If you check the contents of c:\python24\Lib\site-packages\ directory, you should see the directory '''pysqlite2''', which contains the database scripts. |
| 116 | |
| 117 | === Install Subversion (optional) === #Subversion |
| 118 | ==== ==== #svntools |
| 119 | Trac can integrate with the [http://subversion.tigris.org Subversion] version control software. Follow these steps if you'd like to use Trac with Subversion. You can learn more about how they can integrate from the wiki: TracSubversion. |
| 120 | |
| 121 | This document covers using the Subversion command line tools, but you can also use the [http://tortoisesvn.net/ TortoiseSVN] Windows GUI. |
| 122 | |
| 123 | Download and run the installer for the Subversion command line tools: |
| 124 | [http://subversion.tigris.org/files/documents/15/35379/svn-1.4.2-setup.exe svn-1.4.2-setup.exe] |
| 125 | |
| 126 | The installation begins by displaying a small dialog titled '''Setup'''. It asks you whether you wish to continue. Click Yes. |
| 127 | |
| 128 | A larger window appears, titled '''Setup - Subversion'''. The first window of the dialog says "Welcome to the Subversion Setup Wizard". Click Next. Click "I accept the agreement" and then click Next. On the next window, read the important information and click Next. |
| 129 | |
| 130 | Select your destination directory for the Subversion installation. Click Next. You will then have the option of installing a Subversion menu item on the Start Menu, and a selection of places to put Subversion icons. Click Next. Finally you are ready to install. Click Next and the files will be copied to your selected destination. A couple more windows follow the install process, and then you're done. |
| 131 | |
| 132 | ==== ==== #svnbindings |
| 133 | Go back to your command line to install the Subversion Python library: |
| 134 | {{{ |
| 135 | easy_install -Z http://subversion.tigris.org/downloads/svn-python-1.4.2.win32-py2.4.exe |
| 136 | }}} |
| 137 | |
| 138 | '''Note:''' the "-Z" option is necessary when installing Subversion so that it is "unzipped". Trac will not be able to access Subversion if it is zipped. |
| 139 | |
| 140 | The installation process will begin with "Downloading http://subversion.tigris.org/downloads/svn-python-1.4.2.win32-py2.4.exe" and -- if successful -- ends with "Processing dependencies for svn-python==1.4.2". |
| 141 | |
| 142 | |
| 143 | === Install ClearSilver (optional) === |
| 144 | |
| 145 | Install the [http://www.clearsilver.net/ ClearSilver] template language: |
| 146 | {{{ |
| 147 | easy_install -f http://clearsilver.net/downloads clearsilver==0.9.14 |
| 148 | }}} |
| 149 | |
| 150 | |
| 151 | |
| 152 | === Installing mod_python for use with the Apache HTTP server (optional) === |
| 153 | |
| 154 | If you are using an Apache server, you will need the latest mod_python for windows, built against Python v2.5. Currently version 3.3.1 is available at the [http://httpd.apache.org/download.cgi Apache] website (click on "Other Files" and surf to `modpython/win/3.3.1/`). However, you can also get other versions [http://nicolas.lehuen.com/download/mod_python/ here], courtesy of a very kind and wise gentleman called Nicolas Lehuen. |
| 155 | |
| 156 | === Installing plugins === |
| 157 | |
| 158 | There's no need to install the WebAdmin plugin, as it has now been integrated in Trac proper. |
| 159 | Quite to the contrary, you should remove it if you're upgrading (it will be automatically disable though, so don't worry). |
| 160 | |
| 161 | See TracPlugins for details about plugin installation. |
| 162 | |
| 163 | For example, you can install the SpamFilter plugin. For that, you can grab them directly from the repository, and install it the same way you did for Trac: |
| 164 | {{{ |
| 165 | > cd C:\src |
| 166 | > svn checkout http://svn.edgewall.org/repos/trac/sandbox/spam-filter |
| 167 | > cd spam-filter |
| 168 | > python setup.py install |
| 169 | }}} |
| 170 | Note if you catch an error:"ImportError: No module named setuptools" please download http://peak.telecommunity.com/dist/ez_setup.py and install the setuptools. |
| 171 | |
| 172 | If for some reason the above step fails, either because there's no package for the Windows platform you're using or the setuptools don't manage to read information from your svn working copy (if you used Subversion 1.4 for doing the checkout), you'll probably need to install first a recent `setuptools` package, itself available from `http://svn.python.org/projects/sandbox/trunk/setuptools`. Version 0.7a1 (!r51948) from the repository worked for me. |
| 173 | |
| 174 | |
| 175 | === Installing Trac === |
99 | | |
100 | | |
101 | | == Installing mod_python for use with the Apache HTTP server == |
102 | | |
103 | | If you are using an Apache server, you will need the latest mod_python for windows, built against Python v2.5. Currently version 3.3.1 is available at the [http://httpd.apache.org/download.cgi Apache] website (click on "Other Files" and surf to `modpython/win/3.3.1/`). However, you can also get other versions [http://nicolas.lehuen.com/download/mod_python/ here], courtesy of a very kind and wise gentleman called Nicolas Lehuen. |
104 | | |
105 | | == Installing plugins == |
106 | | |
107 | | There's no need to install the WebAdmin plugin, as it has now been integrated in Trac proper. |
108 | | Quite to the contrary, you should remove it if you're upgrading (it will be automatically disable though, so don't worry). |
109 | | |
110 | | See TracPlugins for details about plugin installation. |
111 | | |
112 | | For example, you can install the SpamFilter plugin. For that, you can grab them directly from the repository, and install it the same way you did for Trac: |
113 | | {{{ |
114 | | > cd C:\src |
115 | | > svn checkout http://svn.edgewall.org/repos/trac/sandbox/spam-filter |
116 | | > cd spam-filter |
117 | | > python setup.py install |
118 | | }}} |
119 | | Note if you catch an error:"ImportError: No module named setuptools" please download http://peak.telecommunity.com/dist/ez_setup.py and install the setuptools. |
120 | | |
121 | | If for some reason the above step fails, either because there's no package for the Windows platform you're using or the setuptools don't manage to read information from your svn working copy (if you used Subversion 1.4 for doing the checkout), you'll probably need to install first a recent `setuptools` package, itself available from `http://svn.python.org/projects/sandbox/trunk/setuptools`. Version 0.7a1 (!r51948) from the repository worked for me. |
122 | | |
123 | | === Install PySQLite === |
124 | | |
125 | | Install the [http://pysqlite.org PySqlite] database driver: |
126 | | {{{ |
127 | | easy_install pysqlite |
128 | | }}} |
129 | | |
130 | | If you want to use another database than SQLite, you need to read the TracOnWindows/Advanced instructions. |
131 | | |
132 | | Note: When installing PySQLite this way, you may see the following error: |
133 | | |
134 | | >Error: Setup script exited with error: Python was built with version 7.1 |
135 | | >of Visual Studio, and extensions need to be built with the same version |
136 | | >of the compiler, but it isn't installed. |
137 | | |
138 | | If so, try installing PySQLite with the Windows executable installer referenced earlier: |
139 | | |
140 | | || ''PySqlite'' || [http://initd.org/pub/software/pysqlite/releases/2.3/2.3.2/pysqlite-2.3.2.win32-py2.4.exe pysqlite-2.3.2.win32-py2.4.exe] (or the [http://initd.org/pub/software/pysqlite/releases/2.3/2.3.2/pysqlite-2.3.2.win32-py2.3.exe Python 2.3 version]) || |
141 | | |
142 | | Download the installer pysqlite-2.3.2.win32-py2.4.exe to your usual download directory. |
143 | | |
144 | | When it has finished downloading, double-click on it to run the installer. The installer window will appear, labeled '''Setup pysqlite-2.3.2'''. |
145 | | |
146 | | On the first window of the installation dialog, click Next to begin the installation process. |
147 | | |
148 | | On the second window, confirm the Python install directory. If you have followed the instructions above, it will be "c:\python24\". The default install directory will show as "c:\python24\Lib\site-packages\". Accept the defaults or change them to match your own directory structure. Click Next to proceed. |
149 | | |
150 | | The next window in the dialog gives you a chance to cancel or continue. To continue, click Next. |
151 | | |
152 | | On the next window, the installer shows you installation progress as files are written to the target locations. When the processing is complete, click Finish. If you check the contents of c:\python24\Lib\site-packages\ directory, you should see the directory '''pysqlite2''', which contains the database scripts. |
153 | | |
154 | | === Install Subversion (optional) === #Subversion |
155 | | ==== ==== #svntools |
156 | | Trac can integrate with the [http://subversion.tigris.org Subversion] version control software. Follow these steps if you'd like to use Trac with Subversion. You can learn more about how they can integrate from the wiki: TracSubversion. |
157 | | |
158 | | This document covers using the Subversion command line tools, but you can also use the [http://tortoisesvn.net/ TortoiseSVN] Windows GUI. |
159 | | |
160 | | Download and run the installer for the Subversion command line tools: |
161 | | [http://subversion.tigris.org/files/documents/15/35379/svn-1.4.2-setup.exe svn-1.4.2-setup.exe] |
162 | | |
163 | | The installation begins by displaying a small dialog titled '''Setup'''. It asks you whether you wish to continue. Click Yes. |
164 | | |
165 | | A larger window appears, titled '''Setup - Subversion'''. The first window of the dialog says "Welcome to the Subversion Setup Wizard". Click Next. Click "I accept the agreement" and then click Next. On the next window, read the important information and click Next. |
166 | | |
167 | | Select your destination directory for the Subversion installation. Click Next. You will then have the option of installing a Subversion menu item on the Start Menu, and a selection of places to put Subversion icons. Click Next. Finally you are ready to install. Click Next and the files will be copied to your selected destination. A couple more windows follow the install process, and then you're done. |
168 | | |
169 | | ==== ==== #svnbindings |
170 | | Go back to your command line to install the Subversion Python library: |
171 | | {{{ |
172 | | easy_install -Z http://subversion.tigris.org/downloads/svn-python-1.4.2.win32-py2.4.exe |
173 | | }}} |
174 | | |
175 | | '''Note:''' the "-Z" option is necessary when installing Subversion so that it is "unzipped". Trac will not be able to access Subversion if it is zipped. |
176 | | |
177 | | The installation process will begin with "Downloading http://subversion.tigris.org/downloads/svn-python-1.4.2.win32-py2.4.exe" and -- if successful -- ends with "Processing dependencies for svn-python==1.4.2". |
178 | | |
179 | | |
180 | | === Install ClearSilver (optional) === |
181 | | |
182 | | Install the [http://www.clearsilver.net/ ClearSilver] template language: |
183 | | {{{ |
184 | | easy_install -f http://clearsilver.net/downloads clearsilver==0.9.14 |
185 | | }}} |
186 | | |
187 | | |
188 | | === Install Trac === |
189 | | |
190 | | Download and run the latest stable Trac Windows installer: ''not yet available, see TracDownload#Tracdevel'' |
191 | | [[comment([http://ftp.edgewall.com/pub/trac/trac-0.10.win32.exe trac-0.10.3.win32.exe])]] |
192 | | |
193 | | '''Note:''' do '''not''' run easy_install on the Trac installer. This is not currently supported and Trac will not work correctly when installed this way. |
194 | | |
195 | | When you run the installer, it displays a window titled '''Setup Trac 0.10'''. On the first window of the installation dialog, click Next to get started. Confirm your Python directory and your intended installation directory. Click Next. Click Next again to start the installation. When the process is over, click Finish to complete the installation. |
196 | | |
197 | | ---- |
198 | | |
199 | | |
200 | | ---- |
201 | | See also: TracOnWindows/Advanced, ["0.10/TracOnWindows"], ["0.9/TracOnWindows"] |
202 | | |