Git Product home page Git Product logo

Comments (14)

jonchang avatar jonchang commented on June 4, 2024 4

I've actually hit this issue as well on my non-default prefix Linuxbrew install. Running brew reinstall -s curl fixed the issue.

from brew.

JamezQ avatar JamezQ commented on June 4, 2024 1

I can confirm that I had the same issue and brew reinstall -s curl fixes it.

from brew.

sjackman avatar sjackman commented on June 4, 2024

@ccwang002 Does brew reinstall curl help? Does it pour the curl bottle or build it from source?

from brew.

ccwang002 avatar ccwang002 commented on June 4, 2024

The curl was built from source. brew reinstall curl does not help either.

from brew.

sjackman avatar sjackman commented on June 4, 2024

It's really quite weird that curl is looking for /home/linuxbrew/.linuxbrew/etc/openssl/ when your prefix is /diskmnt/Projects/Users/lwang/.linuxbrew. Could you please report…

grep -rl /home/linuxbrew /diskmnt/Projects/Users/lwang/.linuxbrew/opt/openssl/
grep -rl /home/linuxbrew /diskmnt/Projects/Users/lwang/.linuxbrew/opt/curl/

from brew.

jonchang avatar jonchang commented on June 4, 2024

I suspect the issue is here:

      args << "--with-ca-bundle=#{etc}/openssl/cert.pem"
      args << "--with-ca-path=#{etc}/openssl/certs"

which I suspect hardcodes the path to the certificates in the bottle.

from brew.

ccwang002 avatar ccwang002 commented on June 4, 2024

@sjackman here is the output of the grep search:

$ grep -rl /home/linuxbrew /diskmnt/Projects/Users/lwang/.linuxbrew/opt/openssl/
(nothing)
$ grep -rl /home/linuxbrew /diskmnt/Projects/Users/lwang/.linuxbrew/opt/curl/
/diskmnt/Projects/Users/lwang/.linuxbrew/opt/curl/lib/libcurl.so.4.5.0
/diskmnt/Projects/Users/lwang/.linuxbrew/opt/curl/lib/libcurl.a

from brew.

sjackman avatar sjackman commented on June 4, 2024

Please report the output of…

brew config
brew --prefix
brew remove curl
brew install -s curl
grep -rl /home/linuxbrew /diskmnt/Projects/Users/lwang/.linuxbrew/opt/curl/

from brew.

iMichka avatar iMichka commented on June 4, 2024

Maybe have a look at: https://github.com/Linuxbrew/brew/wiki/FAQ#why-does-curl-fail ?

from brew.

ccwang002 avatar ccwang002 commented on June 4, 2024

@sjackman here is the output (I reinstalled the homebrew at /diskmnt/Projects/Users/lwang/linuxbrew):

Command output
$ brew config
HOMEBREW_VERSION: 2.0.1-29-g9084a62
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9084a629a534ca5e291fbc985116f3ba0f5b7d11
Last commit: 20 hours ago
Core tap ORIGIN: https://github.com/Linuxbrew/homebrew-core
Core tap HEAD: 123c41474b80a1ed7073e5d75215c38959da7142
Core tap last commit: 16 hours ago
HOMEBREW_PREFIX: /diskmnt/Projects/Users/lwang/linuxbrew
HOMEBREW_REPOSITORY: /diskmnt/Projects/Users/lwang/linuxbrew/Homebrew
HOMEBREW_CELLAR: /diskmnt/Projects/Users/lwang/linuxbrew/Cellar
HOMEBREW_CACHE: /diskmnt/Projects/Users/lwang/.cache/Homebrew
HOMEBREW_TEMP: /run/user/1020
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_LOGS: /diskmnt/Projects/Users/lwang/.cache/Homebrew/Logs
HOMEBREW_MAKE_JOBS: 6
HOMEBREW_SYSTEM_CURL_TOO_OLD: 1
CPU: 32-core 64-bit skylake
Homebrew Ruby: 2.3.7 => /diskmnt/Projects/Users/lwang/linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: N/A
Git: 2.20.1 => /diskmnt/Projects/Users/lwang/linuxbrew/bin/git
Curl: 7.64.0 => /diskmnt/Projects/Users/lwang/linuxbrew/opt/curl/bin/curl
Kernel: Linux 3.10.0-862.14.4.el7.x86_64 x86_64 GNU/Linux
OS: CentOS Linux release 7.5.1804 (Core) 
Host glibc: 2.17
/usr/bin/gcc: 4.8.5
glibc: 2.23
gcc: 5.5.0_4
xorg: N/A

$ brew --prefix
/diskmnt/Projects/Users/lwang/linuxbrew

$ brew uninstall --ignore-dependencies curl

$ brew install -s curl
Updating Homebrew...
==> Downloading https://linuxbrew.bintray.com/bottles/curl-7.64.0.x86_64_linux.bottle.tar.gz
Already downloaded: /diskmnt/Projects/Users/lwang/.cache/Homebrew/downloads/3f7451ddc3cb6e438c5123d967d5a32db4c425e0ce33e00afa132bbfeb085d10--curl-7.64.0.x86_64_linux.bottle.tar.gz
==> Pouring curl-7.64.0.x86_64_linux.bottle.tar.gz
🍺 /diskmnt/Projects/Users/lwang/linuxbrew/Cellar/curl/7.64.0: 450 files, 3.7MB
Warning: curl 7.64.0 is already installed and up-to-date
To reinstall 7.64.0, run brew reinstall curl
$ grep -rl /home/linuxbrew /diskmnt/Projects/Users/lwang/linuxbrew/opt/curl/
/diskmnt/Projects/Users/lwang/linuxbrew/opt/curl/lib/libcurl.a
/diskmnt/Projects/Users/lwang/linuxbrew/opt/curl/lib/libcurl.so.4.5.0

It seems that the bottled curl has harcoded the CA path. I followed @jonchang's suggestion to force installing curl form the source by brew reinstall -s curl, and now everything works.

$ grep -rl /home/linuxbrew /diskmnt/Projects/Users/lwang/linuxbrew/opt/curl/
(nothing)

Maybe the wiki should add a note to force installing curl from the source. Thanks for your help!

from brew.

sjackman avatar sjackman commented on June 4, 2024

Ah, there was a regression four days ago in commit https://github.com/Linuxbrew/homebrew-core/commit/fc4a4f0c3fdf676ce086ad93066e2ee8a223ad4b#diff-a7a59ba41131628f779debf43858c613.
This necessary code was removed.

  pour_bottle? do
    reason "The bottle needs to be installed into #{Homebrew::DEFAULT_PREFIX} when built with OpenSSL."
    satisfy { OS.mac? || HOMEBREW_PREFIX.to_s == Homebrew::DEFAULT_PREFIX }
  end

@iMichka Are you able to fix this up? I noticed that the macOS bottles are also missing.
https://github.com/Linuxbrew/homebrew-core/blob/3c44801c2676fc6f4cf0f6d4a36056c98af46557/Formula/curl.rb#L8-L12

from brew.

iMichka avatar iMichka commented on June 4, 2024

Woups. My bad. I'll fix this ASAP.

from brew.

iMichka avatar iMichka commented on June 4, 2024

See https://github.com/Linuxbrew/homebrew-core/pull/11659

from brew.

sjackman avatar sjackman commented on June 4, 2024

Thanks, Michka!

from brew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.