Title: The GD extension of PHP older than 7.4 cannot be compiled on Ubuntu 19.04 · Issue #1033 · phpbrew/phpbrew · GitHub
Open Graph Title: The GD extension of PHP older than 7.4 cannot be compiled on Ubuntu 19.04 · Issue #1033 · phpbrew/phpbrew
X Title: The GD extension of PHP older than 7.4 cannot be compiled on Ubuntu 19.04 · Issue #1033 · phpbrew/phpbrew
Description: $ phpbrew --debug install 7.3.7 +neutral +gd 9.4s ===> phpbrew will now build 7.3.7 ---> Parsing variants from command arguments '+neutral +gd' ===> Loading and resolving variants... Checking distribution checksum... Checksum matched: c3...
Open Graph Description: $ phpbrew --debug install 7.3.7 +neutral +gd 9.4s ===> phpbrew will now build 7.3.7 ---> Parsing variants from command arguments '+neutral +gd' ===> Loading and resolving variants... Checking distr...
X Description: $ phpbrew --debug install 7.3.7 +neutral +gd 9.4s ===> phpbrew will now build 7.3.7 ---> Parsing variants from command arguments '+neutral +gd' ===> Loading and resolving variants....
Opengraph URL: https://github.com/phpbrew/phpbrew/issues/1033
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The GD extension of PHP older than 7.4 cannot be compiled on Ubuntu 19.04","articleBody":"```\r\n$ phpbrew --debug install 7.3.7 +neutral +gd 9.4s\r\n===\u003e phpbrew will now build 7.3.7\r\n---\u003e Parsing variants from command arguments '+neutral +gd'\r\n===\u003e Loading and resolving variants...\r\nChecking distribution checksum...\r\nChecksum matched: c3608fa7114642725854119ccffe722f42fc7c31e5e4c00d5cb4cb1a0d16bf18\r\n===\u003e Distribution file was successfully extracted, skipping...\r\nSource Directory: /home/morozov/.phpbrew/build/php-7.3.7\r\nFound existing Makefile, running make clean to ensure everything will be rebuilt.\r\nYou can append --no-clean option after the install command if you don't want to rebuild.\r\n===\u003e Running make clean: /usr/bin/make -C '/home/morozov/.phpbrew/build/php-7.3.7' --quiet 'clean'\r\nRunning Command:/usr/bin/make -C '/home/morozov/.phpbrew/build/php-7.3.7' --quiet 'clean'\r\nWriting variant info to /home/morozov/.phpbrew/php/php-7.3.7/phpbrew.variants\r\n===\u003e Checking patches...\r\nChecking patch for replace apache php module name with custom version name\r\nEnabled variants: [gd, xml, opcache]\r\nDisabled variants: []\r\n===\u003e Configuring 7.3.7...\r\n\r\n\r\nUse tail command to see what's going on:\r\n $ tail -F /home/morozov/.phpbrew/build/php-7.3.7/build.log\r\n\r\n\r\n./configure '--cache-file=/home/morozov/.phpbrew/cache/config.cache' '--prefix=/home/morozov/.phpbrew/php/php-7.3.7' '--with-config-file-path=/home/morozov/.phpbrew/php/php-7.3.7/etc' '--with-config-file-scan-dir=/home/morozov/.phpbrew/php/php-7.3.7/var/db' '--with-gd=shared' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir=/usr' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-opcache' \u003e\u003e /home/morozov/.phpbrew/build/php-7.3.7/build.log 2\u003e\u00261\r\nError: Configure failed:\r\nThe last 5 lines in the log file:\r\nIf configure fails try --with-webp-dir=\u003cDIR\u003e\r\n\r\nchecking for jpeg_read_header in -ljpeg... yes\r\n\r\nchecking for png_write_image in -lpng... yes\r\n\r\nIf configure fails try --with-xpm-dir=\u003cDIR\u003e\r\n\r\nconfigure: error: freetype-config not found.\r\n\r\nPlease checkout the build log file for more details:\r\n\t tail /home/morozov/.phpbrew/build/php-7.3.7/build.log\r\n```\r\n\r\nThe reason is [Debian Bug #871470](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871470):\r\n\u003e The `freetype-config' script is no longer installed by default\r\n\u003e (Closes: #[871470](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871470), #[886461](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886461)). All packages depending on libfreetype6-dev should use pkg-config to find the relevant CFLAGS and libraries.\r\n\r\nThis problem is fixed in PHP 7.4 (https://github.com/php/php-src/pull/3632) but the older versions need to be patched (see [freetype.patch](https://git.archlinux.org/svntogit/packages.git/tree/trunk/freetype.patch?h=packages/php) from Archlinux).\r\n\r\nAlso, there's a file named `0047-Use-pkg-config-for-FreeType2-detection.patch` in Ondřej Surý's builds for PHP which would probably solve the problem as well (not sure how to reference it).","author":{"url":"https://github.com/morozov","@type":"Person","name":"morozov"},"datePublished":"2019-07-27T10:16:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1033/phpbrew/issues/1033"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:114dd588-1e1d-c2c1-4acf-874c26fa43fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9438:3FD786:34AFAF2:47427C1:6A5DD5A4 |
| html-safe-nonce | e69a3317029a7d092d6a76000f073f0b8e5ba268dc1f3fc1472bce475e040685 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDM4OjNGRDc4NjozNEFGQUYyOjQ3NDI3QzE6NkE1REQ1QTQiLCJ2aXNpdG9yX2lkIjoiNDg0NTMyOTg3MDI5MjM3NDk0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b92c020c4dc78f303f6def85c892df0270ec8a1bb8872ce227a2a19f38bd5635 |
| hovercard-subject-tag | issue:473623896 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpbrew/phpbrew/1033/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b294f0812d3f8fabefd8de61a086b5ae795805f704094fb8b1b155608088fc0/phpbrew/phpbrew/issues/1033 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b294f0812d3f8fabefd8de61a086b5ae795805f704094fb8b1b155608088fc0/phpbrew/phpbrew/issues/1033 |
| og:image:alt | $ phpbrew --debug install 7.3.7 +neutral +gd 9.4s ===> phpbrew will now build 7.3.7 ---> Parsing variants from command arguments '+neutral +gd' ===> Loading and resolving variants... Checking distr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | morozov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/phpbrew/phpbrew git https://github.com/phpbrew/phpbrew.git |
| octolytics-dimension-user_id | 7889581 |
| octolytics-dimension-user_login | phpbrew |
| octolytics-dimension-repository_id | 2468290 |
| octolytics-dimension-repository_nwo | phpbrew/phpbrew |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2468290 |
| octolytics-dimension-repository_network_root_nwo | phpbrew/phpbrew |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width