Cygwin version of the Curl installation, extraction, using notes
list DLL Cygwin version of Curl dependent
Curl tool to extract Cygwin version
1 (awkward) extraction
extraction method 2 (the recommended method)
to streamline the Cygwin
can streamline the kit list (personal notes)
Manual unloading step toolkit
normal unloading step kit
installation kit Cygwin step
1. local retrieving toolkit
2. online retrieval kit
to install Cygwin step
Cygwin version of the Curl installation, extraction, using notes
Cygwin version of the Curl HTTPS request to restore function
. If only to copy out the dependent DLL, normal HTTP request is not the problem can be uploaded to the correct Chinese garbled PHP server does not.
But you can not access the HTTPS server is properly prompt the following error:>curl https://baidu.com
curl: (77) error setting certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
Then use a process of elimination folders to exclude a folder, delete finalized at the folder structure and file is required:
├─bin
│ curl.exe
│ cygcom_err-2.dll
│ cygcrypto-1.0.0.dll
│ cygcurl-4.dll
│ cygexpat-1.dll
│ cyggcc_s-seh-1.dll
│ cyggssapi_krb5-2.dll
│ cygiconv-2.dll
│ cygidn-11.dll
│ cygintl-8.dll
│ cygk5crypto-3.dll
│ cygkrb5-3.dll
│ cygkrb5support-0.dll
│ cyglber-2-4-2.dll
│ cygldap-2-4-2.dll
│ cygmetalink-3.dll
│ cygnghttp2-14.dll
│ cygpsl-5.dll
│ cygsasl2-3.dll
│ cygssh2-1.dll
│ cygssl-1.0.0.dll
│ cygunistring-2.dll
│ cygwin1.dll
│ cygz.dll
├─etc
│ └─pki
│ ├─ca-trust
│ │ └─extracted
│ │ └─pem
│ │ tls-ca-bundle.pem
│ └─tls
│ cert.pem(必须是系统属性 attrib +s)
│ certs(必须是系统属性 attrib +s)
└─usr
└─ssl
└─certs
ca-bundle.crt(必须是系统属性 attrib +s)
ca-bundle.trust.crt(必须是系统属性 attrib +s)
Cygwin version of Curl-dependent DLL list
- cygcom_err-2.dll
- cygcrypto-1.0.0.dll
- cygcurl-4.dll
- cygexpat-1.dll
- cyggcc_s-seh-1.dll
- cyggssapi_krb5-2.dll
- cygiconv-2.dll
- cygidn-11.dll
- cygintl-8.dll
- cygk5crypto-3.dll
- cygkrb5-3.dll
- cygkrb5support-0.dll
- cyglber-2-4-2.dll
- cygldap-2-4-2.dll
- cygmetalink-3.dll
- cygnghttp2-14.dll
- cygpsl-5.dll
- cygsasl2-3.dll
- cygssh2-1.dll
- cygssl-1.0.0.dll
- cygunistring-2.dll
- cygwin1.dll
- cygz.dll
Curl tool to extract Cygwin version
Extraction Method 1 (Benbanfa)
- The
\cygwin64\bin
copy of curl.exe directory to the new folder. - In the new folder, run curl, then you will be prompted missing XXX.dll, and then copy the missing dll file into the new folder.
- Step 2 until the cycle can operate normally until the curl.
Extraction Method 2 (recommended method)
- Download software
Dependency Walker
- The software program used to open the curl
- And then File - Save As - Save as type - .txt
- With
高级文本编辑器
open saved text - Extract all the
\cygwin64\bin
DLL directory路径字符串
- With
Excel软件
the repeated路径字符串
removed. - And then in the
高级文本编辑器
years in all路径字符串
together in front ofCOPY /Y
the string and copy all - In another
新文件夹
in the space Shift + to open the context menu - Open command window here - Paste - Enter - get all the DLL!
Streamline Cygwin
Kits can streamline the list (personal notes)
- gawk: GNU awk, a pattern scanning and processing language
- groff: GNU roff formatter
- libdb5.3: Oracle Berkeley D (runtime)
Manually uninstall the toolkit step
Given the use setup tool from uninstalling some toolkits (such as certain core kit) normal, so he had to manually delete related files to uninstall.
This step can be scripted it easy. To delete a file or many words, very manual alignment trouble
early file folder available BeyondCompare software than to delete function.
- Into the cache folder (Local Package Directory)
such as: cache folder \ URL \ x86_64 \ release - Find the need to uninstall the toolkit
, such as: gawk \ gawk-4.1.4-1.tar.xz - According to .tar.xz bag folder structure, to delete Cygwin installation folder (Root Directory) corresponding file.
Normal uninstall the toolkit step
- Referring to install Cygwin kit step reaches step Select Packages
- Click New Kit to be streamlined for the state Keep Uninstall you can uninstall.
Installation kit step Cygwin
1. The local search Toolkit
Theoretically use Install From Local Directory is feasible, because all records can install the tool database setup.ini file has been downloaded, but the actual use of not being able to properly read a list of installable for retrieval only go online to retrieve a .
After exploration, and finally found the method can be directly retrieved a local!
- And " install Cygwin step " as
- But choose Install From Local Directory
- Steps to reach the Select Packages
- Full View is selected at this time
- Then fall back to the previous step
- Then enter the Select Packages steps
- At this time, the scroll bar found a significantly longer. Description success enumerate all available for installation of the kit list.
The guess is a Bug setup? Or is not a statement of "optimization", the first pass only shows "Installed Kit", the second time it displays all the tools available to install the package list?
2. Online Retrieval Kit
- Open setup-x86_64.exe
- And " install Cygwin steps " to reach the same step Select Packages
- Name tool can retrieve want to install.
Cygwin installation steps
-
- Open official website Installation Guide interface
- Download the latest installation package setup-x86_64.exe
- Open Cygwin download mirrors list of sites that choose the nearest country.
As China's:http://mirrors.ustc.edu.cn/cygwin/
,http://mirrors.neusoft.edu.cn/cygwin/
- Select Install From Internet
- In Cygwin Setup - Add selected Choose Download Site Mirror website.
- In Cygwin Setup - When the Select Packages to not select any package
- You can get a simple clean up Cygwin environment.
Reproduced in: https: //www.cnblogs.com/AsionTang/p/6008449.html