Here I got small example how to run Yaws embedded, but how I need to install Yaws to get it worked?
Pretty standard stuff. You can download the package from:
http://yaws.hyber.org/download/
Uncompress it and follow the instructions on the README file:
https://github.com/klacke/yaws/blob/467a675866f5d6b62e25be0b03e7023acc910fab/README
If you prefer, you can clone the repository from: