signorrayan / RedTeam_toolkit

Red Team Toolkit is an Open-Source Django Offensive Web-App which is keeping the useful offensive tools used in the red-teaming together.
MIT License
544 stars 121 forks source link

error: command 'gcc' failed: No such file or directory on netifaces #67

Closed egodin closed 1 year ago

egodin commented 1 year ago

While building with the suggested command

$ docker-compose -f docker-compose.yml up -d --build && docker-compose -f docker-compose.yml exec webapp python manage.py createsuperuser

I got this error :

#0 140.1   × python setup.py bdist_wheel did not run successfully.                                                                                                                                                                          
#0 140.1   │ exit code: 1                                                                                                                                                                                                                   
#0 140.1   ╰─> [17 lines of output]                                                                                                                                                                                                         
...                                                                                                                                          
#0 140.1       building 'netifaces' extension                                                                         
#0 140.1       gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNETIFACES_VERSION=0.11.0 -I/usr/local/include/python3.10 -c netifaces.c -o build/temp.linux-x86_64-cpython-310/netifaces.o              
#0 140.1       error: command 'gcc' failed: No such file or directory                                                                                                                                                                       
#0 140.1       [end of output]

Effectively,gcc was not present in the Dockerfile install section, preventing the completion and exiting the build process.