In my case (Amazon Linux AMI) none of the above worked. The following worked (idea from here):
cc1plus
. For me it was in /usr/libexec/gcc/x86_64-amazon-linux/4.8.5/cc1plus
. For you it may vary a bit. Try ls -l /usr/libexec/gcc
to find the proper directory name and go ahead.echo $PATH
(for me it was /sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin
)cc1plus
in one of the directories in your PATH: sudo ln -s /PATH/TO/cc1plus /DIRinPATH/
sudo ln -s /usr/libexec/gcc/x86_64-amazon-linux/4.8.5/cc1plus /usr/bin/