dsd

dsd

Include openssl within a build

Is there a way to include openssl within a build, rather than relying on the target system install?

Looks like Erlang libraries such as crypto relies on specific openssl installation version, and when production image is built, and is being distributed, it creates a dependency on specific version of openssl being installed on the target machine.

Marked As Solved

cmkarlsson

cmkarlsson

You can also statically link openssl when compiling erlang. I experimented with this in the past and it is possible. I deemed it not worth the work involved though.

Some potentially outdated info:

http://erlang.2086793.n4.nabble.com/static-build-of-Erlang-with-openssl-td4681642.html

with the summary of:

% openssl 

./Configure --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared 
make && make install 

% erlang 

./configure --with-ssl=/usr/local/ssl/ --disable-dynamic-ssl-lib 

Also Liked

dsd

dsd

Thanks @cmkarlsson… That was it. Got it working by adding --disable-dynamic-ssl-lib. That’s all that was missing. For MacOS environment,

asdf uninstall erlang 21.3.8.2
export KERL_CONFIGURE_OPTIONS="–disable-dynamic-ssl-lib --without-javac --with-ssl=/usr/local/Cellar/openssl/1.0.2t"
asdf install erlang 21.3.8.2

And then build.

Where Next?

Popular in Questions Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
Kagamiiiii
Student & New to elixir. Nice language. I want to convert a english character, e.g. “a”, which is stored in a variable, to it’s asci...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New

Other popular topics Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
sergio
I couldn’t find any guides that worked well with Phoenix 1.6.0 and esbuild. I hope this helps people test the waters and eases you into t...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New

We're in Beta

About us Mission Statement