-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code compilation failing on make #5
Comments
Seems like you are missing the apache header files. On debian/ubuntu this is the |
Hello @sni , I am trying to install on Centos7 and I have installed apache2.4.37 in /opt directory. apache service is up and running |
You could try to set the C_INCLUDE_PATH then. |
Having this issue as well on MacOS in a docker environment. I had read that XCode can solve the issue in this environment but have not had luck, I think this suggestion would not actually work in this context. We are installing the |
never tried to build this on a mac yet tbh... Are you building the module for a apache on a mac? |
The docker image is a linux environment and the host machine is an M2 mac, sorry that was confusing. This was not working at all with homebrew installs ( |
Hello,
Build compilation terminating with below error,
cd /home/user/Desktop/Devops/Apache_exporter/mod_prometheus_status-0.3.0/cmd/mod_prometheus_status
TERM='dumb' CGO_LDFLAGS='"-g" "-O2"' /usr/lib/golang/pkg/tool/linux_amd64/cgo -objdir $WORK/b001/ -importpath command-line-arguments -exportheader=$WORK/b001/_cgo_install.h -- -I $WORK/b001/ -g -O2 -I/usr/include/httpd -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1.0 ./module.go
command-line-arguments
cmd/mod_prometheus_status/module.go:10:19: fatal error: httpd.h: No such file or directory
#include <httpd.h>
^
compilation terminated.
make: *** [mod_prometheus_status_go.so] Error 2
The text was updated successfully, but these errors were encountered: