pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedOpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql
6+ messages / 5 participants
[nested] [flat]
* OpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql
@ 2022-04-12 10:33 cecile rougnaux <cecile_rougnaux@hotmail.com>
0 siblings, 4 replies; 6+ messages in thread
From: cecile rougnaux @ 2022-04-12 10:33 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
My system is OS Mojave 10.14.6, I got homebrew from this command :
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
when I try to install postgresql with the command
brew install postgresql
I have this error:
Error: An exception occurred within a child process:
RuntimeError: /usr/local/opt/openssl@1.1 not present or broken
Please reinstall openssl@1.1. Sorry :(
When I try to install openssl@1.1 I have this message:
brew install openssl@1.1
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 8 casks.
Warning: openssl@1.1 1.1.1n is already installed, it's just not linked.
To link this version, run:
brew link openssl@1.1
➜ / brew link openssl@1.1
Warning: Refusing to link macOS provided/shadowed software: openssl@1.1
If you need to have openssl@1.1 first in your PATH, run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
For pkg-config to find openssl@1.1 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
And then when I try to force hombrew link openssl, I get this message
Warning: Refusing to link macOS provided/shadowed software: openssl@1.1
If you need to have openssl@1.1 first in your PATH, run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
For pkg-config to find openssl@1.1 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
I added the lines to .zshrc file as suggested:
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
But I kept on having the message when retrying to intall postgresql
Error: An exception occurred within a child process:
RuntimeError: /usr/local/opt/openssl@1.1 not present or broken
I also tried this command:
brew reinstall openssl
openssl@3 is installed and I get this message:
openssl@3 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.
and then when I try to
brew install postgresql
I have the same error:
Error: An exception occurred within a child process:
RuntimeError: /usr/local/opt/openssl@1.1 not present or broken
Please reinstall openssl@1.1.
and The pg version in my rails gemfile is
gem "pg", "1.3.5"
but I just tried brew install pg,
and bundle install fails also.
If anyone could help, I am totally stuck here, thanks!
Cécile
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: OpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql
@ 2022-04-12 14:26 Tom Lane <tgl@sss.pgh.pa.us>
parent: cecile rougnaux <cecile_rougnaux@hotmail.com>
3 siblings, 0 replies; 6+ messages in thread
From: Tom Lane @ 2022-04-12 14:26 UTC (permalink / raw)
To: cecile rougnaux <cecile_rougnaux@hotmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
cecile rougnaux <cecile_rougnaux@hotmail.com> writes:
> when I try to install postgresql with the command
> brew install postgresql
> I have this error:
> Error: An exception occurred within a child process:
> RuntimeError: /usr/local/opt/openssl@1.1 not present or broken
> Please reinstall openssl@1.1. Sorry :(
You probably need to ask about this in a Homebrew-specific forum,
not here. However, I can comment that this proposed workaround:
> For compilers to find openssl@1.1 you may need to set:
> export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
> export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
would need to be applied while *building* Postgres. If you've
already built it, or are trying to install a prebuilt package,
those flag settings won't do anything.
regards, tom lane
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: OpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql
@ 2022-04-12 15:29 Dan Davis <dansmood@gmail.com>
parent: cecile rougnaux <cecile_rougnaux@hotmail.com>
3 siblings, 0 replies; 6+ messages in thread
From: Dan Davis @ 2022-04-12 15:29 UTC (permalink / raw)
To: cecile rougnaux <cecile_rougnaux@hotmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
The reason that openssl is not linked is that MacOS already has LibreSSL.
It would be good to build PostgreSQL with LibreSSL on OS X, as LibreSSL is
really more secure, but then again, PostgreSQL on OS X should be only for
development purposes. You may have heard about the heartbleed attack -
LibreSSL is a fork of OpenSSL with older ciphers removed.
One thing you can do is to place openssl in your LD_LIBRARY_PATH and
DYLD_LIBRARY_PATH:
export LD_LIBRARY_PATH=/usr/local/opt/openssl@3/lib
export DYLD_LIBRARY_PATH=/usr/local/opt/openssl@3/lib
If you need it beyond Terminal, then this should force it:
brew link openssl
On Tue, Apr 12, 2022 at 6:34 AM cecile rougnaux <cecile_rougnaux@hotmail.com>
wrote:
> My system is OS Mojave 10.14.6, I got homebrew from this command :
>
> /bin/bash -c "$(curl -fsSL
> https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
>
>
> when I try to install postgresql with the command
>
> brew install postgresql
>
>
> I have this error:
>
> Error: An exception occurred within a child process:
> RuntimeError: /usr/local/opt/openssl@1.1 not present or broken
> Please reinstall openssl@1.1. Sorry :(
>
>
> When I try to install openssl@1.1 I have this message:
>
> brew install openssl@1.1
> Running `brew update --preinstall`...
> ==> Auto-updated Homebrew!
> Updated 1 tap (homebrew/cask).
> ==> Updated Casks
> Updated 8 casks.
>
> Warning: openssl@1.1 1.1.1n is already installed, it's just not
> linked.
> To link this version, run:
> brew link openssl@1.1
> ➜ / brew link openssl@1.1
> Warning: Refusing to link macOS provided/shadowed software: openssl@1.1
> If you need to have openssl@1.1 first in your PATH, run:
> echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >>
> ~/.zshrc
>
> For compilers to find openssl@1.1 you may need to set:
> export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
> export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
>
> For pkg-config to find openssl@1.1 you may need to set:
> export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
>
>
> And then when I try to force hombrew link openssl, I get this message
>
> Warning: Refusing to link macOS provided/shadowed software:
> openssl@1.1
> If you need to have openssl@1.1 first in your PATH, run:
> echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >>
> ~/.zshrc
>
> For compilers to find openssl@1.1 you may need to set:
> export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
> export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
>
> For pkg-config to find openssl@1.1 you may need to set:
> export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
>
>
> I added the lines to .zshrc file as suggested:
>
> export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
> export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
> export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
> export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
>
> But I kept on having the message when retrying to intall postgresql
>
> Error: An exception occurred within a child process:
> RuntimeError: /usr/local/opt/openssl@1.1 not present or broken
>
>
> I also tried this command:
>
> brew reinstall openssl
>
>
> openssl@3 is installed and I get this message:
>
> openssl@3 is keg-only, which means it was not symlinked into
> /usr/local,
> because macOS provides LibreSSL.
>
> and then when I try to
>
> brew install postgresql
>
> I have the same error:
>
> Error: An exception occurred within a child process:
> RuntimeError: /usr/local/opt/openssl@1.1 not present or broken
> Please reinstall openssl@1.1.
>
>
> and The pg version in my rails gemfile is
> gem "pg", "1.3.5"
> but I just tried brew install pg,
> and bundle install fails also.
> If anyone could help, I am totally stuck here, thanks!
> Cécile
>
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: OpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql
@ 2022-04-12 15:35 Adrian Klaver <adrian.klaver@aklaver.com>
parent: cecile rougnaux <cecile_rougnaux@hotmail.com>
3 siblings, 0 replies; 6+ messages in thread
From: Adrian Klaver @ 2022-04-12 15:35 UTC (permalink / raw)
To: cecile rougnaux <cecile_rougnaux@hotmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
On 4/12/22 03:33, cecile rougnaux wrote:
> My system is OS Mojave 10.14.6, I got homebrew from this command :
>
> /bin/bash -c "$(curl -fsSL
> https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
From here:
https://docs.brew.sh/Installation
macOS Catalina (10.15) (or higher) 2
Where 2 is footnote to:
2 10.15 or higher is recommended, while 10.10–10.14 are supported on a
best-effort basis. For 10.4–10.6 see Tigerbrew.
>
>
> when I try to install postgresql with the command
>
> brew install postgresql
>
>
> I have this error:
>
> Error: An exception occurred within a child process:
> RuntimeError: /usr/local/opt/openssl@1.1 not present or broken
> Please reinstall openssl@1.1. Sorry :(
Is openssl@1.1 actually at /usr/local/opt/ ?
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: OpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql
@ 2022-04-13 06:16 Adrian Ho <ml+postgresql@03s.net>
parent: cecile rougnaux <cecile_rougnaux@hotmail.com>
3 siblings, 1 reply; 6+ messages in thread
From: Adrian Ho @ 2022-04-13 06:16 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 12/4/22 18:33, cecile rougnaux wrote:
> My system is OS Mojave 10.14.6, I got homebrew from this command :
>
> /bin/bash -c "$(curl -fsSL
> https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
>
>
> when I try to install postgresql with the command
>
> brew install postgresql
>
>
> I have this error:
>
> Error: An exception occurred within a child process:
> RuntimeError: /usr/local/opt/openssl@1.1 not present or broken
> Please reinstall openssl@1.1. Sorry :(
>
>
> When I try to install openssl@1.1 I have this message:
>
Note that the error message is literally asking you to:
brew reinstall openssl@1.1
not:
brew install openssl@1.1
and not:
brew reinstall openssl
Do the reinstall and see if the postgresql formula works now. If it
still doesn't work, the Homebrew discussions forum is a more appropriate
place to follow up: https://github.com/Homebrew/discussions/discussions
Also:
brew link openssl@1.1
and all the exports you said you added to your .zshrc should not be
needed, so you should:
brew unlink openssl@1.1
and revert all your additions.
--
Best Regards,
Adrian
^ permalink raw reply [nested|flat] 6+ messages in thread
* RE: OpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql
@ 2022-04-13 09:07 cecile rougnaux <cecile_rougnaux@hotmail.com>
parent: Adrian Ho <ml+postgresql@03s.net>
0 siblings, 0 replies; 6+ messages in thread
From: cecile rougnaux @ 2022-04-13 09:07 UTC (permalink / raw)
To: Adrian Ho <ml+postgresql@03s.net>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Hello Adrian,
As suggested from another user, I am going to reinstall and upgrade my OS to Catalina, which is better supported.
Then I will follow the steps with homebrew and hopefully this will clean the mess I am in 😉
Thanks for your answer!
C
________________________________
De : Adrian Ho <ml+postgresql@03s.net>
Envoyé : mercredi 13 avril 2022 06:16
À : pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Objet : Re: OpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql
On 12/4/22 18:33, cecile rougnaux wrote:
My system is OS Mojave 10.14.6, I got homebrew from this command :
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
when I try to install postgresql with the command
brew install postgresql
I have this error:
Error: An exception occurred within a child process:
RuntimeError: /usr/local/opt/openssl@1.1 not present or broken
Please reinstall openssl@1.1<mailto:openssl@1.1>. Sorry :(
When I try to install openssl@1.1<mailto:openssl@1.1> I have this message:
Note that the error message is literally asking you to:
brew reinstall openssl@1.1<mailto:openssl@1.1>
not:
brew install openssl@1.1<mailto:openssl@1.1>
and not:
brew reinstall openssl
Do the reinstall and see if the postgresql formula works now. If it still doesn't work, the Homebrew discussions forum is a more appropriate place to follow up: https://github.com/Homebrew/discussions/discussions
Also:
brew link openssl@1.1<mailto:openssl@1.1>
and all the exports you said you added to your .zshrc should not be needed, so you should:
brew unlink openssl@1.1<mailto:openssl@1.1>
and revert all your additions.
--
Best Regards,
Adrian
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2022-04-13 09:07 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12 10:33 OpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql cecile rougnaux <cecile_rougnaux@hotmail.com>
2022-04-12 14:26 ` Tom Lane <tgl@sss.pgh.pa.us>
2022-04-12 15:29 ` Dan Davis <dansmood@gmail.com>
2022-04-12 15:35 ` Adrian Klaver <adrian.klaver@aklaver.com>
2022-04-13 06:16 ` Adrian Ho <ml+postgresql@03s.net>
2022-04-13 09:07 ` cecile rougnaux <cecile_rougnaux@hotmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox