error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 code example

Example 1: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

$ sudo apt-get install libxml2-dev libxslt1-dev

Example 2: python error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

sudo apt-get install gcc python3.x-dev # choose correct python version

Example 3: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

sudo apt-get install python-dev
sudo apt-get install libxml2-dev libxslt1-dev