shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.85k stars 334 forks source link

memcached Could not install memcached on PHP 8.2.18 #839

Closed iaibai closed 3 months ago

iaibai commented 3 months ago

We're getting the error "Could not install memcached on PHP 8.2.18".

We're using php-version: 8.2, but we did try php-version: 8.3 and it does work on that.

This did seem to work yesterday (25th April), but it hasn't worked at all today.

==> Setup PHP
✓ PHP Installed PHP 8.2.18

==> Setup Extensions
✓ soap Installed and enabled
✗ memcached Could not install memcached on PHP 8.2.18
✓ bcmath Installed and enabled

Our yml is:

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: 8.2
          extensions: soap, memcached, bcmath

Version

Runners

Operating systems ubuntu-latest

PHP versions PHP 8.2

To Reproduce

    steps:
      - uses: actions/checkout@v3
        with:
          ref: ${{ github.event.pull_request.head.sha }}
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: 8.2
          extensions: soap, memcached, bcmath

Expected behavior memcached should not fail to install.

shivammathur commented 3 months ago

@iaibai Which os are you facing this issue on.

iaibai commented 3 months ago

It's ubuntu / ubuntu-latest if I understand correctly?

php_test_and_lint:
    if: github.event.pull_request.draft == false
    runs-on: ubuntu-latest
    container: ubuntu
shivammathur commented 3 months ago

@iaibai

It is not working since ubuntu 24.04 was released 2 days ago and container:ubuntu now points to that. It will take some take for the extension builds to be available for that. Please either remove the container line and directly run on github hosted runners or fix the container version to 22.04 container: ubuntu:22.04.

iaibai commented 3 months ago

Thank you for looking into that. 👍