Passenger 5.1.2 passenger-install-apache2-module issue with curl-devel

168 views
Skip to first unread message

Chung Ley

unread,
Apr 12, 2017, 1:35:24 PM4/12/17
to Phusion Passenger Discussions
I went into a problem running passenger-install-apache2-module on a RHEL 5.7 (Tikanga)..  The error error: 'CURLE_PEER_FAILED_VERIFICATION' undeclared (first use in this functionseems to suggest that I am not running the right version of curl-devel; but I like to get some help in confirming that and find out how I can find out which version of curl-devel would be right?  When I ran the yum install curl-devel on the box, it seems to suggest that I already have the latest version (curl-devel-7.15.5-9.el5_6.3.x86_64, curl-devel-7.15.5-9.el5_6.3.i386)  on my box.

uname -a
Linux scgtpdkdev01 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

I ran the install using the VERBOSE option as suggested:
bash-3.2$ VERBOSE=1 passenger-install-apache2-module

Here is the output from  the section with checking for Curl development headers with SSL support...
* Checking for Curl development headers with SSL support...
       
-> Checking for curl/curl.h
         
Running: cc -v -c '/tmp/passenger.1gm2te6/passenger-compile-check.c' -o '/tmp/passenger.1gm2te6/passenger-compile-check.c.o'
         
Source file contains:
         
-------------------------
         
#include <curl/curl.h>
         
-------------------------
       
-> Output:
         
-------------------------
         
Using built-in specs.
         
Target: x86_64-redhat-linux
         
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
         
Thread model: posix
          gcc version
4.1.2 20080704 (Red Hat 4.1.2-51)
           
/usr/libexec/gcc/x86_64-redhat-linux/4.1.2/cc1 -quiet -v /tmp/passenger.1gm2te6/passenger-compile-check.c -quiet -dumpbase passenger-compile-check.c -mtune=generic -auxbase-strip /tmp/passenger.1gm2te6/passenger-compile-check.c.o -version -o /tmp/ccAiiF0w.s
          ignoring nonexistent directory
"/usr/local/include"
          ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../x86_64-redhat-linux/include"
         
#include "..." search starts here:
         
#include <...> search starts here:
           
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include
           
/usr/include
         
End of search list.
          GNU C version
4.1.2 20080704 (Red Hat 4.1.2-51) (x86_64-redhat-linux)
          compiled
by GNU C version 4.1.2 20080704 (Red Hat 4.1.2-51).
          GGC heuristics
: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
         
Compiler executable checksum: bcbd5921f82be70dc3ef3989b5ea9e5e
           
as -V -Qy -o /tmp/passenger.1gm2te6/passenger-compile-check.c.o /tmp/ccAiiF0w.s
          GNU assembler version
2.17.50.0.6-14.el5 (x86_64-redhat-linux) using BFD version 2.17.50.0.6-14.el5 20061020
         
         
-------------------------
       
-> Check succeeded
       
-> Checking for libcurl usability
         
Running: cc '/tmp/passenger.k2v8h1/passenger-run-check.c' -o '/tmp/passenger.k2v8h1/passenger-run-check.c.out'  -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
         
Source file contains:
         
-------------------------
         
#include <curl/curl.h>
         
int main() {
           
CURLcode result = curl_global_init(CURL_GLOBAL_ALL);
           
if (result == CURLE_PEER_FAILED_VERIFICATION) { // fails to compile if too old
             
return 1;
           
}
           
return 0;
         
}
         
-------------------------
/tmp/passenger.k2v8h1/passenger-run-check.c: In function 'main':
/tmp/passenger.k2v8h1/passenger-run-check.c:5: error: 'CURLE_PEER_FAILED_VERIFICATION' undeclared (first use in this function)
/tmp/passenger.k2v8h1/passenger-run-check.c:5: error: (Each undeclared identifier is reported only once
/tmp/passenger.k2v8h1/passenger-run-check.c:5: error: for each function it appears in.)
       
-> Check failed with exit status 1
     
Found: yes, but there was an error
     
Error: libcurl was found, but it isn't usable. Set VERBOSE=1 to see why.
      curl-config location: /usr/bin/curl-config
      Header location: /usr/include/curl/curl.h
      Version: libcurl 7.15.5
      Usable: no




Daniel Knoppel

unread,
Apr 13, 2017, 4:46:50 AM4/13/17
to Phusion Passenger Discussions
libcurl 7.15.5 is more than 10 years old.

Passenger is officially supported against the latest two RHEL releases, 6 and 7 (RHEL 5 is now 17 years old).

- Daniel

Daniel Knoppel

unread,
Apr 13, 2017, 4:51:48 AM4/13/17
to Phusion Passenger Discussions
Typo: not 17, but 10, but I think you get the idea :) We have to limit the support somewhere.

- Daniel

Chung Ley

unread,
Apr 13, 2017, 9:49:14 AM4/13/17
to Phusion Passenger Discussions
What, only 10 years...  Was it that long already:)

Darn, I was so close to come this far to have everything else installed...  It looks like the last dependency; is there some last ditch effort that I can try before totaling given up?

Thanks....

Camden Narzt

unread,
Apr 18, 2017, 9:08:28 AM4/18/17
to Phusion Passenger Discussions
As a last ditch effort why not install the latest libcurl from source?
Reply all
Reply to author
Forward
0 new messages