get your HAProxy from here http://haproxy.1wt.eu/download/

select the version according to your server (x86 or Sparc)

 for example : haproxy-1.4.18-pcre-solaris10-x86.stripped.gz  

and don’t forget to get the pcre and its depedencies from sunfreeware.com

gunzip haproxy-1.4.18-pcre-solaris10-x86.stripped.gz

mv haproxy-1.4.18-pcre-solaris10-x86.stripped haproxy

mv haproxy /usr/bin/

chmod +x /usr/bin/haproxy

mkdir -p /etc/haproxy

vi /etc/haproxy/haproxy.cfg (edit the configuration file)

make sure you have /usr/bin in your environment path

and then you can run HAProxy with this command

haproxy -D -f /etc/haproxy/haproxy.cfg