前に戻る??|次をみる。 ??|slackware9.1に ついて に戻る


kinput2 に ついて

今度は kinput2 です

kinput2 の 入手 と設定

nytarou@nyan:~$ su -
Password: 
root@nyan:~# cd /usr/local/src/
root@nyan:/usr/local/src# mkdir kinput
root@nyan:/usr/local/src# cd kinput/

root@nyan:/usr/local/src/kinput# mv /mnt/home/nytarou/f_bkdata/kinput2-v3.1.tar.gz .
root@nyan:/usr/local/src/kinput# ls -l
total 504
-rw-------    1 nytarou       users      512177 Dec 12 14:55
kinput2-v3.1.tar.gz

展開しましょう

root@nyan:/usr/local/src/kinput# tar zxvf kinput2-v3.1.tar.gz
root@nyan:/usr/local/src/kinput# ls -l
total 505
drwxr-xr-x    9 1761     1000          360 Oct  3  2002 kinput2-v3.1/
-rw-------    1 nytarou       users      512177 Dec 12 14:55
kinput2-v3.1.tar.gz

移動して 設定 ファイルを 編集しましょう

root@nyan:/usr/local/src/kinput# cd kinput2-v3.1/
root@nyan:/usr/local/src/kinput/kinput2-v3.1# cp Kinput2.conf Kinput2.conf_og
root@nyan:/usr/local/src/kinput/kinput2-v3.1# vi Kinput2.conf
root@nyan:/usr/local/src/kinput/kinput2-v3.1\
# diff -s Kinput2.conf Kinput2.conf_og  
21c21
< XCOMM #define UseSj3          /* define if you are going to use Sj3 */
---
> #define UseSj3                /* define if you are going to use Sj3 */
44c44
< XCOMM CCDEF_DIR = $(LIBDIR)/ccdef
---
> CCDEF_DIR = $(LIBDIR)/ccdef
63,65c63,65
< XCOMM WNNSRC = $(CONTRIBSRC)/programs/Xsi/Wnn
< XCOMM WNNINCDIR = $(WNNSRC)/include
< XCOMM WNNLIB = $(WNNSRC)/jlib/libwnn.a
---
> WNNSRC = $(CONTRIBSRC)/programs/Xsi/Wnn
> WNNINCDIR = $(WNNSRC)/include
> WNNLIB = $(WNNSRC)/jlib/libwnn.a
81,83c81,83
< CANNAINSTDIR = /usr
< CANNASRC = $(CANNAINSTDIR)/include
< CANNALIB = -lcanna16
---
> XCOMM CANNAINSTDIR = /usr/local/canna
> XCOMM CANNASRC = $(CANNAINSTDIR)/include
> XCOMM CANNALIB = -lcanna16
90c90
< CANNASRC = /usr/local/src/canna/Canna36p4
---
> CANNASRC = $(CONTRIBSRC)/programs/Canna32
103c103
< XCOMM SJ3DEF_DIR = $(LIBDIR)/sj3def
---
> SJ3DEF_DIR = $(LIBDIR)/sj3def
120,121c120,121
< XCOMM SJ3SRC = $(CONTRIBSRC)/programs/sj3
< XCOMM SJ3LIB = $(SJ3SRC)/sj3lib/libsj3lib.a
---
> SJ3SRC = $(CONTRIBSRC)/programs/sj3
> SJ3LIB = $(SJ3SRC)/sj3lib/libsj3lib.a
137c137
< XCOMM ATOKLIB = -latok12n -latok12util
---
> ATOKLIB = -latok12n -latok12util
153c153
< XCOMM TRANSPORTDEFS = 
---
> TRANSPORTDEFS = 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

canna の 在処の確認

root@nyan:/usr/local/src/kinput/kinput2-v3.1# ls -l /usr/local/src/canna/
total 1429
drwxr-xr-x   14 1001     games         784 Dec 15 12:47 Canna36p4/
-rw-------    1 root     root          887 Dec 12 13:58 Canna36p4-conf.patch.gz
-rw-------    1 root     root      1455672 Dec 12 13:58 Canna36p4.tar.gz
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

残念ながら 編集方法 は わからない 唯真似るだけ

xmkmf です

root@nyan:/usr/local/src/kinput/kinput2-v3.1# xmkmf
imake -DUseInstalled -I/usr/X11R6/lib/X11/config

注意事項 =============Caution Not Makefile ;;Makefiles : plural

