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

Cannot install Pecl http extension #396

Closed
2 of 5 tasks
llaville opened this issue Jan 16, 2021 · 1 comment
Closed
2 of 5 tasks

Cannot install Pecl http extension #396

llaville opened this issue Jan 16, 2021 · 1 comment
Assignees
Labels
workflow-edit Issue can be fixed by editing the GitHub Action workflow

Comments

@llaville
Copy link

Describe the bug

Cannot install pecl http extension 3.2.4 (http://pecl.php.net/package/pecl_http)

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 18.04

PHP versions

PHP 7.4.13

To Reproduce

Workflow is available online at https://github.com/llaville/php-compatinfo-db/blob/master/.github/workflows/php-tests.yaml

Expected behavior

Extension http and its dependencies raphf and propro installed

Screenshots/Logs

Logs available at https://github.com/llaville/php-compatinfo-db/runs/1713249088#step:3:65

github_com_llaville_php-compatinfo-db_runs_1713249088#step_3_65

Additional context

I'm be able to install http pecl extension 3.2.4 on my docker environment, Ubuntu 18.04, PHP 7.4.14 with all its dependencies (raphf 2.0.1, propro 2.1.0, and librairies as explained at https://mdref.m6w6.name/http), in my project : see comment at llaville/php-compatinfo-db#63 (comment)

I've also tried to install it locally with act 0.2.17 without success: see comment at llaville/php-compatinfo-db#63 (comment)

Are you willing to submit a PR?

No skill to do it, sorry !

@llaville llaville added the bug Something isn't working label Jan 16, 2021
@shivammathur
Copy link
Owner

shivammathur commented Jan 16, 2021

To install from packages.

specify these extensions in this order raphf, propro, http

    strategy:
      matrix:
        php: ['7.4', '8.0']
    steps:
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}
          extensions: raphf, propro, http

Test workflow: https://github.com/shivammathur/test-setup-php/actions/runs/489948004/workflow

To install using PECL:

Install libcurl4-openssl-dev before running setup-php and suffix pecl_http with appropriate versions for PHP 7.4 and PHP 8.0.

    strategy:
      matrix:
        include:
          - php: '7.4'
            extensions: 'pecl_http-3.2.4'
          - php: '8.0'
            extensions: 'pecl_http-4.0.0'
    steps:
      - run: sudo apt-fast install libcurl4-openssl-dev -y  
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}
          extensions: ${{ matrix.extensions }}

Test workflow: https://github.com/shivammathur/test-setup-php/actions/runs/489958829/workflow

@shivammathur shivammathur added workflow-edit Issue can be fixed by editing the GitHub Action workflow and removed bug Something isn't working labels Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workflow-edit Issue can be fixed by editing the GitHub Action workflow
Projects
None yet
Development

No branches or pull requests

2 participants