-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
libcurl not included in ubuntu-latest software #37
Comments
This seems correct. libcurl is documented as being installed, and is installed. We don't document that the development headers are installed, and indeed, they are not. Your |
Hi @ethomson thanks for getting back to me. Now, my understanding of the Patron gem is that the latter, When you say
are you sure you're referring to the development libraries? Or are you referring to the command line tool to make requests?
|
Yes, this is 100% correct, they are different things. However, many Linux distributions split up the distribution of libraries into two different packages:
So libcurl itself is operational and usable when only the (Note that I simplified a little in calling this |
I see, that was really insightful, thank you @ethomson. Thanks for the clarification! |
Thanks @iMacTia! 😁 Let us know if you have any other questions or concerns. |
Since installing libcurl-openssl-dev changes libcurl from libcurl3 to libcurl4, this can break some other things you may need, thus you can get the headers by themselves like so: - name: Install cURL Headers
run: curl https://curl.haxx.se/download/curl-$V.tar.gz | sudo tar xz -C /usr --strip-components=1 curl-$V/include
env:
V: 7.58.0 |
Inspiration from actions/runner-images#37 (comment)
- ref: actions/runner-images#37 (comment) Signed-off-by: Peter Boling <[email protected]>
@mxcl I am getting an error with your snippet:
It may be out of date already? |
- ref: actions/runner-images#37 (comment) Signed-off-by: Peter Boling <[email protected]>
The download failed, check the tarball exists. |
- ref: actions/runner-images#37 (comment) Signed-off-by: Peter Boling <[email protected]>
- ref: actions/runner-images#37 (comment) Signed-off-by: Peter Boling <[email protected]>
For future reference, to make it work, add the following step to the Github Actions workflow: - name: Install cURL Headers
run: sudo apt-get install libcurl4-openssl-dev Thanks @pboling for linking your solution to this issue :) |
In addition to this, for even further future reference, the above will still fail in ubuntu-latest (20.04 at the time of writing). You'll need to run |
This removes the downstream dependency on patron, which needs cURL headers in order to build correctly on Ubuntu machines. The missing headers cause issues on both GitHub CI runners (actions/runner-images#37) and our automated deploys (https://sul-ci-prod.stanford.edu/job/SUL-DLSS/job/earthworks/job/master/56/display/redirect).
This removes the downstream dependency on patron, which needs cURL headers in order to build correctly on Ubuntu machines. The missing headers cause issues on both GitHub CI runners (actions/runner-images#37) and our automated deploys (https://sul-ci-prod.stanford.edu/job/SUL-DLSS/job/earthworks/job/master/56/display/redirect).
This removes the downstream dependency on patron, which needs cURL headers in order to build correctly on Ubuntu machines. The missing headers cause issues on both GitHub CI runners (actions/runner-images#37) and our automated deploys (https://sul-ci-prod.stanford.edu/job/SUL-DLSS/job/earthworks/job/master/56/display/redirect).
This removes the downstream dependency on patron, which needs cURL headers in order to build correctly on Ubuntu machines. The missing headers cause issues on both GitHub CI runners (actions/runner-images#37) and our automated deploys (https://sul-ci-prod.stanford.edu/job/SUL-DLSS/job/earthworks/job/master/56/display/redirect).
This removes the downstream dependency on patron, which needs cURL headers in order to build correctly on Ubuntu machines. The missing headers cause issues on both GitHub CI runners (actions/runner-images#37) and our automated deploys (https://sul-ci-prod.stanford.edu/job/SUL-DLSS/job/earthworks/job/master/56/display/redirect).
ubuntu runner can't install curl. I'm trying the solution suggested here actions/runner-images#37
Describe the bug
This article lists
libcurl
between the available software forubuntu-latest
, however installing thePatron
ruby gem fails withCan't find libcurl or curl/curl.h (RuntimeError)
.Virtual environments affected
Expected behavior
It should be possible to install the patron gem without first installing any other dependency (apart from
bundler
).Actual behavior
Installation of
Patron
ruby gem fails withCan't find libcurl or curl/curl.h (RuntimeError)
.Adding
sudo apt-get install libcurl4-openssl-dev
to the step fixes the issue, but it should not be necessary.Workflow job:
Gemfile:
The text was updated successfully, but these errors were encountered: