【发布时间】:2011-04-19 04:21:32
【问题描述】:
我正在尝试使用 ubuntu 10.04 在本地处理 postgresql。配置后出现此错误
./configure --enable-cassert --enable-debug --prefix=$HOME/pgsql
当我 make && make install 我得到这个错误:
make -C parser all
make[3]: Entering directory `/home/james/school/db/pg-stuff/hw1/postgresql-8.4.2/src/backend/parser'
ERROR: `flex' is missing on your system. It is needed to create the
file `scan.c'. You can either get flex from a GNU mirror site
or download an official distribution of PostgreSQL, which contains
pre-packaged flex output.
make[3]: *** [scan.c] Error 1
make[3]: Leaving directory `/home/james/school/db/pg-stuff/hw1/postgresql-8.4.2/src/backend/parser'
make[2]: *** [parser-recursive] Error 2
make[2]: Leaving directory `/home/james/school/db/pg-stuff/hw1/postgresql-8.4.2/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/james/school/db/pg-stuff/hw1/postgresql-8.4.2/src'
make: *** [all] Error 2
我试过
apt-get install flex 但我得到了同样的错误。我怎样才能安装 flex 以便它可以工作?
【问题讨论】:
标签: postgresql ubuntu flex-lexer