close
因為在Gentoo下emerge tools跟python都已經升級到2.6了。
但是Google App Engine 只支援pythone 2.5。
所以,自己去python 官網下了Python-2.5.5.tgz
tar xvf Python-2.5.5.tgz
peicheng@PCsNB ~/project/lab/Python-2.5.5 $ ./configure --prefix=/home/peicheng/project/lab/Python-2.5.5
peicheng@PCsNB ~/project/lab/Python-2.5.5 $ make && make install
把sdk的dev_appserver.py第一行改成
#!/home/peicheng/project/lab/Python-2.5.5/bin/python2.5
補充執行後可能會出現PIL image lib
Python Imaging Library (PIL)
http://www.pythonware.com/products/pil/
download tar xvf Imaging-1.1.7.tar.gz
vim setup.py modifiy file
36 TCL_ROOT = '/usr/lib'
37 JPEG_ROOT = '/usr/lib'
38 ZLIB_ROOT = '/usr/lib'
39 TIFF_ROOT = '/usr/lib'
40 FREETYPE_ROOT = '/lib'
41 LCMS_ROOT = None
~/project/lab/Python-2.5.5/bin/python2.5 setup.py build_ext -i
check ....
peicheng@PCsNB ~/project/lab/Imaging-1.1.7 $ ~/project/lab/Python-2.5.5/bin/python2.5 setup.py install
還有 ipaddr-py - Project Hosting on Google Code
http://code.google.com/p/ipaddr-py/
peicheng@PCsNB ~/project/lab $ wget http://ipaddr-py.googlecode.com/files/ipaddr-2.1.7.tar.gz
peicheng@PCsNB ~/project/lab $ tar xvf ipaddr-2.1.7.tar.gz
peicheng@PCsNB ~/project/lab $ cd ipaddr-2.1.7
peicheng@PCsNB ~/project/lab $ ~/project/lab/Python-2.5.5/bin/python2.5 setup.py install
全站熱搜
留言列表