= 2008-10-30 = * 根據 Orbited 的相依說明,我們會需要這幾個套件 * python2.5 - An interactive high-level object-oriented language (version 2.5) * [註一] ''用 Python 2.4 在執行 orbited 時會遇到一些 Runtime Error~'' * [註二] 由於安裝之後,Etch 預設還是用 Python2.4,很難改變預設 Runtime,因此網路上建議直接用 tarball 安裝。另一個解法就是升級到 lenny。 {{{ ~$ sudo apt-get -t lenny upgrade ~$ sudo apt-get -t lenny dist-upgrade }}} * python-setuptools - Python Distutils Enhancements * python-twisted - Event-based framework for internet applications (transitional package) * python-simplejson - Simple, fast, extensible JSON encoder/decoder for Python * 安裝 Orbited 相關套件 {{{ ~$ sudo apt-get install python-setuptools python-twisted python-simplejson ~$ wget http://pypi.python.org/packages/source/o/orbited/orbited-0.7.0.tar.gz ~$ tar zxvf orbited-0.7.0.tar.gz ~$ sudo easy_install orbited-0.7.0 ~$ sudo cp orbited-0.7.0/orbited.cfg /etc/ }}} * 測試 Orbited {{{ ~$ python >>> import orbited }}} * 如果沒有錯誤訊息就可以繼續跑測試了。參考[http://cometdaily.com/2008/10/10/scalable-real-time-web-architecture-part-2-a-live-graph-with-orbited-morbidq-and-jsio/ Scalable Real-Time Web Architecture, Part 2: A Live Graph with Orbited, MorbidQ, and js.io],我們在 Lenny 的環境下,成功重現這個範例。 {{{ ~$ wget }}}