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
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
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.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








