概ねの手順はHow to install TurboGears 2 — TG2 v2.0 documentationの通り…なんだけど、オイラは途中から違う方法でインストールしました。
ザクリと手順となるコマンドだけを抜き出すと、以下のような具合です。
wget http://peak.telecommunity.com/dist/ez_setup.py
sudo python ez_setup.py
sudo aptitude install libsqlite3-dev sqlite3 python-dev build-essential
sudo easy_install virtualenv
### ここまではほぼ公式ドキュメントどおり。以下、easy_installに頼りまくる。
sudo easy_install TurboGears
sudo easy_install TurboGears2
これで入った次第。
試しにtg-adminを実行します。
yt@nephos:~/turbogears$ tg-admin quickstart
/usr/local/lib/python2.6/dist-packages/CherryPy-2.3.0-py2.6.egg/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
/usr/local/lib/python2.6/dist-packages/CherryPy-2.3.0-py2.6.egg/cherrypy/lib/profiler.py:54: UserWarning: Your installation of Python doesn't have a profile module. If you're on Debian, you can apt-get python2.4-profiler from non-free in a separate step. See http://www.cherrypy.org/wiki/ProfilingOnDebian for details.
warnings.warn(msg)
/usr/local/lib/python2.6/dist-packages/CherryPy-2.3.0-py2.6.egg/cherrypy/filters/sessionfilter.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha
/usr/local/lib/python2.6/dist-packages/PEAK_Rules-0.5a1.dev_r2582-py2.6.egg/peak/rules/indexing.py:220: DeprecationWarning: object.__new__() takes no parameters
/usr/local/lib/python2.6/dist-packages/ToscaWidgets-0.9.4-py2.6.egg/tw/core/view.py:202: DeprecationWarning: object.__new__() takes no parameters
obj = object.__new__(cls, *args, **kw)
Enter project name: DrunkenStein
Enter package name [drunkenstein]:
Do you need Identity (usernames/passwords) in this project? [no]
Selected and implied templates:
TurboGears#tgbase tg base template
TurboGears#turbogears web framework
Variables:
egg: DrunkenStein
elixir: False
identity: none
package: drunkenstein
project: DrunkenStein
sqlalchemy: True
sqlalchemyversion: SQLAlchemy>=0.4.3
sqlobject: False
Creating template tgbase
Creating directory ./DrunkenStein
Recursing into +einame+.egg-info
Creating ./DrunkenStein/DrunkenStein.egg-info/
Copying PKG-INFO to ./DrunkenStein/DrunkenStein.egg-info/PKG-INFO
/usr/local/lib/python2.6/dist-packages/Cheetah-2.4.2-py2.6.egg/Cheetah/Compiler.py:1509: UserWarning:
You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
"\nYou don't have the C version of NameMapper installed! "
Skipping file /usr/local/lib/python2.6/dist-packages/TurboGears-1.1-py2.6.egg/turbogears/qstemplates/qsbase/+einame+.egg-info/sqlobject.txt_tmpl
Recursing into +package+
Creating ./DrunkenStein/drunkenstein/
Copying __init__.py to ./DrunkenStein/drunkenstein/__init__.py
Copying release.py_tmpl to ./DrunkenStein/drunkenstein/release.py
Recursing into static
Creating ./DrunkenStein/drunkenstein/static/
Recursing into css
Creating ./DrunkenStein/drunkenstein/static/css/
Skipping file /usr/local/lib/python2.6/dist-packages/TurboGears-1.1-py2.6.egg/turbogears/qstemplates/qsbase/+package+/static/css/empty_tmpl
Recursing into images
Creating ./DrunkenStein/drunkenstein/static/images/
Copying favicon.ico to ./DrunkenStein/drunkenstein/static/images/favicon.ico
Copying tg_under_the_hood.png to ./DrunkenStein/drunkenstein/static/images/tg_under_the_hood.png
Copying under_the_hood_blue.png to ./DrunkenStein/drunkenstein/static/images/under_the_hood_blue.png
Recursing into javascript
Creating ./DrunkenStein/drunkenstein/static/javascript/
Skipping file /usr/local/lib/python2.6/dist-packages/TurboGears-1.1-py2.6.egg/turbogears/qstemplates/qsbase/+package+/static/javascript/empty_tmpl
Recursing into templates
Creating ./DrunkenStein/drunkenstein/templates/
Copying __init__.py to ./DrunkenStein/drunkenstein/templates/__init__.py
Copying MANIFEST.in_tmpl to ./DrunkenStein/MANIFEST.in
Creating template turbogears
Recursing into +package+
Copying command.py_tmpl to ./DrunkenStein/drunkenstein/command.py
Recursing into config
Creating ./DrunkenStein/drunkenstein/config/
Copying __init__.py to ./DrunkenStein/drunkenstein/config/__init__.py
Copying app.cfg_tmpl to ./DrunkenStein/drunkenstein/config/app.cfg
Copying log.cfg_tmpl to ./DrunkenStein/drunkenstein/config/log.cfg
Copying controllers.py_tmpl to ./DrunkenStein/drunkenstein/controllers.py
Copying json.py_tmpl to ./DrunkenStein/drunkenstein/json.py
Copying model.py_tmpl to ./DrunkenStein/drunkenstein/model.py
Recursing into static
Recursing into css
Skipping file /usr/local/lib/python2.6/dist-packages/TurboGears-1.1-py2.6.egg/turbogears/qstemplates/quickstart/+package+/static/css/login.css_tmpl
Copying style.css to ./DrunkenStein/drunkenstein/static/css/style.css
Recursing into images
Copying contentbg.png to ./DrunkenStein/drunkenstein/static/images/contentbg.png
Copying error.png to ./DrunkenStein/drunkenstein/static/images/error.png
Replace 1081 bytes with 3638 bytes (4/4 lines changed; 14 lines added)
Copying favicon.ico to ./DrunkenStein/drunkenstein/static/images/favicon.ico
Copying header_inner2.png to ./DrunkenStein/drunkenstein/static/images/header_inner2.png
Copying headerbg.png to ./DrunkenStein/drunkenstein/static/images/headerbg.png
Copying info.png to ./DrunkenStein/drunkenstein/static/images/info.png
Copying inputbg.png to ./DrunkenStein/drunkenstein/static/images/inputbg.png
Copying loginbg.png to ./DrunkenStein/drunkenstein/static/images/loginbg.png
Copying loginbottombg.png to ./DrunkenStein/drunkenstein/static/images/loginbottombg.png
Copying loginheader-left.png to ./DrunkenStein/drunkenstein/static/images/loginheader-left.png
Copying loginheader-right.png to ./DrunkenStein/drunkenstein/static/images/loginheader-right.png
Copying menu-item-actibg-first.png to ./DrunkenStein/drunkenstein/static/images/menu-item-actibg-first.png
Copying menu-item-actibg.png to ./DrunkenStein/drunkenstein/static/images/menu-item-actibg.png
Copying menu-item-border.png to ./DrunkenStein/drunkenstein/static/images/menu-item-border.png
Copying menubg.png to ./DrunkenStein/drunkenstein/static/images/menubg.png
Copying ok.png to ./DrunkenStein/drunkenstein/static/images/ok.png
Copying pagebg.png to ./DrunkenStein/drunkenstein/static/images/pagebg.png
Copying star.png to ./DrunkenStein/drunkenstein/static/images/star.png
Copying strype2.png to ./DrunkenStein/drunkenstein/static/images/strype2.png
./DrunkenStein/drunkenstein/static/images/tg_under_the_hood.png already exists (same content)
./DrunkenStein/drunkenstein/static/images/under_the_hood_blue.png already exists (same content)
Copying warning.png to ./DrunkenStein/drunkenstein/static/images/warning.png
Recursing into templates
Skipping file /usr/local/lib/python2.6/dist-packages/TurboGears-1.1-py2.6.egg/turbogears/qstemplates/quickstart/+package+/templates/login.html_tmpl
Copying master.html to ./DrunkenStein/drunkenstein/templates/master.html
Copying welcome.html to ./DrunkenStein/drunkenstein/templates/welcome.html
Recursing into tests
Creating ./DrunkenStein/drunkenstein/tests/
Copying __init__.py to ./DrunkenStein/drunkenstein/tests/__init__.py
Copying test_controllers.py_tmpl to ./DrunkenStein/drunkenstein/tests/test_controllers.py
Copying test_json.py_tmpl to ./DrunkenStein/drunkenstein/tests/test_json.py
Copying test_model.py_tmpl to ./DrunkenStein/drunkenstein/tests/test_model.py
Copying README.txt_tmpl to ./DrunkenStein/README.txt
Copying dev.cfg_tmpl to ./DrunkenStein/dev.cfg
Copying sample-prod.cfg_tmpl to ./DrunkenStein/sample-prod.cfg
Copying setup.py_tmpl to ./DrunkenStein/setup.py
Copying start-+package+.py_tmpl to ./DrunkenStein/start-drunkenstein.py
Copying test.cfg_tmpl to ./DrunkenStein/test.cfg
Running /usr/bin/python setup.py egg_info
running egg_info
writing requirements to DrunkenStein.egg-info/requires.txt
writing DrunkenStein.egg-info/PKG-INFO
writing top-level names to DrunkenStein.egg-info/top_level.txt
writing dependency_links to DrunkenStein.egg-info/dependency_links.txt
writing entry points to DrunkenStein.egg-info/entry_points.txt
writing paster_plugins to DrunkenStein.egg-info/paster_plugins.txt
reading manifest file 'DrunkenStein.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.kid' under directory 'drunkenstein/templates'
writing manifest file 'DrunkenStein.egg-info/SOURCES.txt'
おほっふぉおおっ!!
0 件のコメント:
コメントを投稿