Skip to content
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

Some prerequisites are not mentioned in README #311

Open
mlromramse opened this issue Aug 13, 2024 · 1 comment
Open

Some prerequisites are not mentioned in README #311

mlromramse opened this issue Aug 13, 2024 · 1 comment

Comments

@mlromramse
Copy link

Hi I am trying to compile and install this extension on postgresql 16.

Your prerequisites doesn't mention the need for postgresql.h, gcc, make and git. Although the last three might be implied, maybe a tip on that you need these too to be able to compile mysql_fdw. (There might be non programmers out there that want to use this nice Foreign Data Wrapper :) )

Further more I installed postgresql-server-dev-16 to resolve the postgresql.h issue and managed to compile mysql_fdw. However the installcheck ended up with 9 errors of 9 possible. Does these tests need something more than what is described in your README? I entered all Env vars.

After make and make install as documented it works although the installcheck still reports errors.

Finally libmysqlclient is needed to run the mysql_fdw after compilation. Good to know in case you are preparing a Docker image.

Best regards!

Mikael Larsson

@surajkharage19
Copy link

Hi @mlromramse,

Your prerequisites doesn't mention the need for postgresql.h, gcc, make and git. Although the last three might be implied, maybe a tip on that you need these too to be able to compile mysql_fdw. (There might be non programmers out there that want to use this nice Foreign Data Wrapper :) )

I think these are common prerequisites for any postgres extension, however feel free to submit the pull request for the same.

Further more I installed postgresql-server-dev-16 to resolve the postgresql.h issue and managed to compile mysql_fdw. However the installcheck ended up with 9 errors of 9 possible. Does these tests need something more than what is described in your README? I entered all Env vars.

There is a file called mysql_init.sh in the repo and you need to run this so that all required objects get created on MySQL side. Few commands exist in this file in a comment, so you need to manually run those on MySQL for the first time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants