EnterpriseDB / mysql_fdw

PostgreSQL foreign data wrapper for MySQL
Other
521 stars 160 forks source link

cannot install on Ubuntu 22.04 #283

Open DavidBuch1 opened 7 months ago

DavidBuch1 commented 7 months ago

Hi I have tried to install this by following your instructions, but I get this error: gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -I/usr/include/mysql -D _MYSQL_LIBNAME=\"libmysqlclient.so\" -I. -I./ -I/usr/include/postgresql/15/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o connection.o connection.c make: gcc: No such file or directory make: *** [: connection.o] Error 127

the path looks like: /etc/postgresql/15/main:/etc/mysql:/etc/mysql/conf.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

I'm not sure what I am missing here - your help would be appreciated

thanks!

surajkharage19 commented 6 months ago

Hi @DavidBuch1,

From the error looks like gcc is not available at your side. Please install gcc and make sure that gcc binary path is added into PATH variable.

Please try this and let us know feedback.