cd /www/server/php/72/src/ext/gd
/www/server/php/72/bin/phpize
./configure --with-php-config=/www/server/php/72/bin/php-config
make && make install
extFile='/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/gd.so'
echo -e "extension = " ${extFile} >> /www/server/php/72/etc/php.ini
echo -e "extension = " ${extFile} >> /www/server/php/72/etc/php-cli.ini
/etc/init.d/php-fpm-72 reload
Hello. I'm trying to add gd for php 7.2. Above is an example of how I did it
But I get an error:
PHP Warning: PHP Startup: Unable to load dynamic library '/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/gd.so' (tried: /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/gd.so (/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/gd.so: undefined symbol: php_gd_gdImageJpegCtx), /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718//www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/gd.so.so (/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718//www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
How to solve this problem?
Need imagewebp