For me this fixed it
sudo apt install libei-dev
If you are still facing problems troubleshoot with the help of Claude Sonnet it helped me narrow down the issue step by step which led to the solution
Claude Sonnet