Instructions for installation of the heasoft package are available elsewhere
http://heasarc.gsfc.nasa.gov/lheasoftOn a system where heasoft is already installed it is necessary to run the same script required for other ftools in order to make sure environment variables are set properly for xstar:
setenv HEADAS /path-to-architecture source $HEADAS/headas-init.csh
where 'path-to-architecture' is the full path to the directory containing the compiled executables and libraries for the headas software.