Compiling PHP with curl

Date August 2, 2006

I should probably post a whole article here, but I don’t have time!  Suffice it to say that PHP needs you to compile ‘–with-zlib’ if you’re trying to also compile curl as well.  http://us2.php.net/curl doesn’t have any reference to that fact from what I saw, so I figured I’d post it here.

When running ‘make’ I was seeing things like

main/output.lo(.text+0×889): In function `php_ob_init_named’:
/root/dl/mgk/php-4.3.3/main/output.c:423: undefined reference to `php_ob_gzhandler_check’
ext/mysql/php_mysql.lo(.text+0×4943): In function `php_mysql_field_info’:
/root/dl/mgk/php-4.3.3/ext/mysql/php_mysql.c:2227: undefined reference to `mysql_num_fields’
ext/mysql/php_mysql.lo(.text+0×49fd):/root/dl/mgk/php-4.3.3/ext/mysql/php_mysql.c:2231: undefined reference to `mysql_field_seek’
ext/mysql/php_mysql.lo(.text+0×4a09):/root/dl/mgk/php-4.3.3/ext/mysql/php_mysql.c:2232: undefined reference to `mysql_fetch_field’
and similar references - completely unrelated to what I was trying to build.  Anyway, hopefully that will help at least one poor soul stuck compiling PHP by hand!

2 Responses to “Compiling PHP with curl”

  1. kxd49 said:

    That’s a problem with openssl too - so I had to enable zlib manualy too when compiling with openssl.

  2. slava said:

    YOU ROCK! THANK YOU!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">