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

What package dependencies do I need to install to have uuid-ossp #85

Open
bolek opened this issue Dec 10, 2024 · 3 comments
Open

What package dependencies do I need to install to have uuid-ossp #85

bolek opened this issue Dec 10, 2024 · 3 comments

Comments

@bolek
Copy link

bolek commented Dec 10, 2024

I keep running into this on new macbooks, went through all the issues here related to uuid and still cannot get it to work.

Recently it has been with Postgres 16.2.

Here is my config:

export LDFLAGS="-L/opt/homebrew/opt/libxml2/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libxml2/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/icu4c/lib/pkgconfig"

export PGENV_CONFIGURE_OPTIONS=(
  --with-uuid=e2fs
  --with-openssl
  'CMAKE_PREFIX_PATH=/opt/homebrew/opt/icu4c'
  'PKG_CONFIG_PATH=/opt/homebrew/opt/icu4c/lib/pkgconfig'

  'CFLAGS=-I/opt/homebrew/Cellar/openssl@3/3.2.1/include'
  'LDFLAGS=-L/opt/homebrew/Cellar/openssl@3/3.2.1/lib'
)

I am not seeing any errors, but the compiled postgres version does not come with ossp-uuid extension :(

Any ideas what I am doing wrong? Am I missing some dependencies? macos should be coming with libuuid and support e2fs.

@theory
Copy link
Owner

theory commented Dec 10, 2024

Try moving those exports to PGENV_CONFIGURE_OPTIONS:

export PGENV_CONFIGURE_OPTIONS=(
  --with-uuid=e2fs
  --with-openssl
  'CMAKE_PREFIX_PATH=/opt/homebrew/opt/icu4c'
  'PKG_CONFIG_PATH=/opt/homebrew/opt/icu4c/lib/pkgconfig'

  'CFLAGS=-I/opt/homebrew/Cellar/openssl@3/3.2.1/include'
  'LDFLAGS=-L/opt/homebrew/Cellar/openssl@3/3.2.1/lib -L/opt/homebrew/opt/libxml2/lib'

  'CPPFLAGS="-I/opt/homebrew/opt/libxml2/include"'
  'PKG_CONFIG_PATH="/opt/homebrew/opt/icu4c/lib/pkgconfig"'
)

Although I don't see that they specify where to find ossp-uuid. Note that you need to create that extension to use it:

CREATE EXTENSION "uuid-ossp";

@bolek
Copy link
Author

bolek commented Dec 10, 2024

Very much appreciate the quick response!

Will give that shot.

When I try to create the extension in postgres I get:

CREATE EXTENSION "uuid-ossp";

** (Postgrex.Error) ERROR 0A000 (feature_not_supported) extension "uuid-ossp" is not available

    hint: The extension must first be installed on the system where PostgreSQL is running.

Could not open extension control file "/Users/silvia/.pgenv/pgsql-16.2/share/extension/uuid-ossp.control": No such file or directory.

I am not seeing uuid-ossp amongst the installed extensions. Which led me that think that during the build postgres is not finding the libraries. Yet then I am not seeing anything in the logs related to uuid-ossp.

I am aware this is probably more of a postgres problem rather than pgenv.
Just thought that folks might have ran into this here.

historical related issues: #30

@bolek bolek changed the title What package dependencies do I need to install to have oss-uuid What package dependencies do I need to install to have uuid-ossp Dec 10, 2024
@fluca1978
Copy link
Collaborator

what is the output of the configuration step?

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

3 participants