Closed KES777 closed 8 years ago
Hi,
On 2016-04-09 01:49:59 -0700, Eugen Konkov wrote:
When
flex
is installed but PostgreSQL was build without 'flex' support I can not build Citus.How to reproduce:
- remove flex and posgres from system
- build posgres from sources and install
- install flex into system
- configure and make Citus
ERROR:
flex' is missing on your system. It is needed to create the file
psqlscan.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[1]: * [psqlscan.c] Error 1 make[1]: Leaving directory `/home/kes/work/build/citus/src/bin/csql' make: * [csql] Error 2
Why is this a problem? We could carry psqlscan.c instead of .l in the sourcetree, but I'm not seeing the benefit?
Regards,
Andres
It is not clear what to do. I have install the 'flex' on the system and get this error any way.
In this situation I should rebuild whole PostgreSQL instance with 'flex' and then rebuild citus.
Maybe you should to check postgresql while ./configure
to see that postgresql is builded with 'flex' so citus build will complete without error. In other case you should error about 'flex' is not supported by/compiled with postgresql and so do not allow citus building.
Hm, we can just add a PGAC_PATH_FLEX invocation to configure.in.
@byucesoy reported running into this when following the Ubuntu installation instructions on our website. Burak, could you include details (including Ubuntu version) to reproduce this issue?
I'm temporarily assigning this issue to @byucesoy not to lose track.
I encountered with this issue with Ubuntu 14.04 + Postgresql 9.5.2
On a newly formatted machine;
Installed required packagesfor Postgresql (i.e. libreadline, zlib1g-dev, bison) but not flex Build and install Postgresql Build Citus (This step fails due to missing flex) Install flex Build Citus (This step also fails due to missing flex) Re-configure, build, install Postgresql *Build Citus (This succeeds)
When
flex
is installed but PostgreSQL was build without 'flex' support I can not build Citus.How to reproduce: