Celeb Glow
news | March 19, 2026

Experiencing gcc 5 failure running poetry install on Ubuntu 20.04

Multiple error: command 'gcc-5' failed: No such file or directory..

gcc version: 9.3
poetry version: 1.1.4
python: 3.9.1
Ubuntu 20.04

1

2 Answers

The fix I found was to just do this

ln -s /bin/gcc /bin/gcc-5

$ ln -s /bin/gcc /bin/gcc-5
$ pip3 install netifaces
Collecting netifaces Using cached netifaces-0.10.9.tar.gz (28 kB)
Using legacy 'setup.py install' for netifaces, since package 'wheel' is not installed.
Installing collected packages: netifaces Running setup.py install for netifaces ... done
Successfully installed netifaces-0.10.9

I hope this helps you.

2

Don't use gcc-5, that causes ubuntu to specifically look for GCC 5.x, which is years out of date and not installed on most systems. Just use 'gcc' as the command, which will delegate to the default, installed gcc version (in your case, 9.3).

If you're following a guide that tells you to run a script, find a new guide or edit the script.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy