Unable to compile php 7.4 due to missing zip (SOLVED)

edvanleeuwen

Verified User
Joined
Nov 18, 2013
Messages
127
When compiling the latest php 7.4.7, I got the following error:
In file included from /usr/local/directadmin/custombuild/php-7.4.7/ext/zip/zip_stream.c:29:0:
/usr/local/directadmin/custombuild/php-7.4.7/ext/zip/php_zip.h:30:17: fatal error: zip.h: No such file or directory
#include <zip.h>
This is solved by installing libzip separately:
./build libzip
 
Top