Comments (14)
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.
I can confirm that I had the same issue and brew reinstall -s curl
fixes it.
from brew.
@ccwang002 Does brew reinstall curl
help? Does it pour the curl
bottle or build it from source?
from brew.
The curl was built from source. brew reinstall curl
does not help either.
from brew.
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.
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.
@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.
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.
Maybe have a look at: https://github.com/Linuxbrew/brew/wiki/FAQ#why-does-curl-fail ?
from brew.
@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, runbrew 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.
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.
Woups. My bad. I'll fix this ASAP.
from brew.
See https://github.com/Linuxbrew/homebrew-core/pull/11659
from brew.
Thanks, Michka!
from brew.
Related Issues (20)
- brew install mongodb gives SyntaxError HOT 4
- Repeated `xorgproto`-related warnings output from several core commands (e.g. `doctor`, `leaves`) HOT 30
- brew audit/style error when your Ruby2.6RubyGems3.0.2 HOT 3
- Brew upgrade don't delete old version's Cellar directory for packages installed from sources HOT 1
- brew won't use correct git version HOT 1
- Failure while executing git config, exit code 129 HOT 27
- Unable to install linuxbrew to vps server over ssh. " Cannot write: No space left on device HOT 2
- "Cannot write: No space left on device" when trying to install linuxbrew to VPS server HOT 29
- brew bundle dump fails HOT 2
- Redirect http://linuxbrew.sh to https://linuxbrew.sh HOT 1
- `brew install yarn` does not support `--without-node` HOT 1
- Vendored Ruby install fails with unhelpful message on i686 HOT 6
- Cannot execute one-line installation as root HOT 1
- Error: cannot load such file -- irb HOT 1
- Stuck in rebase HOT 2
- Unable to resolve dependency: user requested 'did_you_mean' HOT 8
- cannot load such file -- os/linux/glibc HOT 5
- pipenv does not install HOT 9
- Applying patch breaks brew HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brew.