-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to install mysql_fdw #284
Comments
apt-get install gcc |
Hi So it looks as if its confusing the two? this is the path /usr/include/postgresql/15/server:/usr/include/postgresql/15/server:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin thanks!! |
Why don't you use PostgreSQL APT repository? https://wiki.postgresql.org/wiki/Apt It has mysql_fdw . No need to compile. It may even also be included in Ubuntu. FWIW, you also need the development libraries of mysql and PostgreSQL to compile mysql_fdw. I'm not an Ubuntu user, don't remember the exact package names, but IIRC PostgreSQL package name is postgresql-server-dev or something. |
We already have postgres installed and running. This is a production server, so I cannot just reinstall stuff. we have the exact same installation on our development server apart from Postgres 16. |
ok, so I have resolved the issue by completely removing and purging postgres 16. Once I did that, then the makefile ran perfectly, so there seems to be a problem with running this script with two versions of postgres on the same machine (ubuntu 22.045) |
I'm getting the exact same issue... but mine is inside a docker container. We then manually install the
|
Hi @AdamKearn, I am not sure what exact error you are getting here. I can see the above discussion has talked about 2 different errors. Do you have the same environment? As Devrim suggested above, Why don't you use PostgreSQL APT repository instead of supabase/postgres:15.1.0.54-rc0? |
Hi @AdamKearn, So, I added packages for llvm-11 and clang-11 to Dockerfile and could build the image using dockerfile. RUN apt-get update && apt-get install -y --no-install-recommends clang-11 llvm-11 |
Hi
I am trying to install this on Ubuntu 22.04 for mysql 8.0.35, but I am getting 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: Not a directory
make: *** [: connection.o] Error 127
I have installed the c API I think - its not very clear which packages I need .
(Postgres version 15)
Your help/advice would be most appreciated
thanks!
The text was updated successfully, but these errors were encountered: