just want work in LEO with Chinese! but always error under Ubuntu
Contents
1. 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
1.1. install Tcl/Tk
usage lftp download cvs snapshots from ftp://ftp.tcl.tk/pub/tcl/nightly-cvs/
- and compiling them:
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
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
- and compiling them:
All OK
1.2. install Python2.5
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
- try Python2.5 is OK
1.3. try IDLE
- for test Tk is real support in Python2.5 running IDLE
- good!
1.4. 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
1.4.1. always die
- but any copy or paste ... LEO will die
What happen? and what can i do?!
1.4.2. leo4.4.2.1 is OK
- but can not edit Chinese
when Ctrl+space for call scim, there is always input space....
2. comments
::-- ZoomQuiet [2007-04-27 09:23:14]