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

ERL-37: Crypto library won't start on OS X Lion #3073

Closed
OTP-Maintainer opened this issue Oct 29, 2015 · 7 comments
Closed

ERL-37: Crypto library won't start on OS X Lion #3073

OTP-Maintainer opened this issue Oct 29, 2015 · 7 comments
Labels
not a bug Issue is determined as not a bug by OTP priority:medium

Comments

@OTP-Maintainer
Copy link

Original reporter: tweakdeveloper
Affected versions: OTP-18.1, OTP-18.0, OTP-17.5, OTP-17.4, OTP-17.3
Component: crypto
Migrated from: https://bugs.erlang.org/browse/ERL-37


While OTPs >= 17.3 will build (through Homebrew) just fine on OS X Lion, running
{code:erlang}
crypto:start().
{code}
will not work.

The following exception and error report are produced:
{code:erlang}
** exception error: undefined function crypto:start/0

=ERROR REPORT==== 29-Oct-2015::05:46:30 ===
Unable to load crypto library. Failed with error:
"load, Library load-call unsuccessful."
OpenSSL might not be installed on this system.

=ERROR REPORT==== 29-Oct-2015::05:46:30 ===
The on_load function for module crypto returned {error,
                                                 {load,
                                                  "Library load-call unsuccessful."}}
{code}
@OTP-Maintainer
Copy link
Author

mrgs said:

Hi, I guess, you should to install openssl package with : $ sudo *brew install openssl*. Have a nice day. Regards, Gabor

@OTP-Maintainer
Copy link
Author

tweakdeveloper said:

It seems that openssl is already installed, brew gives me a warning to that effect. I believe it's installed as a dependency of Erlang actually.

@OTP-Maintainer
Copy link
Author

mrgs said:

Oops... Maybe ... some missing stuff (openssl headers) at a previous step. Did you have CLT (Xcode tools)  at the 'first' install? Could you try this:
*$ xcode-select --install*
*$ brew reinstall erlang*
Regards, Gabor

 

@OTP-Maintainer
Copy link
Author

tweakdeveloper said:

I did have the command-line tools for both installs.

@OTP-Maintainer
Copy link
Author

mrgs said:

Oh... Maybe... your issue is related with brew packages?! - You may ask someone from brew community. -  My N+1 tip is: You can compile Erlang from source with crypto module top on OS X, It is working fine. Regards, Gabor

{code}
mrOSX:otp mrgs$ erl
Erlang/OTP 18 [erts-7.1] [source-0ce885a] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V7.1  (abort with ^G)
1> os:type().
{unix,darwin}
2> os:version().
{15,0,0}
3> os:cmd("uname -a").
"Darwin mrOSX.local 15.0.0 Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64\n"
4> crypto:info_lib().
[{<<"OpenSSL">>,268443727,<<"OpenSSL 1.0.2d 9 Jul 2015">>}]
5> crypto:start().
ok
6> 
{code}
 

@OTP-Maintainer
Copy link
Author

tweakdeveloper said:

Strange, it does in fact work when compiling from latest sources. Thanks so much!

@OTP-Maintainer
Copy link
Author

kenneth said:

Since this is an old version of OSX and the reporter seems to have succeded building we will close this issue.

@OTP-Maintainer OTP-Maintainer added not a bug Issue is determined as not a bug by OTP priority:medium labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not a bug Issue is determined as not a bug by OTP priority:medium
Projects
None yet
Development

No branches or pull requests

1 participant