前に戻る??|次をみる。 ??|slackware9.1に ついて に戻る
kterm の 入手 と設定
まず適当に 場所を 設定
root@nyan:~# cd /usr/local/src/
root@nyan:/usr/local/src# mkdir kterm
root@nyan:/usr/local/src# cd kterm/
別の ディスクより もらう
root@nyan:/usr/local/src/kterm\
# mv /mnt/home/nytarou/f_bkdata/kterm-6.2.0.tar.gz .
root@nyan:/usr/local/src/kterm# ls -l
total 196
-rw------- 1 nytarou \
users 200448 Dec 12 12:32 kterm-6.2.0.tar.gz
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
展開しよう
root@nyan:/usr/local/src/kterm\
# tar zxvf kterm-6.2.0.tar.gz
root@nyan:/usr/local/src/kterm# ls -l
total 198
drwxr-xr-x 2 1010 \
1000 1192 Jul 12 1996 kterm-6.2.0/
-rw------- 1 nytarou \
users 200448 Dec 12 12:32 kterm-6.2.0.tar.gz
移動して 前準備 以下 ここから の ものそのままです ありがとうございま
す
http://www.h5.dion.ne.jp/~ir-hiro/linux/index.html
root@nyan:/usr/local/src/kterm\
# cd kterm-6.2.0/
root@nyan:/usr/local/src/kterm/kterm-6.2.0\
# cp main.c main.c_og
root@nyan:/usr/local/src/kterm/kterm-6.2.0\
# cp screen.c screen.c_og
root@nyan:/usr/local/src/kterm/kterm-6.2.0\
# cp scrollbar.c scrollbar.c_og
root@nyan:/usr/local/src/kterm/kterm-6.2.0\
# vi main.c
root@nyan:/usr/local/src/kterm/kterm-6.2.0\
# vi screen.c
root@nyan:/usr/local/src/kterm/kterm-6.2.0\
# vi scrollbar.c
root@nyan:/usr/local/src/kterm/kterm-6.2.0\
# diff -s main.c main.c_og
136d135
< #include
root@nyan:/usr/local/src/kterm/kterm-6.2.0\
# diff -s screen.c screen.c_og
49c49
< /*extern Char *calloc(), *malloc(), *realloc();*/
---
> extern Char *calloc(), *malloc(), *realloc();
root@nyan:/usr/local/src/kterm/kterm-6.2.0\
# diff -s scrollbar.c scrollbar.c_og
327c327
< /* Char *realloc(), *calloc();*/
---
> Char *realloc(), *calloc();
===============
これらは ネットの 中の もの そのまま 真似ただけ
root@nyan:/usr/local/src/kterm/kterm-6.2.0# xmkmf -a
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
make Makefiles
make: Nothing to be done for `Makefiles'.
make includes
make: Nothing to be done for `includes'.
make depend
gccmakedep -- -I/usr/X11R6/include -Dlinux -D__i386__ \
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE \
-D_BSD_SOURCE -D_SVID_SOURCE -DNO_MESSAGE_CATALOG -DFUNCPROTO=15 \
-DNARROWPROTO -DKTERM -DSTATUSLINE -DKEEPALIVE \
-- button.c charproc.c cursor.c data.c input.c \
main.c menu.c misc.c screen.c scrollbar.c tabs.c \
util.c VTPrsTbl.c gset.c convert.c xim.c \
kinput2.c convlib.c
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
次は make だそうです
root@nyan:/usr/local/src/kterm/kterm-6.2.0# make
rm -f kterm._man
cd `dirname kterm` && \
ln -s `basename kterm.man` `basename kterm._man`
rm -f kterm.1x.html kterm.1x-html
rman -f HTML < kterm._man \
> kterm.1x-html && mv -f kterm.1x-html kterm.1x.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
これも 良くわからないが
root@nyan:/usr/local/src/kterm/kterm-6.2.0# make DESTDIR=$PWD/tmp install
+ mkdir -p /usr/local/src/kterm/kterm-6.2.0/tmp/usr/X11R6/bin
install -c -m 4711 \
kterm /usr/local/src/kterm/kterm-6.2.0/tmp/usr/X11R6/bin/kterm
+ mkdir -p /usr/local/src/kterm/kterm-6.2.0/tmp/usr/X11R6/lib/X11/.
+ mkdir -p /usr/local/src/kterm/kterm-6.2.0/tmp/etc/X11/app-defaults
install -c -m 0444 \
KTerm.ad /usr/local/src/kterm/kterm-6.2.0/tmp/usr/X11R6/lib/X11\
/app-defaults/KTerm
install in . done
~~~~~~~~~~~~~~~~~~~~~~~
これも まねた だけ
root@nyan:/usr/local/src/kterm/kterm-6.2.0# make DESTDIR=$PWD/tmp install.man
+ mkdir -p /usr/local/src/kterm/kterm-6.2.0/tmp/usr/X11R6/lib/X11/doc/html
+ install -c -m 0444 kterm.1x.html \
/usr/local/src/kterm/kterm-6.2.0/tmp/usr/X11R6/lib/X11/doc/html/kterm.1.html
+ mkdir -p /usr/local/src/kterm/kterm-6.2.0/tmp/usr/X11R6/man/man1
install -c -m 0444 kterm._man /usr/local/src/kterm/kterm-6.2.0\
/tmp/usr/X11R6/man/man1/kterm.1x
install.man in . done
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
はい移動しましょう
root@nyan:/usr/local/src/kterm/kterm-6.2.0# cd tmp
root@nyan:/usr/local/src/kterm/kterm-6.2.0/tmp# mkdir install
root@nyan:/usr/local/src/kterm/kterm-6.2.0/tmp# vi install/slack-desc
wrote install/slack-desc, 4 lines, 66 chars
root@nyan:/usr/local/src/kterm/kterm-6.2.0/tmp# cat install/slack-desc
kterm:Non make Kterm-6.2.0
kterm:
kterm:Kterm-6.2.0.tar.gz
kterm:
============================
root@nyan:/usr/local/src/kterm/kterm-6.2.0/tmp\
# makepkg -l y -c n kterm-6.2.0-i386-1.tgz
Renaming kterm-6.2.0-i386-1.tar.gz to kterm-6.2.0-i386-1.tgz...
Package creation complete.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
root@nyan:/usr/local/src/kterm/kterm-6.2.0/tmp\
# installpkg kterm-6.2.0-i386-1.tgz
Installing package kterm-6.2.0-i386-1...
PACKAGE DESCRIPTION:
kterm:Non make Kterm-6.2.0
kterm:
kterm:Kterm-6.2.0.tar.gz
kterm:
Executing install script for kterm-6.2.0-i386-1...
root@nyan:/usr/local/src/kterm/kterm-6.2.0/tmp# exit
此処までで インストール は 終わりです 調整必要です まず .bashrc を 調整 第一段階
nytarou@nyan:~$ echo "export LANG=ja_JP.eucJP">.bashrc
nytarou@nyan:~$ echo "export TERM=kterm">>.bashrc
nytarou@nyan:~$ cat .bashrc
export LANG=ja_JP.eucJP
export TERM=kterm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Exchange termcap;; termcap を 交換 します
nytarou@nyan:~$ su -
Password:
root@nyan:~# cd /etc/
root@nyan:/etc# ls -l | grep term
-rw-r--r-- 1 root root 8757 May 30 2002 termcap
-rw-r--r-- 1 root root 706385 Mar 3 2000 termcap-BSD
-rw-r--r-- 1 root root 8757 May 30 2002 termcap-Linux
root@nyan:/etc# diff -s termcap termcap-Linux
Files termcap and termcap-Linux are identical
root@nyan:/etc# cp termcap-BSD termcap
~~~~~~~~~~~~~~~~~~~~~~
一応 此処まで
闇雲に行ったが ”xmkmf”、 ”makepkg -l y -c n”、”installpkg ”のよ うな 手順 理解せねばなんねい!拝!!!
前に戻る??|次をみる。??|slackware9.1 に ついて に戻る
Copyright © 2004.-2007. nyantarou All Rights Reserved.