Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Install php_pgsql #65

Closed
gilvaju opened this issue Oct 28, 2020 · 9 comments
Closed

Install php_pgsql #65

gilvaju opened this issue Oct 28, 2020 · 9 comments
Labels
question Further information is requested

Comments

@gilvaju
Copy link

gilvaju commented Oct 28, 2020

I need use php_pgsql.

Is possible install on asdf installation?

@smorimoto
Copy link
Member

Doesn't this work?

PHP_CONFIGURE_OPTIONS="--with-pgsql" asdf install php <VERSION>

or

PHP_CONFIGURE_OPTIONS="--with-pgsql=<PATH TO PSQL>" asdf install php <VERSION>

@gilvaju
Copy link
Author

gilvaju commented Oct 28, 2020

The installation dont finished.

I use: PHP_CONFIGURE_OPTIONS="--with-pgsql" asdf install php 7.4.12

Captura de Tela_Área de Seleção_20201028155612

@smorimoto
Copy link
Member

Please tell me the environmental information such as OS, its version, etc...

@smorimoto
Copy link
Member

If you are using macOS, have you done all these steps?

brew install autoconf automake bison freetype gettext icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip pkg-config re2c zlib

export PKG_CONFIG_PATH="$(brew --prefix icu4c)/lib/pkgconfig:$(brew --prefix krb5)/lib/pkgconfig:$(brew --prefix libedit)/lib/pkgconfig:$(brew --prefix libxml2)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig"

export PATH="$(brew --prefix bison)/bin:$PATH"

PHP_CONFIGURE_OPTIONS="--with-pgsql" asdf install php 7.4.12

@smorimoto
Copy link
Member

Probably because openssl is not found, if the following log appears during configure:

checking for OpenSSL support... no

For example, I use Void Linux, so I had to specify it like this:

PHP_CONFIGURE_OPTIONS="--with-pgsql --with-openssl=/usr/include/openssl" asdf install php 7.4.12

@gilvaju
Copy link
Author

gilvaju commented Oct 29, 2020

Hi, i use arch linux

@gilvaju
Copy link
Author

gilvaju commented Oct 29, 2020

Probably because openssl is not found, if the following log appears during configure:

checking for OpenSSL support... no

For example, I use Void Linux, so I had to specify it like this:

PHP_CONFIGURE_OPTIONS="--with-pgsql --with-openssl=/usr/include/openssl" asdf install php 7.4.12

I will try --with-openssl

Captura de Tela_Área de Seleção_20201029065441

@gilvaju
Copy link
Author

gilvaju commented Oct 29, 2020

PHP_CONFIGURE_OPTIONS="--with-pgsql --with-openssl=/usr/include/openssl" asdf install php 7.4.12

It's work. Thank you very much.

@smorimoto
Copy link
Member

I'm glad it works. Your question seems to have been resolved, so I will close this issue.

@smorimoto smorimoto added the question Further information is requested label Jan 3, 2021
@smorimoto smorimoto reopened this Jan 3, 2021
@asdf-community asdf-community locked and limited conversation to collaborators Jan 26, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Development

No branches or pull requests

2 participants