Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
herrnesto opened this issue Aug 5, 2020 · 10 comments
Open

Comments

@herrnesto
Copy link

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
Copy link
Contributor

frunika commented Aug 6, 2020

Which php version / base image do you use?

@herrnesto
Copy link
Author

herrnesto commented Aug 6, 2020

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
Copy link
Contributor

frunika commented Aug 6, 2020

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

@frunika
Copy link
Contributor

frunika commented Aug 6, 2020

But you are still using php 7.3, @birdnestman ?

@herrnesto
Copy link
Author

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

@frunika
Copy link
Contributor

frunika commented Aug 7, 2020

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

Where do run into this issue?

@MathieuGery
Copy link
Contributor

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
Copy link
Contributor

frunika commented Aug 10, 2020

Does it fix the problem @MathieuGery ?

@MathieuGery
Copy link
Contributor

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

@frunika
Copy link
Contributor

frunika commented Aug 11, 2020

seem's that this issue can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants