mysql_fdw icon indicating copy to clipboard operation
mysql_fdw copied to clipboard

cannot install on Ubuntu 22.04

Open DavidBuch1 opened this issue 1 year ago • 1 comments

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!

DavidBuch1 avatar Dec 08 '23 22:12 DavidBuch1

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.

surajkharage19 avatar Dec 18 '23 06:12 surajkharage19