Problem scenario
You are using a RedHat derivative of Linux. You get an error about libyaml not being installed (e.g., when a dependency of Suricata is unmet). You tried to install libyaml-devel, but it did not work. What should you do?
Solution for RHEL
If you are using RedHat run these two commands:
sudo yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
sudo yum -y install libyaml-devel
Solution for CentOS/Fedora
If you are using CentOS or Fedora, go here to get the package you need.