(2005-09の一覧)
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Cygwin に screen インストール(リベンジ)
2005-09-25-3 / カテゴリ: [win][cygwin][screen] / [permlink]

[2005-06-09-1]の続き。なんとなく再チャレンジ。

configure: checking fifos...
- your fifos are usable
rm: cannot remove `conftest.exe': Permission denied
やっぱ同じところでエラーになり、conftest.exe が削除できない。
で、調べてみると、conftest プロセスが実行中で削除できないみたい。
rm は効かないが、mv は効くようなので、configure スクリプトで rm のところを mv に変えてみた。

変更点は、4263 行目付近の
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f /tmp/conftest*
の直後に
if [ -f conftest.exe ]; then
mv conftest.exe /tmp/zzz
fi
と追加。

すると、configure はとりあえず正常に終了した。

が、make すると、
hmiyazaki@chaource:/usr/local/src/screen-4.0.2$ make
CPP="gcc -E " srcdir=. sh ./osdef.sh
AWK=gawk CC="gcc -g -O2" srcdir=. sh ./comm.sh
AWK=gawk srcdir=. sh ./term.sh
gcc -c -I. -I.    -g -O2 screen.c
gcc -c -I. -I.    -g -O2 ansi.c
gcc -c -I. -I.    -g -O2 fileio.c
gcc -c -I. -I.    -g -O2 mark.c
gcc -c -I. -I.    -g -O2 misc.c
misc.c: In function `xsetenv':
misc.c:619: error: 関数 `setenv' への引数が少なすぎます
make: *** [misc.o] エラー 1

…続く orz
Referrer (Inside): [2007-03-16-1]

ck の起動
2005-09-25-2 / カテゴリ: [win][cygwin][アプリ] / [permlink]

単に ck.exe を起動すると bash は起動するが、PATH の設定が win の先にきてしまい、find や telnet あたりで cygwin のコマンドが実行されない。

ので、ck.exe の起動は
C:\cygwin\bin\bash.exe --login -c ck.exe
とした。
(ck.exe は /usr/local/bin/ck.exe にある)

起動が少し重くなった (/_-;

man で fgets: No such file or directory
2005-09-25-1 / カテゴリ: [win][cygwin] / [permlink]

いつのまにか man が全く使えなくなった。perldoc も使えん。
hmiyazaki@chaource:~$ man ls
Unrecognized line in config file (ignored)
KNROFF          /usr/bin/groff -Tkorean -mandoc
Unrecognized line in config file (ignored)
KNEQN           /usr/bin/eqn -Tkorean
fgets: No such file or directory
Error reading man page /usr/share/man/man1/ls.1.gz
No manual entry for ls
groff や man やら reinstall してみてもとくに変化なし。

検索すると、http://www.okisoft.co.jp/esc/cygwin-7.html こんなページを発見。エラーメッセージもほぼ同等。
設定ファイルは,原則として最初にインストールされたものが使われます。パッケージを更新したとき,昔のままの設定ファイルが不具合を起こすことがあります。最近の例では,10 月に man パッケージが man-1.5o-1 に更新されたとき,この現象が起こりました。更新後,man コマンド実行のたびにエラーメッセージが表示されるようになったのです。

というわけで、/etc/defaults/usr/share/misc/man.conf を /usr/share/misc/man.conf にコピー。
すると、
Unrecognized line in config file (ignored)
KNROFF          /usr/bin/groff -Tkorean -mandoc
Unrecognized line in config file (ignored)
KNEQN           /usr/bin/eqn -Tkorean
は出力されなくなり、
hmiyazaki@chaource:~$ man ls
fgets: No such file or directory
Error reading man page /usr/share/man/man1/ls.1.gz
No manual entry for ls
って、fgets のエラーってなんだよ… そんなファイルかディレクトリねーよって、意味わかんねーし。
よくわからんので strace してみたがやはりよくわからん。
(man のトレースは pid がわからんので、bash をトレース。てか、cygwin にも strace あるのね)

で、ためしに違うもので man してみると
hmiyazaki@chaource:/bin$ man less
Error executing formatting or display command.
System command (cd "/usr/man" && (echo ".pl 1100i"; /usr/bin/cat '/usr/man/man1/less.1'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/tbl | /usr/bin/nroff -c
-mandoc 2>/dev/null | /usr/bin/less -isrR) exited with status 127.
No manual entry for less
って感じ。
まぁ、これなら調べられないこともないかと、System command 以下を手で実行してみる。
すると、/usr/bin/nroff がコケる。
bash: /usr/bin/nroff: /bin/sh: bad interpreter: No such file or directory
というわけで /usr/bin/nroff を見るが、1行目は特におかしいところなし。
で、いろいろ見てたら、/bin/sh がない… なんでだろ。

とりあえず、
$ cd /bin
$ ln -s bash.exe sh.exe
したら、全て直った。
perldoc も。
前の日 / 次の日 / 最新 / 2005-09

2013 : 01 02 03 04 05 06 07 08 09 10 11 12
2012 : 01 02 03 04 05 06 07 08 09 10 11 12
2011 : 01 02 03 04 05 06 07 08 09 10 11 12
2010 : 01 02 03 04 05 06 07 08 09 10 11 12
2009 : 01 02 03 04 05 06 07 08 09 10 11 12
2008 : 01 02 03 04 05 06 07 08 09 10 11 12
2007 : 01 02 03 04 05 06 07 08 09 10 11 12
2006 : 01 02 03 04 05 06 07 08 09 10 11 12
2005 : 01 02 03 04 05 06 07 08 09 10 11 12
2004 : 01 02 03 04 05 06 07 08 09 10 11 12

最終更新時間: 2013-05-02 16:12