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

Makefile:48: ../../src/Makefile.global: No such file or directory #32

Open
wonb168 opened this issue Jul 21, 2024 · 1 comment
Open

Comments

@wonb168
Copy link

wonb168 commented Jul 21, 2024

when I clone , and then make install, error:

Makefile:48: ../../src/Makefile.global: No such file or directory

my pc is Mac M1, and postgres is v16,

why? and how to solve it, thanks!

@JulmeTran
Copy link

We need information on the environment and the method used for your issue. Please share them with us.
Below are the general steps for building an FDW:

  1. Build and install PostgreSQL:

    • Prepare source code of PostgreSQL
    • Build and install PostgreSQL
      • Move to postgresql directory
      • ./configure --prefix=$(pwd)/install
      • make && make install
  2. Build and install FDW in two ways: inside or outside source tree of PostgreSQL
    First, prepare requirement for building FDW - refer https://github.com/pgspider/parquet_s3_fdw#installation
    And then, you can use either of the following methods to build FDW:

    • Method 1. In the source tree of PostgreSQL:

      • Move to contrib folder of postgresql
      • Clone source code FDW
      • make install
    • Method 2. Outside the source tree of PostgreSQL:

      • Clone source code FDW
      • make install USE_PGXS=1 PG_CONFIG=/path/to/pg_config

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