getgrav / docker-grav

Official Docker Image for Grav
https://getgrav.org
199 stars 123 forks source link

configure: error: unrecognized options: --with-freetype, --with-jpeg #26

Open herrnesto opened 4 years ago

herrnesto commented 4 years ago

Hello, I run into this issue. Any ideas why?

configure: error: unrecognized options: --with-freetype, --with-jpeg ERROR: Service 'grav' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends unzip libfreetype6-dev libjpeg62-turbo-dev libpng-dev libyaml-dev libzip4 libzip-dev zlib1g-dev libicu-dev g++ git cron vim && docker-php-ext-install opcache && docker-php-ext-configure intl && docker-php-ext-install intl && docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install -j$(nproc) gd && docker-php-ext-install zip && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1

frunika commented 4 years ago

Which php version / base image do you use?

herrnesto commented 4 years ago

Hi @frunika I used exactly the Dockerfile from this repo. I'm using OSX. I've built it with docker-compose up I removed the options --with-freetype, --with-jpeg and changed the docker-compose to the follwoing:

version: '3.0'

services:
  grav:
    container_name: truetsch_grav
    build: ./
    ports:
      - 8090:80
    volumes:
      - ./:/var/www/html

Now it seems to work.

frunika commented 4 years ago

Then you are using 7.3. Try to use php 7.4 instead. Could be a change between 7.3 and 7.4.

frunika commented 4 years ago

But you are still using php 7.3, @birdnestman ?

herrnesto commented 4 years ago

Hi @frunika , This solves that issue, but now I got an invalid package name freetype

frunika commented 4 years ago

Just tested to build the image, works fine for me.

Where do run into this issue?

MathieuGery commented 4 years ago

Hi, I'm on OSX to, and i encounter the same issue. I have just changed the php version in the Dockerfile (php2.3 => php2.4)

frunika commented 4 years ago

Does it fix the problem @MathieuGery ?

MathieuGery commented 4 years ago

Yes i have created pull requests if you want to merge that upgrade. Have a nice day ☀️

frunika commented 4 years ago

seem's that this issue can be closed