##language:zh #pragma section-numbers on '''just want work in LEO with Chinese! but always error under Ubuntu ''' <> = Try Py2.5 for LEO = in Ubuntu 6.06.1 LTS at Dell LATITUDE D620 * just want usage LEO with good Cinese editing * in my mind Tcl/Tk 8.5 fixed Chinese Problem so try.. {{{ leo-4-4-3-alpha-2 build 1.131 Pmw.1.2 Python 2.5.1 Tk 8.5a6 Tcl 8.5a6 }}} * [[http://sourceforge.net/forum/forum.php?thread_id=1724164&forum_id=10227|disscus in SF.net]] == install Tcl/Tk == * base [[http://amsn.sourceforge.net/wiki/tiki-index.php?page=Installation+Instructions#tcl/tk|aMSN Installation Instructions]] * usage lftp download cvs snapshots from ftp://ftp.tcl.tk/pub/tcl/nightly-cvs/ * and compiling them: 1. install tcl:{{{ tcl/unix$ ./configure --enable-shared --enable-gcc $ make clean && make $ sudo make install ... tcl/unix$ sudo make install Installing libtcl8.5.so to /usr/local/lib/ Installing tclsh as /usr/local/bin/tclsh8.5 Installing tclConfig.sh to /usr/local/lib/ Installing libtclstub8.5.a to /usr/local/lib/ Installing message catalogs Creating msgs Making directory /usr/local/lib/tcl8.5/opt0.4 Making directory /usr/local/lib/tcl8.5/http1.0 Making directory /usr/local/lib/tcl8.5/encoding Installing header files Installing library files to /usr/local/lib/tcl8.5 Installing library http1.0 directory Installing package http 2.5.3 as a Tcl Module Installing library opt0.4 directory Installing package msgcat 1.4.2 as a Tcl Module Installing package tcltest 2.3a1 as a Tcl Module Installing package platform 1.0.2 as a Tcl Module Installing package platform::shell 1.1.3 as a Tcl Module Installing library encoding directory Installing and cross-linking top-level (.1) docs Installing and cross-linking C API (.3) docs Installing and cross-linking command (.n) docs }}} 1. install tk:{{{ /tk/unix$ ./configure --enable-xft $ make clean && make $ sudo make install ... tk/unix$ sudo make install Warning: tkStubInit.c may be out of date. Developers may want to run "make genstubs" to regenerate. This warning can be safely ignored, do not report as a bug! Warning: ttkStubInit.c may be out of date. Developers may want to run "make genstubs" to regenerate. This warning can be safely ignored, do not report as a bug! Making directory /usr/local/lib/tk8.5 Creating package index /usr/local/lib/tk8.5/pkgIndex.tcl Installing libtk8.5.so to /usr/local/lib/ Installing wish as /usr/local/bin/wish8.5 Installing tkConfig.sh to /usr/local/lib/ Installing libtkstub8.5.a to /usr/local/lib/ Making directory /usr/local/lib/tk8.5/images Making directory /usr/local/lib/tk8.5/msgs Making directory /usr/local/lib/tk8.5/ttk Installing header files Installing library files to /usr/local/lib/tk8.5 Installing library ttk directory Installing library images directory Installing translation directory Making directory /usr/local/lib/tk8.5/demos Making directory /usr/local/lib/tk8.5/demos/images Installing demos to /usr/local/lib/tk8.5/demos/ Installing demo images Installing and cross-linking top-level (.1) docs Installing and cross-linking C API (.3) docs }}} '''All OK''' == install Python2.5 == * base [[http://blog.csdn.net/fyzhao/archive/2006/12/27/1464614.aspx|Install Python2.5 (including tkinter)]] * at firt ,had to cp .so into default dir for Python install script usage{{{ $ sudo cp libtcl8.5.so /usr/lib/ $ sudo cp libtk8.5.so /usr/lib/ }}} * so so install Python2.5{{{ /python2.5-2.5.1.orig$ ./configure --enable-unicode=ucs4 \ --with-tk --with-tk-library=/usr/local/lib --with-tk-include=/usr/local/include/tcl8.5 \ --with-tcl-library=/usr/local/lib --with-tcl-include=/usr/local/include/tcl8.5 $ make clean && make $ make test ... 281 tests OK. 40 tests skipped: test_aepack test_al test_applesingle test_bsddb test_bsddb185 test_bsddb3 test_cProfile test_cd test_cl test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_dbm test_gdbm test_gl test_imgfile test_linuxaudiodev test_macfs test_macostools test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_profile test_scriptpackages test_socket_ssl test_socketserver test_startfile test_sunaudiodev test_sundry test_timeout test_urllib2net test_urllibnet test_winreg test_winsound test_zipfile64 6 skips unexpected on linux2: test_dbm test_gdbm test_bsddb test_profile test_sundry test_cProfile $ sudo make install }}} * notice that tkinter and install KO {{attachment:070427_install-py_tkinter_scrot.png}} * try Python2.5 is OK {{attachment:070427_py2.5-ok_scrot.png}} == try IDLE == * for test Tk is real support in Python2.5 running IDLE {{attachment:070427_py2.5-IDLE_scrot.png}} * good! == try LEO == * download LEO and install just scrip into `/opt/bin/` * runing as normal Python script: {{{ /opt/bin/leo-4.4.3a2/src$ python2.5 leo.py }}} * is OK {{attachment:070427_LEO-abt_scrot.png}} === always die === * but any copy or paste ... LEO will die * {{attachment:070427_LEO-die-ctrl-v_scrot.png}} '''What happen? and what can i do?!''' === leo4.4.2.1 is OK === {{attachment:070427_LEO4.4.2.1_scrot.png}} * but can not edit Chinese * `when Ctrl+space for call scim, there is always input space....` = comments = ::-- ZoomQuiet [<>]