Estoy tratando de trabajar en postgresql localmente con ubuntu 10.04. Me sale este error después de que configure conUbuntu: cómo instalar flex para hacer postgres?
./configure --enable-cassert --enable-debug --prefix=$HOME/pgsql
cuando hago & & make install me sale este error:
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
Me trataron de
apt-get install flex
pero me da el mismo error. ¿Cómo puedo instalar Flex para que funcione?
Necesito poder editar la fuente de pg y luego volverla a – James
¿Qué error obtienes cuando ejecutas: 'sudo apt-get install flex'? Por favor, incluye exactamente lo que apt devuelve. –
Se instala correctamente: desempaquetado flexible (de .../flex_2.5.35-9_i386.deb) ... Activadores de procesamiento para información de instalación ... Activadores de procesamiento para man-db ... Configuración de flex (2.5 .35-9) ... pero obtengo el mismo error cuando intento hacer && make install – James