Compiling PassengerAgent on Alpine Linux / musl libc fails #1870
Currently (5.0.30) compiling the Passenger Agent on Alpine Linux fails, because the source code assumes that running on linux means glibc is used so the check for
A possible solution could be to check for the
Way to reproduce with docker:
docker run --rm -it alpine:3.4 /bin/sh apk update apk add ruby ruby-irb ruby-rake ruby-dev build-base linux-headers curl curl-dev pcre-dev gem install --no-document passenger passenger-config install-standalone-runtime --auto # Compilation fails with: src/agent/Shared/Base.cpp:55:23: fatal error: execinfo.h: No such file or directory
I'm currently working around the issue with the following hack:
The text was updated successfully, but these errors were encountered:
GH-1870. Fixes compilation on Linux by more explicitely detecting when a non-glibc C library (such as musl) is in use. This is neccesary for Alpine Linux and other minimal Linux distros, which are commonly used with Docker.
@nikolay What do mean by "libcurl issue"?
Here's a complete Dockerfile for a rails app based on