Gamepad & WSN

解决Cygwin “error while loading shared libraries”

日期: 2013-02-28    作者: Gamepader    分类: ARM_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,问题解决。

本文链接:https://blog.gamepader.com/archives/2013/02/solve-cygwin-error-while-loading-shared-libraries.html
本文分类:
>>
除特别标注,本站所有文章均为原创、转载请注明出处。

-- EOF -- ,Leave a msg~~ ^_^

发表评论

loading...