Цитата(nickless @ 2.7.2010, 11:23 ) | | Лог у него есть? Что в нём насчет svn? |
К сожелению не силен в Linux...
Вот что я делаю. Для того, что бы установить все необходимые пакеты, согласно http://trac.edgewall.org/wiki/TracInstall, добавляю необходимые репозитории (необходимые репозитории определял сам - боюсь это и есть тонкое место):
| Цитата | sudo zypper ar http://download.opensuse.org/repositories/home:/FunkyM:/scm/openSUSE_11.2 FunkyM sudo zypper ar http://download.opensuse.org/repositories/home:/dipe/openSUSE_11.2 dipe sudo zypper ar http://download.opensuse.org/repositories/Apache:/Modules/Apache_openSUSE_11.2 Apache sudo zypper ar http://download.opensuse.org/repositories/home:/babelworx:/python/openSUSE_11.2 babelworx sudo zypper ar http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_11.2 devel
|
Затем устанавливаю все необходимые пакеты (кроме самого trac'a):
| Цитата | sudo zypper install python python-devel python-xml python-setuptools python-genshi postgresql-server python-psycopg2 subversion swig apache2 apache2-mod_wsgi apache2-mod_python python-babel docutils python-pygments python-pytz
|
Всё проходит нормально... Далее:
| Цитата | vm@vm:~> sudo easy_install Trac==0.12 Searching for Trac==0.12 Reading http://pypi.python.org/simple/Trac/ Reading http://trac.edgewall.org/ Reading http://trac.edgewall.org/wiki/TracDownload Reading http://trac.edgewall.com/ Reading http://projects.edgewall.com/trac Reading http://projects.edgewall.com/trac/wiki/TracDownload Best match: Trac 0.12 Downloading ftp://ftp.edgewall.com/pub/trac/Trac-0.12.zip Processing Trac-0.12.zip Running Trac-0.12/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4_HymG/Trac-0.12/egg-dist-tmp-t5cdeu /usr/lib/python2.6/site-packages/pytz/tzinfo.py:5: DeprecationWarning: the sets module is deprecated from sets import Set catalog 'trac/locale/vi/LC_MESSAGES/messages.po' is marked as fuzzy, skipping catalog 'trac/locale/fa/LC_MESSAGES/messages.po' is marked as fuzzy, skipping catalog 'trac/locale/el/LC_MESSAGES/messages.po' is marked as fuzzy, skipping Adding Trac 0.12 to easy-install.pth file Installing trac-admin script to /usr/local/bin Installing tracd script to /usr/local/bin
Installed /usr/local/lib/python2.6/site-packages/Trac-0.12-py2.6.egg Processing dependencies for Trac==0.12 Searching for Genshi>=0.6 Reading http://pypi.python.org/simple/Genshi/ Reading http://genshi.edgewall.org/ Reading http://genshi.edgewall.org/wiki/Download Best match: Genshi 0.6 Downloading http://ftp.edgewall.com/pub/genshi/Genshi-0.6-py2.6.egg Processing Genshi-0.6-py2.6.egg Moving Genshi-0.6-py2.6.egg to /usr/local/lib/python2.6/site-packages Adding Genshi 0.6 to easy-install.pth file
Installed /usr/local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg Finished processing dependencies for Trac==0.12
|
После этого конфигурирую PostgreSQL.
| Цитата | sudo /sbin/service postgresql start
sudo vim /var/lib/pgsql/data/pg_hba.conf ==================== #host all all 127.0.0.1/32 ident host trac trac 127.0.0.1/32 password ====================
su su postgres createuser --pwprompt --encrypted --no-adduser --no-createdb trac Enter password for new role: Enter it again: Shall the new role be allowed to create more new roles? (y/n) n
createdb --encoding=UNICODE --owner=trac trac
sudo /sbin/service postgresql restart
|
Создаю trac-проект.
| Цитата | postgres@vm:/home/vm> sudo trac-admin /srv/www/htdocs/abc initenv /usr/lib/python2.6/site-packages/pytz/tzinfo.py:5: DeprecationWarning: the sets module is deprecated from sets import Set Creating a new Trac environment at /srv/www/htdocs/abc
Trac will first ask a few questions about your environment in order to initialize and prepare the project database.
Please enter the name of your project. This name will be used in page titles and descriptions.
Project Name [My Project]> abc Please specify the connection string for the database to use. By default, a local SQLite database is created in the environment directory. It is also possible to use an already existing PostgreSQL database (check the Trac documentation for the exact connection string syntax).
Database connection string [sqlite:db/trac.db]> postgres://trac:secret@127.0.0.1:5432/trac
Creating and Initializing Project Installing default wiki pages InterTrac imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/InterTrac TracSyntaxColoring imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracSyntaxColoring TracReports imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracReports WikiRestructuredText imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/WikiRestructuredText TracTickets imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracTickets WikiHtml imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/WikiHtml TracTicketsCustomFields imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracTicketsCustomFields WikiProcessors imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/WikiProcessors WikiFormatting imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/WikiFormatting TracCgi imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracCgi TracAccessibility imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracAccessibility TracPlugins imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracPlugins WikiPageNames imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/WikiPageNames CamelCase imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/CamelCase TracRss imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracRss SandBox imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/SandBox TracModWSGI imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracModWSGI InterWiki imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/InterWiki TracPermissions imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracPermissions TracRoadmap imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracRoadmap TracSupport imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracSupport TracRevisionLog imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracRevisionLog TracLogging imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracLogging TracTimeline imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracTimeline TracImport imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracImport TracIni imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracIni TracSearch imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracSearch TracAdmin imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracAdmin TracFineGrainedPermissions imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracFineGrainedPermissions TracInterfaceCustomization imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracInterfaceCustomization TracChangeset imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracChangeset InterMapTxt imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/InterMapTxt WikiNewPage imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/WikiNewPage TracStandalone imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracStandalone TracGuide imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracGuide TracBrowser imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracBrowser TracWiki imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracWiki TracQuery imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracQuery TracInstall imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracInstall TracEnvironment imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracEnvironment WikiStart imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/WikiStart TracUnicode imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracUnicode RecentChanges imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/RecentChanges TracRepositoryAdmin imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracRepositoryAdmin TracWorkflow imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracWorkflow TracModPython imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracModPython WikiDeletePage imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/WikiDeletePage TracUpgrade imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracUpgrade TracFastCgi imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracFastCgi TitleIndex imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TitleIndex TracLinks imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracLinks TracNotification imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracNotification WikiRestructuredTextLinks imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/WikiRestructuredTextLinks TracNavigation imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracNavigation WikiMacros imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/WikiMacros PageTemplates imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/PageTemplates TracBackup imported from /root/.python-eggs/Trac-0.12-py2.6.egg-tmp/trac/wiki/default-pages/TracBackup
--------------------------------------------------------------------- Project environment for 'abc' created.
You may now configure the environment by editing the file:
/srv/www/htdocs/abc/conf/trac.ini
If you'd like to take this new project environment for a test drive, try running the Trac standalone web server `tracd`:
tracd --port 8000 /srv/www/htdocs/abc
Then point your browser to http://localhost:8000/abc. There you can also browse the documentation for your installed version of Trac, including information on further setup (such as deploying Trac to a real web server).
The latest documentation can also always be found on the project website:
http://trac.edgewall.org/
Congratulations!
postgres@vm:/home/vm>
|
После этого trac-сервер запускается успешно и я могу через web-браузер зайти в проект.
При этом логов, вроде бы как бы и нет:
| Цитата | postgres@vm:/home/vm> ls -l /var/log | grep trac postgres@vm:/home/vm>
|
Цитата(nickless @ 2.7.2010, 11:23 ) | | Всякие байндинги установлены? |
Мне кажеться, что да . |