网易镜像
http://mirrors.163.com/cygwin/
32位
http://mirrors.xmission.com/cygwin/x86/release/curl/
下载对应的curl,然后本地直接解压,得到一个usr文件夹,其下有
bin\curl.exe
share\doc\xxx
share\man\xxx
所以,直接全部拷贝到cygwin的usr文件夹:
E:\dev_install_root\cygwin\usr
下面,即可。
只不过此处悲催的,又是遇到一堆权限问题,但是后来还是慢慢的解决了。
5.然后再去重新打开cygwin窗口,验证是否可以找到crul了。
结果还是没有找到。
所以,看来是cygwin没有把/usr/bin加到其path中,此点也是很奇怪的。
不过懒得管了,干脆手动再次把/usr/bin下的curl.exe移至/bin下面即可。
终于,cygwin中可以找到curl了:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Administrator@NYBDHB7EB3XEHP6 ~
$ curl --help
Usage: curl [options...] <url>
Options: (H) means HTTP
/HTTPS
only, (F) means FTP only
--anyauth Pick
"any"
authentication method (H)
-a, --append Append to target
file
when uploading (F
/SFTP
)
--basic Use HTTP Basic Authentication (H)
--cacert FILE CA certificate to verify peer against (SSL)
--capath DIR CA directory to verify peer against (SSL)
-E, --cert CERT[:PASSWD] Client certificate
file
and password (SSL)
--cert-
type
TYPE Certificate
file
type
(DER
/PEM/ENG
) (SSL)
--ciphers LIST SSL ciphers to use (SSL)
--compressed Request compressed response (using deflate or
gzip
)
-K, --config FILE Specify
which
config
file
to
read
--connect-timeout SECONDS Maximum
time
allowed
for
connection
-C, --
continue
-at OFFSET Resumed transfer offset
-b, --cookie STRING
/FILE
String or
file
to
read
cookies from (H)
-c, --cookie-jar FILE Write cookies to this
file
after operation (H)
--create-
dirs
Create necessary
local
directory hierarchy
--crlf Convert LF to CRLF
in
upload
--crlfile FILE Get a CRL list
in
PEM
format
from the given
file
......
|
【总结】
其实,想要在cygwin中安装单个模块,工具等,直接可以从网上找cygwin的景象,比如:
32位
http://mirrors.xmission.com/cygwin/x86/
其中curl的地址是:
32位
http://mirrors.xmission.com/cygwin/x86/release/curl/
然后手动下载对应的工具,解压,放到对应的bin或sbin等路径下即可。
================================================
提示 没有cywmetalink-3.dll
分析后得出 模块名是metalink 找到模块
http://mirrors.163.com/cygwin/x86/release/libmetalink/libmetalink3/
$ curl
D:/cygwin/bin/curl.exe: error while loading shared libraries: cygcurl-4.dll: cannot open shared object file: No such file or directory
http://mirrors.163.com/cygwin/x86/release/curl/libcurl4/
下载安装即可
==============================================
解决Cygwin “error while loading shared libraries”
日期: 2013-02-28 作者: Gamepader 分类: ARM_Linux 标签: Cygwin, Linux, 爱折腾 评论: 0 超过100人围观
今天在网易源安装了最新版的Cygwin,刚刚在Cygwin下执行curl的时候,出现如下提示信息
1 |
$curl: error
while loading shared libraries: ?: cannot open shared object file: No such
file or directory
|
解决办法:
第一步.使用cygcheck检查:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
$cygcheck curl
C:\Dell\Cygwin\bin\curl.exe C:\Dell\Cygwin\bin\cygcurl- 4.dll C:\Dell\Cygwin\bin\cyggcc_s- 1.dll C:\Dell\Cygwin\bin\cygwin1.dll C:\Windows\system32\KERNEL32.dll C:\Windows\system32\API-MS-Win-Core-RtlSupport-L1- 1- 0.dll C:\Windows\system32\ntdll.dll C:\Windows\system32\KERNELBASE.dll C:\Windows\system32\API-MS-Win-Core-ProcessThreads-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-Heap-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-Memory-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-Handle-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-Synch-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-File-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-IO-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-ThreadPool-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-LibraryLoader-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-NamedPipe-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-Misc-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-SysInfo-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-Localization-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-ProcessEnvironment-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-String-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-Debug-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-ErrorHandling-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-Fibers-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-Util-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Core-Profile-L1- 1- 0.dll C:\Windows\system32\API-MS-Win-Security-Base-L1- 1- 0.dll C:\Dell\Cygwin\bin\cygcrypto-1.0.0.dll C:\Dell\Cygwin\bin\cygz.dll C:\Dell\Cygwin\bin\cyggssapi- 3.dll C:\Dell\Cygwin\bin\cygheimntlm- 0.dll C:\Dell\Cygwin\bin\cygkrb5- 26.dll C:\Dell\Cygwin\bin\cygasn1- 8.dll C:\Dell\Cygwin\bin\cygroken- 18.dll C:\Dell\Cygwin\bin\cygcrypt- 0.dll C:\Dell\Cygwin\bin\cygcom_err- 2.dll C:\Dell\Cygwin\bin\cygwind- 0.dll C:\Dell\Cygwin\bin\cyghx509- 5.dll C:\Dell\Cygwin\bin\cygintl- 8.dll C:\Dell\Cygwin\bin\cygiconv- 2.dll C:\Dell\Cygwin\bin\cygsqlite3- 0.dll C:\Dell\Cygwin\bin\cygheimbase- 1.dll C:\Dell\Cygwin\bin\cygidn- 11.dll C:\Dell\Cygwin\bin\cyglber- 2- 4- 2.dll C:\Dell\Cygwin\bin\cygldap- 2- 4- 2.dll C:\Dell\Cygwin\bin\cygssl-1.0.0.dll C:\Dell\Cygwin\bin\cygssh2- 1.dll C:\Dell\Cygwin\bin\cygmetalink- 3.dll C:\Dell\Cygwin\bin\cygexpat- 1.dll cygcheck: track_down: could not find cygsasl2- 2.dll |
发现是缺少了cygsasl2-2.dll
第二步.分析丢失的模块并安装:
有文件名分析丢失的模块名字应该为cygsasl2,当然也有可能是cygsasl,cyg,sasl2等,一个个都使用Cygwin的Setup.exe安装上,发现丢失的模块名字应该是sasl2,点选install,问题解决