error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
When installing lxdui the installer script terminated with the error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Well that wasn't any fun. And I'm no python pro so I had to go to Google to figure out what to do here. I'll post what to do below.
Well my search brought me to Stackoverflow (https://stackoverflow.com/questions/26053982/setup-script-exited-with-error-command-x86-64-linux-gnu-gcc-failed-with-exit) where a discussion topic about this error brought forth the proposed solution was that I should run "apt-get install python-dev"
I ran that command and it did nothing because I already had python-dev package installed.
So I got smart and figured I should install the python3-dev package since I was using Python 3 instead of Python 2.
So I ran:
sudo apt-get install python3-dev
After I did that I ran the lxdui install script again and ... It worked! There was no error anymore.
So, the solution to the error "Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1" for me was to install python3-dev with the simple command "sudo apt install python3-dev".