Cygwin version of the Curl installation, extraction, using notes

 Cygwin version of the Curl installation, extraction, using notes

 

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

  1. cygcom_err-2.dll
  2. cygcrypto-1.0.0.dll
  3. cygcurl-4.dll
  4. cygexpat-1.dll
  5. cyggcc_s-seh-1.dll
  6. cyggssapi_krb5-2.dll
  7. cygiconv-2.dll
  8. cygidn-11.dll
  9. cygintl-8.dll
  10. cygk5crypto-3.dll
  11. cygkrb5-3.dll
  12. cygkrb5support-0.dll
  13. cyglber-2-4-2.dll
  14. cygldap-2-4-2.dll
  15. cygmetalink-3.dll
  16. cygnghttp2-14.dll
  17. cygpsl-5.dll
  18. cygsasl2-3.dll
  19. cygssh2-1.dll
  20. cygssl-1.0.0.dll
  21. cygunistring-2.dll
  22. cygwin1.dll
  23. cygz.dll

Curl tool to extract Cygwin version

Extraction Method 1 (Benbanfa)

  1. The  \cygwin64\bin copy of curl.exe directory to the new folder.
  2. 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.
  3. Step 2 until the cycle can operate normally until the curl.

Extraction Method 2 (recommended method)

  1. Download software Dependency Walker
  2. The software program used to open the curl
  3. And then File - Save As - Save as type - .txt
  4. With  高级文本编辑器 open saved text
  5. Extract all the  \cygwin64\bin DLL directory 路径字符串
  6. With  Excel软件 the repeated  路径字符串 removed.
  7. And then in the  高级文本编辑器 years in all  路径字符串 together in front of  COPY /Y the string and copy all
  8. In another  新文件夹 in the space Shift + to open the context menu - Open command window here
  9. Paste - Enter - get all the DLL!

Streamline Cygwin

Kits can streamline the list (personal notes)

  1. gawk: GNU awk, a pattern scanning and processing language
  2. groff: GNU roff formatter
  3. 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.

  1. Into the cache folder (Local Package Directory) 
    such as: cache folder \ URL \ x86_64 \ release
  2. Find the need to uninstall the toolkit 
    , such as: gawk \ gawk-4.1.4-1.tar.xz
  3. According to .tar.xz bag folder structure, to delete Cygwin installation folder (Root Directory) corresponding file.

Normal uninstall the toolkit step

  1. Referring to  install Cygwin kit step  reaches step Select Packages
  2. 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!

  1. And " install Cygwin step " as
  2. But choose Install From Local Directory
  3. Steps to reach the Select Packages
  4. Full View is selected at this time
  5. Then fall back to the previous step
  6. Then enter the  Select Packages steps
  7. 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

  1. Open setup-x86_64.exe
  2. And " install Cygwin steps " to reach the same step Select Packages
  3. Name tool can retrieve want to install.

 

Cygwin installation steps

    1. Open official website  Installation Guide  interface
    2. Download the latest installation package  setup-x86_64.exe
    3. 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/
    4. Select Install From Internet
    5. In Cygwin Setup - Add selected Choose Download Site Mirror website.
    6. In Cygwin Setup - When the Select Packages to not select any package
    7. You can get a simple clean up Cygwin environment.

Reproduced in: https: //www.cnblogs.com/AsionTang/p/6008449.html

Guess you like

Origin blog.csdn.net/weixin_34356138/article/details/93270648