abhishekmunie / heroku-buildpack-nginx

A Heroku buildpack for nginx.
14 stars 27 forks source link

Couldn't find PCRE library #2

Open aeharding opened 9 years ago

aeharding commented 9 years ago
Fetching repository, done.
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 517 bytes | 0 bytes/s, done.
Total 5 (delta 2), reused 0 (delta 0)

-----> Fetching custom git buildpack... done
-----> Nginx app detected

       PRO TIP: You can specify a Nginx version in _nginx.cfg
       See https://github.com/abhishekmunie/heroku-buildpack-git

       Defaulting to version 1.7.9.
       Nginx version changed since last build; rebuilding.
       Cleaning cached Nginx version...
       Downloading Nginx 1.7.9...

-----> Compiling Nginx...

-----> Configuring
       checking for OS
        + Linux 3.13.0-40-generic x86_64
       checking for C compiler ... found
        + using GNU C compiler
        + gcc version: 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
       checking for gcc -pipe switch ... found
       checking for gcc builtin atomic operations ... found
       checking for C99 variadic macros ... found
       checking for gcc variadic macros ... found
       checking for unistd.h ... found
       checking for inttypes.h ... found
       checking for limits.h ... found
       checking for sys/filio.h ... not found
       checking for sys/param.h ... found
       checking for sys/mount.h ... found
       checking for sys/statvfs.h ... found
       checking for crypt.h ... found
       checking for Linux specific features
       checking for epoll ... found
       checking for EPOLLRDHUP ... found
       checking for O_PATH ... not found
       checking for sendfile() ... found
       checking for sendfile64() ... found
       checking for sys/prctl.h ... found
       checking for prctl(PR_SET_DUMPABLE) ... found
       checking for sched_setaffinity() ... found
       checking for crypt_r() ... found
       checking for sys/vfs.h ... found
       checking for nobody group ... not found
       checking for nogroup group ... found
       checking for poll() ... found
       checking for /dev/poll ... not found
       checking for kqueue ... not found
       checking for crypt() ... not found
       checking for crypt() in libcrypt ... found
       checking for F_READAHEAD ... not found
       checking for posix_fadvise() ... found
       checking for O_DIRECT ... found
       checking for F_NOCACHE ... not found
       checking for directio() ... not found
       checking for statfs() ... found
       checking for statvfs() ... found
       checking for dlopen() ... not found
       checking for dlopen() in libdl ... found
       checking for sched_yield() ... found
       checking for SO_SETFIB ... not found
       checking for SO_ACCEPTFILTER ... not found
       checking for TCP_DEFER_ACCEPT ... found
       checking for TCP_KEEPIDLE ... found
       checking for TCP_FASTOPEN ... not found
       checking for TCP_INFO ... found
       checking for accept4() ... found
       checking for int size ... 4 bytes
       checking for long size ... 8 bytes
       checking for long long size ... 8 bytes
       checking for void * size ... 8 bytes
       checking for uint64_t ... found
       checking for sig_atomic_t ... found
       checking for sig_atomic_t size ... 4 bytes
       checking for socklen_t ... found
       checking for in_addr_t ... found
       checking for in_port_t ... found
       checking for rlim_t ... found
       checking for uintptr_t ... uintptr_t found
       checking for system byte ordering ... little endian
       checking for size_t size ... 8 bytes
       checking for off_t size ... 8 bytes
       checking for time_t size ... 8 bytes
       checking for setproctitle() ... not found
       checking for pread() ... found
       checking for pwrite() ... found
       checking for sys_nerr ... found
       checking for localtime_r() ... found
       checking for posix_memalign() ... found
       checking for memalign() ... found
       checking for mmap(MAP_ANON|MAP_SHARED) ... found
       checking for mmap("/dev/zero", MAP_SHARED) ... found
       checking for System V shared memory ... found
       checking for POSIX semaphores ... not found
       checking for POSIX semaphores in libpthread ... found
       checking for struct msghdr.msg_control ... found
       checking for ioctl(FIONBIO) ... found
       checking for struct tm.tm_gmtoff ... found
       checking for struct dirent.d_namlen ... not found
       checking for struct dirent.d_type ... found
       checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
       checking for openat(), fstatat() ... found
       checking for getaddrinfo() ... found
       checking for PCRE library ... not found
       checking for PCRE library in /usr/local/ ... not found
       checking for PCRE library in /usr/include/pcre/ ... not found
       checking for PCRE library in /usr/pkg/ ... not found
       checking for PCRE library in /opt/local/ ... not found

       ./configure: error: the HTTP rewrite module requires the PCRE library.
       You can either disable the module by using --without-http_rewrite_module
       option, or install the PCRE library into the system, or build the PCRE library
       statically from the source with nginx by using --with-pcre=<path> option.

-----> Build failed

       We're sorry this build is failing! If you can't find the issue in application code,
       please open an inssue so we can help: https://github.com/abhishekmunie/heroku-buildpack-nginx/issues

 !     Push rejected, failed to compile Nginx app

I'm guessing the commits ~2 weeks ago broke this. For now, I'm forking this repo @ old commit, but I though I'd let you know!

JediSange commented 9 years ago

Same here. Will attempt forking from before there as well. Edit: Worked!

utkuturunc commented 9 years ago

do you have any idea which change broke the code?

JediSange commented 9 years ago

Spitballing here, but I think that it is just having trouble finding the PCRE binary. My guess would be the binary folder path change? 8b72e38 or 3e30a66