torsocks command not working on Mac
I don't know much about Tor but I managed to get rid of the error by starting tor beforehand:

brew install tor torsocks
cp /usr/local/etc/tor/torrc.sample /usr/local/etc/tor/torrc
Uncomment ControlPort 9051 and CookieAuthentication 1 in /usr/local/etc/tor/torrc and change CookieAuthentication 1 to CookieAuthentication 0.
brew services start tor

I'm using it successfully as follows:

brew install openssl
torify /usr/local/opt/openssl/bin/openssl s_client -quiet -crlf -connect example.com:443