Skip to content

Commit

Permalink
(maint) Install libcurl dev package for gem dependencies
Browse files Browse the repository at this point in the history
Bundler is failing to build the patron gem because it can't find curl
header files:

  /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/patron-0.13.3/ext/patron
  /opt/hostedtoolcache/Ruby/2.7.8/x64/bin/ruby -I
  /opt/hostedtoolcache/Ruby/2.7.8/x64/lib/ruby/2.7.0 -r
  ./siteconf20241122-2121-nayw1.rb extconf.rb
  checking for curl-config... no
  checking for -lcurl... no
  *** extconf.rb failed ***
  Could not create Makefile due to some reason, probably lack of necessary
  libraries and/or headers.  Check the mkmf.log file for more details.
  ...
  extconf.rb:10:in `<main>':   Can't find libcurl or curl/curl.h
  (RuntimeError)

Installing the libcurl4-openssl-dev package fixes this.
  • Loading branch information
jpartlow committed Nov 22, 2024
1 parent 7637d8b commit c7651f3
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-add-compiler-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-add-compiler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-add-replica-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-add-replica.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-backup-restore-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-backup-restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-failover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-fips-install-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-install-latest-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-install-latest-xlarge-dev-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-install-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-install-rhel-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-legacy-compilers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-legacy-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-upgrade-latest-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-upgrade-latest-xlarge-dev-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-upgrade-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Install libcurl dev for gem deps
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
Expand Down

0 comments on commit c7651f3

Please sign in to comment.