Checking for freetype2 configure error when installing PHP 5.6.37 from AUR












0














I'm trying to install PHP version 5.6.37 from AUR using makepkg -i command, but when it reaches the moment to check for the "freetype2" it displays the error:




checking for freetype2... configure: error: freetype-config not found.




I already have 7.2 installed, but I need the 5.6 for an older project, and as in Ubuntu, I intend to have both installed.



makepkg -i
==> Making package: php56 5.6.37-1 (Wed 12 Sep 2018 12:27:39 PM +08)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found php-5.6.37.tar.xz
-> Found php-5.6.37.tar.xz.asc
-> Found php.ini.patch
-> Found apache.conf
-> Found php-fpm.conf.in.patch
-> Found logrotate.d.php-fpm
-> Found php-fpm.service
-> Found php-fpm.tmpfiles
-> Found use-enchant2.patch
-> Found php-freetype-2.9.1.patch
==> Validating source files with sha512sums...

[...]

checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-vpx-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
checking for pkg-config... (cached) no
checking for freetype2... configure: error: freetype-config not found.
==> ERROR: A failure occurred in build().
Aborting...


Installing freetype2 with Pacman didn't solve it.










share|improve this question



























    0














    I'm trying to install PHP version 5.6.37 from AUR using makepkg -i command, but when it reaches the moment to check for the "freetype2" it displays the error:




    checking for freetype2... configure: error: freetype-config not found.




    I already have 7.2 installed, but I need the 5.6 for an older project, and as in Ubuntu, I intend to have both installed.



    makepkg -i
    ==> Making package: php56 5.6.37-1 (Wed 12 Sep 2018 12:27:39 PM +08)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Found php-5.6.37.tar.xz
    -> Found php-5.6.37.tar.xz.asc
    -> Found php.ini.patch
    -> Found apache.conf
    -> Found php-fpm.conf.in.patch
    -> Found logrotate.d.php-fpm
    -> Found php-fpm.service
    -> Found php-fpm.tmpfiles
    -> Found use-enchant2.patch
    -> Found php-freetype-2.9.1.patch
    ==> Validating source files with sha512sums...

    [...]

    checking whether to enable truetype string function in GD... yes
    checking whether to enable JIS-mapped Japanese font support in GD... no
    If configure fails try --with-vpx-dir=<DIR>
    checking for jpeg_read_header in -ljpeg... yes
    checking for png_write_image in -lpng... yes
    checking for XpmFreeXpmImage in -lXpm... yes
    checking for pkg-config... (cached) no
    checking for freetype2... configure: error: freetype-config not found.
    ==> ERROR: A failure occurred in build().
    Aborting...


    Installing freetype2 with Pacman didn't solve it.










    share|improve this question

























      0












      0








      0







      I'm trying to install PHP version 5.6.37 from AUR using makepkg -i command, but when it reaches the moment to check for the "freetype2" it displays the error:




      checking for freetype2... configure: error: freetype-config not found.




      I already have 7.2 installed, but I need the 5.6 for an older project, and as in Ubuntu, I intend to have both installed.



      makepkg -i
      ==> Making package: php56 5.6.37-1 (Wed 12 Sep 2018 12:27:39 PM +08)
      ==> Checking runtime dependencies...
      ==> Checking buildtime dependencies...
      ==> Retrieving sources...
      -> Found php-5.6.37.tar.xz
      -> Found php-5.6.37.tar.xz.asc
      -> Found php.ini.patch
      -> Found apache.conf
      -> Found php-fpm.conf.in.patch
      -> Found logrotate.d.php-fpm
      -> Found php-fpm.service
      -> Found php-fpm.tmpfiles
      -> Found use-enchant2.patch
      -> Found php-freetype-2.9.1.patch
      ==> Validating source files with sha512sums...

      [...]

      checking whether to enable truetype string function in GD... yes
      checking whether to enable JIS-mapped Japanese font support in GD... no
      If configure fails try --with-vpx-dir=<DIR>
      checking for jpeg_read_header in -ljpeg... yes
      checking for png_write_image in -lpng... yes
      checking for XpmFreeXpmImage in -lXpm... yes
      checking for pkg-config... (cached) no
      checking for freetype2... configure: error: freetype-config not found.
      ==> ERROR: A failure occurred in build().
      Aborting...


      Installing freetype2 with Pacman didn't solve it.










      share|improve this question













      I'm trying to install PHP version 5.6.37 from AUR using makepkg -i command, but when it reaches the moment to check for the "freetype2" it displays the error:




      checking for freetype2... configure: error: freetype-config not found.




      I already have 7.2 installed, but I need the 5.6 for an older project, and as in Ubuntu, I intend to have both installed.



      makepkg -i
      ==> Making package: php56 5.6.37-1 (Wed 12 Sep 2018 12:27:39 PM +08)
      ==> Checking runtime dependencies...
      ==> Checking buildtime dependencies...
      ==> Retrieving sources...
      -> Found php-5.6.37.tar.xz
      -> Found php-5.6.37.tar.xz.asc
      -> Found php.ini.patch
      -> Found apache.conf
      -> Found php-fpm.conf.in.patch
      -> Found logrotate.d.php-fpm
      -> Found php-fpm.service
      -> Found php-fpm.tmpfiles
      -> Found use-enchant2.patch
      -> Found php-freetype-2.9.1.patch
      ==> Validating source files with sha512sums...

      [...]

      checking whether to enable truetype string function in GD... yes
      checking whether to enable JIS-mapped Japanese font support in GD... no
      If configure fails try --with-vpx-dir=<DIR>
      checking for jpeg_read_header in -ljpeg... yes
      checking for png_write_image in -lpng... yes
      checking for XpmFreeXpmImage in -lXpm... yes
      checking for pkg-config... (cached) no
      checking for freetype2... configure: error: freetype-config not found.
      ==> ERROR: A failure occurred in build().
      Aborting...


      Installing freetype2 with Pacman didn't solve it.







      arch-linux php5






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 12 '18 at 4:43









      gamofe

      17219




      17219






















          1 Answer
          1






          active

          oldest

          votes


















          0














          i know it is too late, but i think that reply can help another users. now i have fixed.
          First i have installed pkg-config
          and then i replaced in the PKGBUILD the line:



          --with-freetype-dir=/usr 


          to



          --with-freetype-dir=/usr/include/freetype  


          I'm not sure which of the two solves the problem, or both LOL.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468425%2fchecking-for-freetype2-configure-error-when-installing-php-5-6-37-from-aur%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            i know it is too late, but i think that reply can help another users. now i have fixed.
            First i have installed pkg-config
            and then i replaced in the PKGBUILD the line:



            --with-freetype-dir=/usr 


            to



            --with-freetype-dir=/usr/include/freetype  


            I'm not sure which of the two solves the problem, or both LOL.






            share|improve this answer


























              0














              i know it is too late, but i think that reply can help another users. now i have fixed.
              First i have installed pkg-config
              and then i replaced in the PKGBUILD the line:



              --with-freetype-dir=/usr 


              to



              --with-freetype-dir=/usr/include/freetype  


              I'm not sure which of the two solves the problem, or both LOL.






              share|improve this answer
























                0












                0








                0






                i know it is too late, but i think that reply can help another users. now i have fixed.
                First i have installed pkg-config
                and then i replaced in the PKGBUILD the line:



                --with-freetype-dir=/usr 


                to



                --with-freetype-dir=/usr/include/freetype  


                I'm not sure which of the two solves the problem, or both LOL.






                share|improve this answer












                i know it is too late, but i think that reply can help another users. now i have fixed.
                First i have installed pkg-config
                and then i replaced in the PKGBUILD the line:



                --with-freetype-dir=/usr 


                to



                --with-freetype-dir=/usr/include/freetype  


                I'm not sure which of the two solves the problem, or both LOL.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 20 '18 at 16:59









                Jhoubert Rincon

                1011




                1011






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468425%2fchecking-for-freetype2-configure-error-when-installing-php-5-6-37-from-aur%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Morgemoulin

                    Scott Moir

                    Souastre