apple / ccs-pykerberos

Python Kerberos library used by CalendarServer
https://www.calendarserver.org
Apache License 2.0
117 stars 65 forks source link

Cannot build or install from pip due to krb5-config #66

Closed ltoshea closed 6 years ago

ltoshea commented 6 years ago

ccs-pykerberos-master]$ python setup.py build running build running build_ext building 'kerberos' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c src/base64.c -o build/temp.linux-x86_64-2.7/src/base64.o sh: krb5-config: command not found

I've tried installing from pip and also get the same issues. It looks like under the dependencies section it lists in setup.py it lists 'krb5-config' which looks like it might be in the library "gssapi"

What do I need to install to fix this dependency?

ltoshea commented 6 years ago

Turns out I just needed to install "krb5-config" onto the box via the standard OS repo.

robsbots commented 3 years ago

I found I already had the kbr5-config package installed but needed the dev package. I installed it with the command below

$ sudo apt-get install libkrb5-dev

gregorydulin commented 1 year ago

I also had to install gcc

sudo apt-get install gcc

NicolasPA commented 11 months ago

This was also my error trying to install kerberos in Docker from python:3.10-slim.
As in the previous comments, I had to install both libkrb5-dev and gcc.

RUN apt-get update -y \
    && apt-get upgrade -y \
    && apt-get install -y \
        libkrb5-dev \
        gcc \
    && pip install kerberos