Apologies I didn’t see the answer you already gave to this problem here Exported procedure socket:tcp_connect/2 is not defined - #4 by jan
As I’ve already done on my server, I’ve opted now to be also conservative on my development laptop and just used the version installed by my distribution’s package manager because compiling from source has become too difficult for me.