typhoeus/typhoeus — pull request #190 by martoche (2012-06-20 15:17:43+00:00)
Title: Fix libcurl.so.4 load on Debian production systems

Typhoeus doesn't work on Debian when `libcurl-dev` is not installed.

On a Debian production system, you don't have the `libcurl-dev` package installed, you only have `libcurl4`.

As you can read here https://github.com/ffi/ffi/wiki/Loading-Libraries, `libcurl.so` is only installed by the `libcurl-dev` package. As a result, on a production Debian system, you only have the file `libcurl.so.4`, and not the file `libcurl.so`.

This patch follows ffi's recommendation to try to load `libcurl.so.4` if `libcurl.so` is not found.