root@nyan:/usr/local/src/kinput/kinput2-v3.1# make Makefiles
making Makefiles in lib...
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1'
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1'
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/lib'
making Makefiles in lib/imlib...
make[2]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/lib'
make[2]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/lib'
make[2]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/lib/imlib'
make[2]: Nothing to be done for `Makefiles'.
make[2]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/lib/imlib'
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/lib'
making Makefiles in cmd...
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1'
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1'
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/cmd'
make[1]: Nothing to be done for `Makefiles'.
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/cmd'
making Makefiles in ccdef...
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1'
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1'
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/ccdef'
make[1]: Nothing to be done for `Makefiles'.
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/ccdef'
making Makefiles in sj3def...
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1'
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1'
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/sj3def'
make[1]: Nothing to be done for `Makefiles'.
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/sj3def'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

make depend です

root@nyan:/usr/local/src/kinput/kinput2-v3.1# make depend
depending in ./lib...
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/lib'
gccmakedep  -- -I../include -Iimlib  -I/usr/local/src/canna/Canna36p4     -I/usr/X11R6/i
lude    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_
D_SOURCE -D_SVID_SOURCE    -DNO_MESSAGE_CATALOG -DFUNCPROTO=15 -DNARROWPROTO        -- A
ptedShe.c AuxPanel.c CandPanel.c Canvas.c             CanvasShel.c ConvCtrl.c ConvDisp.c
onvMgr.c             ICLabel.c InputConv.c KIProto.c OffConv.c             OverConv.c On
nv.c WcharDisp.c XimpProto.c IMProto.c cachedatom.c cachedfont.c ctext.c dispatch.c     
      fontset.c wstring.c xtwstr.c xwstr.c             asyncerr.c fontbank.c parsekey.c 
ecall.c                      Canna.c  
depending in lib/imlib...
make[2]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/lib/imlib'
gccmakedep  -- -I../../include -I.   -I/usr/X11R6/include    -Dlinux -D__i386__ -D_POSIX
_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE    -DNO_MES
GE_CATALOG -DFUNCPROTO=15 -DNARROWPROTO    -DXIM_BC   -- imattr.c imbuf.c imconv.c imdat
c imdispatch.c              imic.c improto.c imrequest.c imxport.c
make[2]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/lib/imlib'
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/lib'
depending in ./cmd...
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/cmd'
gccmakedep  -- -I../include -I..   -I/usr/X11R6/include    -Dlinux -D__i386__ -D_POSIX_C
OURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE    -DNO_MESSA
_CATALOG -DFUNCPROTO=15 -DNARROWPROTO     -DUSE_CANNA    -- kinput2.c
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/cmd'
depending in ./ccdef...
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/ccdef'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/ccdef'
depending in ./sj3def...
make[1]: Entering directory `/usr/local/src/kinput/kinput2-v3.1/sj3def'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/local/src/kinput/kinput2-v3.1/sj3def'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

make から 一連の作業です

root@nyan:/usr/local/src/kinput/kinput2-v3.1# make
root@nyan:/usr/local/src/kinput/kinput2-v3.1# make DESTDIR=$PWD/tmp install
root@nyan:/usr/local/src/kinput/kinput2-v3.1# make DESTDIR=$PWD/tmp install.man
root@nyan:/usr/local/src/kinput/kinput2-v3.1# cd tmp/
root@nyan:/usr/local/src/kinput/kinput2-v3.1/tmp# mkdir install
root@nyan:/usr/local/src/kinput/kinput2-v3.1/tmp# vi install/slack-desc

wrote install/slack-desc, 4 lines, 72 chars
root@nyan:/usr/local/src/kinput/kinput2-v3.1/tmp# cat install/slack-desc 
kinput2: Non make kinput2
kinput2
kinput2: kinput2-v3.1.tar.gz
kinput2:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

makepkg -l y -c n

root@nyan:/usr/local/src/kinput/kinput2-v3.1/tmp# makepkg -l y -c n kinput2-v3.1-i386-1.tgz
Renaming kinput2-v3.1-i386-1.tar.gz to kinput2-v3.1-i386-1.tgz...

Package creation complete.

~~~~~~~~~~~~~~~~~~~~~~~~~~~

installpkg

root@nyan:/usr/local/src/kinput/kinput2-v3.1/tmp# installpkg kinput2-v3.1-i386-1.tgz
Installing package kinput2-v3.1-i386-1... 
PACKAGE DESCRIPTION:
kinput2: Non make kinput2
kinput2: kinput2-v3.1.tar.gz
kinput2:
Executing install script for kinput2-v3.1-i386-1...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

一応 此処まで

闇雲に行ったが ”xmkmf”、 ”makepkg -l y -c n”、”installpkg ”のよ うな 手順 理解せねばなんねい!拝!!!


前に戻る??|次をみる。??|slackware9.1 に ついて に戻る

Copyright © 2004.-2007. nyantarou All Rights Reserved.