A Miserable Failure

Sunday, 20 July, 2008

I’m experiencing a rather annoying technical problem, which is holding up the YAK release — and consequently the release of the YAK Handbook.

Google Checkout integration requires https, but when testing I’m currently getting the dreaded error:

Protocol https not supported or disabled in libcurl

This despite the fact that curl -V gives:

curl 7.18.2 (i386-apple-darwin9.4.0) libcurl/7.18.2 OpenSSL/0.9.8h zlib/1.2.3
Protocols: tftp ftp telnet dict http file https ftps
Features: Largefile NTLM SSL libz

And port installed gives the following output (excerpted):

curl @7.18.2_0+ssl (active)
curl-ca-bundle @7.18.2_0 (active)
lighttpd @1.4.19_0 (active)
mysql5 @5.0.51a_0+server (active)
php5 @5.2.6_1+fastcgi+macosx+mysql5 (active)

I’m obviously missing something, but no idea what. Hoping that any Mac gurus who happen to come across this might have a suggestion or two…?

11 Responses to “A Miserable Failure”

  1. Mitch says:

    Does this help?

    http://curl.haxx.se/docs/faq.html#curl_1_SSL_is_disabled_https

    3.1 curl: (1) SSL is disabled, https: not supported

    If you get this output when trying to get anything from a https:// server,
    it means that the configure script couldn’t find all libs and include files
    it requires for SSL to work. If the configure script fails to find them,
    curl is simply built without SSL support.

    To get the https:// support into a curl that was previously built but that
    reports that https:// is not supported, you should dig through the document
    and logs and check out why the configure script doesn’t find the SSL libs
    and/or include files.

    Also, check out the other paragraph in this FAQ labeled “configure doesn’t
    find OpenSSL even when it is installed”.

  2. Mitch says:

    Also see http://code.google.com/apis/checkout/samples/Google_Checkout_Sample_Code_PHP.html


    Note: This DOM XML library runs on PHP 4, but not on PHP 5. So, to run this sample code, you must be running a PHP version of 4.2.3 or later but not PHP 5 or greater. We do not yet have sample code for PHP 5 using a DOM library.

  3. jrbriggs says:

    Unfortunately already found that reference. Curl has ssl enabled, but for some reason the version used by PHP wasn’t showing ssl support.

  4. jrbriggs says:

    Thanks for your help. I missed that reference.

  5. rahul benegal says:

    Similar problem when I changed path (putting /opt/local/bin in front). My program used to work earlier using /usr/bin/curl.
    I reinstalled the mac port curl but still got the same error. No error in install (used -d) option.

    So i finally deactivated port curl so the original /usr/bin/curl is used. Now the program works as before.

    While going through the debug statements found this:

    ./configure --prefix=/opt/local --disable-ipv6 --without-libidn --without-libssh2 --without-ssl --disable-ldap --with-zlib=/opt/local'
    So the installer could not find ssl, although nowhere does it give such an error

  6. Check http://www.nabble.com/-15048:-curl-%2Bssl-doesn‘t-install-curl-ca-bundle.crt-since-7.18-td16759394.html
    There is an issue since 7.18. Fix provided on given url.

  7. jrbriggs says:

    Thanks for this.

  8. TheDude says:

    Just wanted to say thanks to you (and various contributers) for all the hard work put in on this project.

  9. [...] with PHP, suexec and FastCGI (mod fcgid) (en) First saved by wangingproductions | 3 days ago A Miserable Failure First saved by zacefronfan15 | 12 days ago LEMP First saved by bemike | 12 days ago PHP [...]

  10. [...] recorded first by mariahstarr23 on 2009-04-03→ Jason R Briggs: A Miserable Failure [...]

  11. Ted Wood says:

    Just FYI,

    I force uninstalled curl:
    > port -f uninstall curl

    and then re-installed it with SSL support:
    > port install curl +ssl

    Solved the problem for me.

  12. Jesse says:

    Ted Wood’s suggestion worked for me as well.

    “I force uninstalled curl:
    > port -f uninstall curl

    and then re-installed it with SSL support:
    > port install curl +ssl”

Leave a Reply