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

Unable to install gmp or bcmath extensions #492

Closed
3 of 5 tasks
oschwald opened this issue Sep 14, 2021 · 3 comments
Closed
3 of 5 tasks

Unable to install gmp or bcmath extensions #492

oschwald opened this issue Sep 14, 2021 · 3 comments
Assignees
Labels
bug Something isn't working node images Issue on to shivammathur/node images self-hosted

Comments

@oschwald
Copy link

Describe the bug

At some point in the last three months, bcmath and gmp stopped working in our workflow with no change to the workflow itself. We were installing PHP manually with spc, but the same things happens when switching back to setup-php. See the last successful run vs. a current run.

As you can see, we are getting errors like "bcmath Could not install bcmath on PHP 7.3.30" with no further information.

image

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems

ubuntu-latest

PHP versions

7.2 - 8.0.

To Reproduce

    strategy:
      matrix:
        arch: ["amd64", "i386"]
        operating-system: [ubuntu-latest]
        php-versions: ['7.2', '7.3', '7.4', '8.0']
        php-extensions: ['bcmath', 'gmp']
    steps:
      - name: Install PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-versions }}
          extensions: "mbstring, intl, ${{ matrix.php-extensions }}"
          tools: "composer, phpize"
          coverage: xdebug

Expected behavior

bcmath and gmp are installed when appropriate.

Screenshots/Logs

See above.

Additional context

Are you willing to submit a PR?

If I had any idea what the bug was, perhaps.

@oschwald oschwald added the bug Something isn't working label Sep 14, 2021
@shivammathur
Copy link
Owner

@oschwald I will check this

@shivammathur
Copy link
Owner

@oschwald
Sorry about the regression.

Fixed in c644f65.
Test workflow

Please restart your workflow.

@shivammathur shivammathur added self-hosted node images Issue on to shivammathur/node images labels Sep 14, 2021
@oschwald
Copy link
Author

Works great. Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node images Issue on to shivammathur/node images self-hosted
Projects
None yet
Development

No branches or pull requests

2 participants