Check SQL Database - ibm_db

Hallo,

wollte eine DB2-Datenbank abfragen.
Also eine Regel Check SQL Database erstellt -> beim Check jedoch folgender Hinweis: No module named ibm_db. Please install it via pip.

Also habe ich als Site-User pip install ibm-db aufgerufen, was jedoch mit folgendem Fehler fehlschlägt:

building 'ibm_db' extension
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iclidriver/include -I/omd/sites/lge_it/include/python2.7 -c ibm_db.c -o build/temp.linux-x86_64-2.7/ibm_db.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1

Auch pip install gcc7 brachte nichts.

Hallo,

gcc sollte vom OS installiert sein.
Bei Debian ein “apt-get install gcc” versuchen.
Und dann nochmals das pip …

Danke,

jetzt erscheint der folgende Fehler:
gcc -pthread -shared -Wl,–rpath,/omd/versions/1.6.0p5.cee/lib build/temp.linux-x86_64-2.7/ibm_db.o -Lclidriver/lib -L/lib -Wl,-R$ORIGIN/clidriver/lib -ldb2 -lpython2.7 -o build/lib.linux-x86_64-2.7/ibm_db.so
/usr/bin/ld: cannot find -lpython2.7
collect2: error: ld returned 1 exit status
error: command ‘gcc’ failed with exit status 1

Diese Fehler lässt sich mit sudo apt install libpython2.7-dev beheben…

Leider wieder ein neuer Fehler:

running install_data
copying ./README.md -> /omd/sites/my_site/lib/python2.7/site-packages
error: [Errno 13] Permission denied: '/omd/sites/my_site/lib/python2.7/site-packages/README.md'