Re: flex on win64 - workaround for "flex: fatal internal error, exec failed"

From: Brar Piening <brar(at)gmx(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: flex on win64 - workaround for "flex: fatal internal error, exec failed"
Date: 2011-07-04 06:36:49
Message-ID: 4E115F81.9020605@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Gould 2011-07-04 08:31:13 Re: Full GUID support
Previous Message Dave Page 2011-07-04 06:30:44 Re: Full GUID support