Set -x option to diagnose what is going wrong on FreeBSD.