MySQL Forums
Forum List  »  MySQL Workbench

psqlODBC on macOS fails to build (sql.h not found)
Posted by: Steven Pollock
Date: February 24, 2020 10:12AM

Following your instructions here: https://dev.mysql.com/doc/workbench/en/wb-migration-database-postgresql-drivers-osx.html

To convert from postgresql to mysql with workbench

xcode command line tools insalled

OSx 10.14 (mojave)
psqlodbc-07.03.0100

CFLAGS="-arch i386 -arch x86_64" make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT info.lo -MD -MP -MF ".deps/info.Tpo" \
-c -o info.lo `test -f 'info.c' || echo './'`info.c; \
then mv ".deps/info.Tpo" ".deps/info.Plo"; \
else rm -f ".deps/info.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT info.lo -MD -MP -MF .deps/info.Tpo -c info.c -fno-common -DPIC -o info.lo
In file included from info.c:19:
./psqlodbc.h:41:10: fatal error: 'sql.h' file not found
#include <sql.h>
^~~~~~~
1 error generated.
make[1]: *** [info.lo] Error 1
make: *** [all] Error 2

Options: ReplyQuote


Subject
Views
Written By
Posted
psqlODBC on macOS fails to build (sql.h not found)
732
February 24, 2020 10:12AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.