schrieb Craig Ringer:
I haven't managed to figure out exactly what's broken. For the benefit of anyone else having problems like this or who might find this via a search later, though: just install msys and use the current flex from msys. It works perfectly in Pg's build environment and it's easy to install, so you don't need to stuff around trying to get flex to work.

Grab mingw-get-inst from http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/ and use it to install msys and the minimalist mingw. You won't be using mingw, but it won't hurt you, and it's easier than installing msys standalone.

Edit src\tools\msvc\buildenv.pl (or create it if necessary) and use it to add C:\MinGW\msys\1.0\bin to your PATH. Adjust as appropriate if your MinGW install dir was different. Eg:

$ENV{PATH}='C:\MinGW\msys\1.0\bin;' .  $ENV{PATH};

As you might also want to use git for developing with postgres its possible that all you need is already in place.

As I use msysgit my usual way of dealing with flex and bison dependencies is putting "$ENV{PATH}=$ENV{PATH} . ';C:\Program Files (x86)\Git\bin';" into my buildenv.pl

Regards,

Brar



--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to