# yum install gcc?

**URL:** <https://forum.ansible.com/t/yum-install-gcc/34314>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [December 10, 2020, 4:38pm UTC](https://forum.ansible.com/t/yum-install-gcc/34314 "2020-12-10T16:38:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Knox](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kevin_knox/32/3926_2.png) [@Kevin\_Knox](https://forum.ansible.com/u/Kevin_Knox)\
**Post date:** [December 10, 2020, 4:38pm UTC](https://forum.ansible.com/t/yum-install-gcc/34314/1 "2020-12-10T16:38:31Z")

</div>

Still lost as a ball in high weeds. Oh well.

I need to install the InfoBlox client into my running Docker container awx\_task:9.2.0. I think I’ve figured out I need to run bash within that container and create a new virtualenv there, and that the venv needs psutils. I’m failing at the pre-req for psutils of installing gcc. This seems to be a well-known issue, but the solution does not seem to be so well known. Does anyone here have a pointer to that solution?

Here’s my script:

/var/lib/awx/venv/awx/bin/pip install virtualenv  
/var/lib/awx/venv/awx/bin/pip install --upgrade pip  
mkdir /opt/middleware-envs  
chmod 0755 /opt/middleware-envs  
virtualenv /opt/middleware-envs/infoblox-venv  
yum install gcc  
/opt/middleware-envs/infoblox-venv/bin/pip install psutil  
/opt/middleware-envs/infoblox-venv/bin/pip install -U “ansible == 2.10.4”  
/opt/middleware-envs/infoblox-venv/bin/pip install infoblox-client

My error is:

bash-4.4# yum install gcc  
CentOS-8 - AppStream 0.0 B/s | 0 B 00:00  
Failed to download metadata for repo ‘AppStream’  
Error: Failed to download metadata for repo ‘AppStream’

Fun things I’ve tried include changing the repo from [mirrorlist.centos.org](http://mirrorlist.centos.org) to [vault.centos.org](http://vault.centos.org) (gcc is not in vault) and building gcc-9.2.0.tar.gz (the compiler cannot be configured due to the lack of a compiler … the irony).

Thank you.

Kevin
