[erlang-questions] Building OTP 18.3 on OS X "ODBC library - header check failed"

Weston C westonc@REDACTED
Fri Oct 21 23:16:44 CEST 2016


On Thu, 18 Aug 2016 16:18:43 -0700 Weston C <westonc@REDACTED> wrote:
> From: Weston C <westonc@REDACTED>
> To: erlang-questions@REDACTED
> Subject: [erlang-questions] Building OTP 18.3 on OS X "ODBC library -
>         header  check failed"
> Message-ID:
>         <CAEpiCubXUCH2T6oa_AKthK=UEax_LsEhwpwvc+C4Lyo_EVxROg@REDACTED>
> Content-Type: text/plain; charset=UTF-8

> So I'm trying to build OTP 18.3 on OS X 10.9 Mavericks, and seem to be
> running into a problem where odbc libraries/headers aren't being
> found.

>
>     odbc           : ODBC library - header check failed
>
>
> I can verify that /usr/local/include contains iodbcext.h, iodbcunix.h,
> isqlext.h, sql.h, sqltypes.h, iodbcinst.h, isql.h, isqltypes.h,
> odbcinst.h, sqlext.h, sqlucode.h, so it definitely seems like the
> headers should be discoverable.

It turns out the cause of this is that at least around the time of
Mavericks, clang on OS X does not look in /usr and /usr/local for
headers (and probably libs) by default.

This can apparently be changed by running:

     xcode-select --install

See this stack overflow question:

     http://stackoverflow.com/questions/23905661/on-mac-g-clang-fails-to-search-usr-local-include-and-usr-local-lib-by-def



More information about the erlang-questions mailing list