On Fri, Mar 28, 2014 at 8:53 AM, 张晗 <zganghanhan@foxmail.com> wrote:
Hi:
I am a newcomer to yaws, today, when I install the yaws, an error occurs:


checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for erl... /usr/local/bin/erl
checking for erlc... /usr/local/bin/erlc
checking erts version... 5.10.4
checking kernel version... 2.16.4
checking stdlib version... 1.19.4
checking sasl version... 2.3.4
checking ssl version... configure: error: "Could not figure out version Erlang library: ssl"

In seems something was wrong with ssl, but I do not know how to solve this. I need help!
thanks!

Run this command at your shell prompt:

erl -noshell -eval 'io:format("~s~n", [code:root_dir()]).' -s init stop

That will print out the directory where your erlang libraries are installed. Next, list that directory and look for ssl directories. If there are none, then your erlang installation was built without ssl support. I don't know how you installed erlang, so I'm not entirely sure exactly how to fix it for your case, but what I recommend is that you first make sure openssl is installed, then grab an erlang install package for your system from here:

https://www.erlang-solutions.com/downloads/download-erlang-otp

and install that over your current erlang installation. But if you built erlang yourself, then install openssl, and then reconfigure, rebuild, and reinstall erlang. Then rerun the yaws configure.

--steve