DEV Community

01kg
01kg

Posted on

RIME Input | curl: (6) Could not resolve host: raw.githubusercontent.com

My Chinese friend's computer is behind a proxy. He got this error and wondering why:

# Windows Command Prompt

Rime package installer

Working directory: C:\Program Files\Rime\weasel-0.16.1
Package installer directory: C:\Program Files\Rime\weasel-0.16.1\
Download cache directory: C:\Users\admin\AppData\Local\Temp
Rime user directory: C:\Users\admin\AppData\Roaming\Rime


Enter package name, URL, user/repo or downloaded ZIP to install: double-pinyin
Downloading rime-install ...
curl: (6) Could not resolve host: raw.githubusercontent.com

Installation failed: Error downloading rime-install
Enter fullscreen mode Exit fullscreen mode

The problems:

  1. Firewall blocked target domain.
  2. Windows Command Prompt (CMD) does not use system proxy by default, you should set HTTP_PROXY and HTTPS_PROXY env vars to tell it.
  3. Rime package installer is running in a separated CMD session, should set proxy relates env vars individually.

Solution:

# Under C:\Program Files\Rime\weasel-0.16.1
set HTTP_PROXY=http://ADDRESS:PORT
set HTTPS_PROXY=%HTTP_PROXY%
rime-install
Enter fullscreen mode Exit fullscreen mode
👋 Was this post useful to you?

Why haven't you joined DEV yet?

It takes one minute to join DEV and is worth it for your career.

Join now

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More