Banno / getsentry-ldap-auth

A Sentry extension to add an LDAP server as an authention source.
Apache License 2.0
163 stars 53 forks source link

Unable to install, gcc missing. #54

Open nzjustin opened 3 years ago

nzjustin commented 3 years ago

I am unable to install in onpremise-21.1.0 due to missing gcc.

The pip install process fails after sentry-ldap-auth, when building python-ldap:

Successfully built sentry-ldap-auth
Failed to build python-ldap

The container being used does not contain gcc in container:

...
building '_ldap' extension
  creating build/temp.linux-x86_64-3.6
  creating build/temp.linux-x86_64-3.6/Modules
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/local/include/python3.6m -c Modules/LDAPObject.c -o build/temp.linux-x86_64-3.6/Modules/LDAPObject.o
  unable to execute 'gcc': No such file or directory
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for python-ldap
...

If this version of sentry is not supported, does anyone know if it is safe to rollback the version by running an older version of install.sh ?

nzjustin commented 3 years ago

I guess I assumed that

Versions 2.0 and newer require Sentry 8

Meant "Sentry at least 8". I'm new to sentry and didn't realize that there would be such a big difference. I am trying to install on CentOS 8, and am unable to find the documentation for installation. When I go back in the commit history to ~sentry 8, the README points to https://docs.sentry.io/ for the docs, which is obviously for sentry 21 now......

I have been trying to get it installed but I think the package versions available on my system e.g. the PostgreSQL ones are too new for sentry 8 to build properly.

Does anyone know of some specific install instruction for Sentry 8 that I can follow?

rrauenza commented 2 years ago

See https://github.com/Banno/getsentry-ldap-auth/issues/55