[PHP-users 1754] PHP-4.0.6のインストール(Cobalt RaQ2)

Rikio Watanabe php-users@php.gr.jp
Mon, 03 Sep 2001 17:01:23 +0900


渡辺@新潟です。

今、Cobalt RaQ2にPHP-4.0.6をインストールしようとしていますが、
エラーが発生してしまいます。
(カーネルのバージョンは、2.0.34C52_SKです)

解決方法をご存知の方がおられましたら、お願いします。

 ./configure --with-pgsql --with-apxs=/usr/sbin/apxs --enable-trans-sid
  --enable-track-vars  (1行で入力しています)

を実行すると、

 loading cache ./config.cache
 checking for a BSD compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking whether make sets ${MAKE}... yes
 checking for working aclocal... found
 checking for working autoconf... found
 checking for working automake... found
 checking for working autoheader... found
 checking for working makeinfo... found
 checking whether to enable maintainer-specific portions of
Makefiles... no
 checking host system type... mipsel-unknown-linux-gnu
 checking for gawk... gawk
 checking for bison... bison -y
 checking bison version... 1.25 (ok)
 checking for gcc... gcc
 checking whether the C compiler (gcc  ) works... yes
 checking whether the C compiler (gcc  ) is a cross-compiler... no
 checking whether we are using GNU C... yes
 checking whether gcc accepts -g... yes
 checking how to run the C preprocessor... gcc -E
 checking for AIX... no
 checking for gcc option to accept ANSI C... none needed
 checking for ranlib... ranlib
 checking whether gcc and cc understand -c and -o together... yes
 checking whether ln -s works... yes
 checking for flex... lex
 checking for yywrap in -ll... no
 checking lex output file root... ./configure: lex: command not found
 configure: error: cannot find output from lex; giving up

と表示されます。
lexというコマンドが無いのですが、このファイルはどこから
入手すればよいでしょうか?

(他のLinuxサーバでは、flexというコマンドへのシンボリック・リンクが張ら
れていましたが)