Closed javierruizjimenez closed 2 years ago
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Try to install gcc
OS package in your system.
Looks like one of the pip dependencies is trying to compile some stuff.
Thanks @armab
I did apt update
and apt install gcc
.
It is now available at the system (in st2client):
# x86_64-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=x86_64-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
Installation still fails with the same error, somehow x86_64-linux-gnu-gcc is not available in the python env:
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iparser -I/opt/stackstorm/virtualenvs/kubernetes/include -I/usr/include/python3.6m -c http_parser/http_parser.c -o build/temp.linux-x86_64-3.6/http_parser/http_parser.o
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Installing other dev libraries didn't solve the issue either.
Are you using HA-based deployment?
You need to make sure gcc
is available for the st2actionrunner
s.
Are you using HA-based deployment? You need to make sure
gcc
is available for thest2actionrunner
s.
No, the Docker Compose official installation
Thanks for your help. I have been able to "almost install" the pack after installing GCC in the st2actionrunner container. It still fails at register_pack for other reasons (probably it is not able to access the Kubernetes API).
I will close the issue.
docker compose exec st2actionrunner bash
apt update
apt install gcc
docker compose exec st2client bash
st2ctl reload --register-all
st2 pack install kubernetes
Thanks for confirming.
I'd recommend opening a PR to document the OS package requirements in the pack README https://github.com/StackStorm-Exchange/stackstorm-kubernetes/blob/master/README.md
Ansible pack requirements (https://github.com/StackStorm-Exchange/stackstorm-ansible/#requirements) might be an example.
That will surely help someone in the future.
Trying to install st2 kubernetes pack.
Environment:
I have been able to install the Terraform pack successfully
But I can't install the kubernetes pack, it fails with the name and also with the githib repo:
Error (full is below):
Full error:
Please let me know if I can provide more info. Thanks