I tried to install a precompiled mobilizon release on Ubuntu 22.04 (i.e. Jellyfish) LTS, but it failed:
chriger@server:/opt/mobilizon$ sudo -u mobilizon ./bin/mobilizon_ctl instance gen --output /etc/mobilizon/config.exs --output-psql /tmp/setup_db.psql
!!! /etc/mobilizon/config.exs not found! Please ensure it exists and that MOBILIZON_CONFIG_PATH is unset or points to an existing file
What domain will your instance use? (e.g mobilizon.org) [] 192.168.0.204
What is the name of your instance? (e.g. Mobilizon) [] Mobilizon
What’s the address email will be send with? [noreply@192.168.0.204] webmaster@gerstenmayer.net
What is the hostname of your database? [localhost] localhost
What is the name of your database? [mobilizon_prod] mobilizon_prod
What is the user used to connect to your database? [mobilizon] mobilizon
12:39:34.434 [error] Unable to load crypto library. Failed with error:
« :load_failed, Failed to load NIF library /opt/mobilizon/lib/crypto-5.0.6/priv/lib/crypto: ‹ libcrypto.so.1.1: cannot open shared object file: No such file or directory › »
OpenSSL might not be installed on this system.
12:39:34.482 [warning] The on_load function for module crypto returned:
{:error,
{:load_failed,
‹ Failed to load NIF library /opt/mobilizon/lib/crypto-5.0.6/priv/lib/crypto: ‹ libcrypto.so.1.1: cannot open shared object file: No such file or directory › ›}}
** (UndefinedFunctionError) function :crypto.strong_rand_bytes/1 is undefined (module :crypto is not available)
:crypto.strong_rand_bytes(64)
(mobilizon 2.1.0) lib/mix/tasks/mobilizon/instance.ex:124: Mix.Tasks.Mobilizon.Instance.run/1
(stdlib 3.17.1) erl_eval.erl:685: :erl_eval.do_apply/6
(elixir 1.13.4) lib/code.ex:404: Code.validated_eval_string/3
Ubuntu Jellyfish is adding OpenSSL 3.0.2 by default on installation. It is located on /usr/lib/ssl.
I also tried to remove OpenSSL 3.0.2 and installed 1.1.1m, but then I get errors when installing postgresql.
Is there a way to install mobilizon with OpenSSL 3.0.2?
Please help.
Kind regards
Christine Gerstenmayer
Computer Cat e.U.