asdf-postgres icon indicating copy to clipboard operation
asdf-postgres copied to clipboard

configure: error: Cannot find a working 64-bit integer type.

Open dankram opened this issue 3 years ago • 7 comments

Describe the bug

Trying to install [email protected] through asdf and getting the above error.

Steps to reproduce

  1. brew install asdf
  2. Added "postgres 9.6.18" to my .tool-versions file
  3. run asdf install in tool-versions directory

Expected behavior

Expected to have postgres install based on the readme included in this repo.

Screenshots

Screen Shot 2021-04-09 at 11 03 21 AM

Additional context

Running on mac OS 11.2.2

dankram avatar Apr 09 '21 18:04 dankram

I have the same issue when I try to install Postgres 9.5.19. I'm on MacOS 11.2.3 Big Sur.

conradbeach avatar Apr 09 '21 18:04 conradbeach

I found this: https://www.postgresql.org/message-id/09A4B554-82B1-4536-B191-2461342EE0BB%40icloud.com. It looks like this is an actual incompatibility with installing postgres on newer mac os version from source for those versions. If I get a chance, I will see if I can add an option to install from the site instead of from source. The could also solve issues people have with ssl. I have no idea when I am going to be able to get to it though. I am on the process of moving, so my time is pretty tight.

smashedtoatoms avatar Apr 09 '21 19:04 smashedtoatoms

Thanks! I know moving can be really stressful so no rush. I can install postgres from brew in the mean time just wanted to make it a bit easier for the developers on our team.

dankram avatar Apr 09 '21 19:04 dankram

Thanks for looking into it, @smashedtoatoms. Like @dankram said, I can just use Brew in the meantime.

conradbeach avatar Apr 10 '21 03:04 conradbeach

I don't think I am going to have time to fix this anytime soon. The easiest way might be to do a patch, but I haven't been able to carve out enough time to dig into it. I'll get to this eventually, but it's going to be awhile.

smashedtoatoms avatar Nov 13 '21 20:11 smashedtoatoms

No worries. Thanks, @smashedtoatoms.

conradbeach avatar Nov 15 '21 16:11 conradbeach

In case it's useful to someone else encountering this error, I was able to install postgres 9.6.6 on OS X 12.1 by setting a -Wno-error=implicit-function-declaration CFLAG, e.g.

CFLAGS="-Wno-error=implicit-function-declaration" POSTGRES_EXTRA_CONFIGURE_OPTIONS="--with-uuid=e2fs --with-openssl --with-libraries=/usr/local/lib:/usr/local/opt/[email protected]/lib --with-includes=/usr/local/include:/usr/local/opt/[email protected]/include" asdf install postgres

chrislo avatar Jan 31 '22 12:01 chrislo

@chrislo's workaround is going to have to be as good as it gets for now. I am sorry all, I don't have the time to go back and clean this kind of thing up on this plugin.

smashedtoatoms avatar Feb 27 '24 16:02 smashedtoatoms