Composer installation, the lack of GD library, compile and install GD error?

Source: Internet
Author: User
The error code is as follows

root@ubuntu:~/lnmp/src/php-5.6.14/ext/gd# make && make install/bin/bash/root/lnmp/src/php-5.6.14/ext/gd/ Libtool--mode=compile cc-i/root/lnmp/src/php-5.6.14/ext/gd/libgd-dhave_libpng-i.-i/root/lnmp/src/php-5.6.14/ext /gd-dphp_atom_inc-i/root/lnmp/src/php-5.6.14/ext/gd/include-i/root/lnmp/src/php-5.6.14/ext/gd/main-i/root/lnmp /src/php-5.6.14/ext/gd-i/usr/local/php/include/php-i/usr/local/php/include/php/main-i/usr/local/php/include/ Php/tsrm-i/usr/local/php/include/php/zend-i/usr/local/php/include/php/ext-i/usr/local/php/include/php/ext/date /lib-dhave_config_h-g-o2-c/root/lnmp/src/php-5.6.14/ext/gd/gd.c-o gd.lo mkdir. Libs cc-i/root/lnmp/src/php-5.6. 14/ext/gd/libgd-dhave_libpng-i.-i/root/lnmp/src/php-5.6.14/ext/gd-dphp_atom_inc-i/root/lnmp/src/php-5.6.14/ext /gd/include-i/root/lnmp/src/php-5.6.14/ext/gd/main-i/root/lnmp/src/php-5.6.14/ext/gd-i/usr/local/php/include/ Php-i/usr/local/php/include/php/main-i/usr/local/php/include/php/tsrm-i/usr/local/php/include/php/zend-i/usr/local/php/include/php/ext-i/usr/local/php/include/php/ext/date/lib-dhave_config_h- G-o2-c/root/lnmp/src/php-5.6.14/ext/gd/gd.c-fpic-dpic-o. Libs/gd.o/root/lnmp/src/php-5.6.14/ext/gd/gd.c:80:24:  Fatal error:ft2build.h:no such file or directory # include
  
   
    ^compilation Terminated.make: * * * [Gd.lo] Error 1
   
  

Reply content:

The error code is as follows

root@ubuntu:~/lnmp/src/php-5.6.14/ext/gd# make && make install/bin/bash/root/lnmp/src/php-5.6.14/ext/gd/ Libtool--mode=compile cc-i/root/lnmp/src/php-5.6.14/ext/gd/libgd-dhave_libpng-i.-i/root/lnmp/src/php-5.6.14/ext /gd-dphp_atom_inc-i/root/lnmp/src/php-5.6.14/ext/gd/include-i/root/lnmp/src/php-5.6.14/ext/gd/main-i/root/lnmp /src/php-5.6.14/ext/gd-i/usr/local/php/include/php-i/usr/local/php/include/php/main-i/usr/local/php/include/ Php/tsrm-i/usr/local/php/include/php/zend-i/usr/local/php/include/php/ext-i/usr/local/php/include/php/ext/date /lib-dhave_config_h-g-o2-c/root/lnmp/src/php-5.6.14/ext/gd/gd.c-o gd.lo mkdir. Libs cc-i/root/lnmp/src/php-5.6. 14/ext/gd/libgd-dhave_libpng-i.-i/root/lnmp/src/php-5.6.14/ext/gd-dphp_atom_inc-i/root/lnmp/src/php-5.6.14/ext /gd/include-i/root/lnmp/src/php-5.6.14/ext/gd/main-i/root/lnmp/src/php-5.6.14/ext/gd-i/usr/local/php/include/ Php-i/usr/local/php/include/php/main-i/usr/local/php/include/php/tsrm-i/usr/local/php/include/php/zend-i/usr/local/php/include/php/ext-i/usr/local/php/include/php/ext/date/lib-dhave_config_h- G-o2-c/root/lnmp/src/php-5.6.14/ext/gd/gd.c-fpic-dpic-o. Libs/gd.o/root/lnmp/src/php-5.6.14/ext/gd/gd.c:80:24:  Fatal error:ft2build.h:no such file or directory # include
  
   
    ^compilation Terminated.make: * * * [Gd.lo] Error 1
   
  

 ft2build.h  No such file or directory  
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.