• cygwin编译wget过程记录


    首先下载wget源码wget-1.21.tar.gz,解压后,执行:./confiugre

    结果提示错误:

    1. >>上面省略...<<
    2. checking for GNUTLS... no
    3. configure: error: Package requirements (gnutls) were not met:
    4. Package 'gnutls', required by 'virtual:world', not found
    5. Consider adjusting the PKG_CONFIG_PATH environment variable if you
    6. installed software in a non-standard prefix.
    7. Alternatively, you may set the environment variables GNUTLS_CFLAGS
    8. and GNUTLS_LIBS to avoid the need to call pkg-config.
    9. See the pkg-config man page for more details.

    缺少gnutls库,用apt-cyg安装:apt-cyg install libgnutls-devel

    再执行./configure,又出现不同的错误提示:

    1. >>上面省略...<<
    2. checking for GNUTLS... no
    3. configure: error: Package requirements (gnutls) were not met:
    4. Package 'nettle', required by 'gnutls', not found
    5. Package 'hogweed', required by 'gnutls', not found
    6. Package 'libtasn1', required by 'gnutls', not found
    7. Package 'p11-kit-1', required by 'gnutls', not found
    8. Consider adjusting the PKG_CONFIG_PATH environment variable if you
    9. installed software in a non-standard prefix.
    10. Alternatively, you may set the environment variables GNUTLS_CFLAGS
    11. and GNUTLS_LIBS to avoid the need to call pkg-config.
    12. See the pkg-config man page for more details.

    提示还缺少被gnutls依赖的库,继续安装:

    apt-cyg install libnettle-devel

    apt-cyg install libtasn1-devel

    apt-cyg install libp11-kit-devel

    再次执行./configure,终于不报错了。

    执行make后,在src目录下出现wget.exe,再运行wget.exe的时候,没想到会弹出好几个dll找不到的问题。去\cygwin64\bin目录下找了,拷贝到wget.exe所在的目录即可。

    上面安装的依赖库还不够,还需要安装以下三个依赖库:

    apt-cyg install libgnutls30

    apt-cyg install libnettle6

    apt-cyg install libhogweed4

    一共有这么几个dll:cygffi-6.dll、cyggcc_s-seh-1.dll、cyggmp-10.dll、cyggnutls-30.dll、cyghogweed-4.dll、cygiconv-2.dll、cygidn2-0.dll、cygintl-8.dll、cygnettle-6.dll、cygp11-kit-0.dll、cygtasn1-6.dll、cygunistring-2.dll、cyguuid-1.dll、cygwin1.dll。

  • 相关阅读:
    RabbitMq,jf,企业微信 或 钉钉
    Ab3d.PowerToys 11.0.8614 Crack
    Linux知识点总结(文件,进程,进程间通信)
    行为型模式-备忘录模式
    劲爆,Java 协程终于来了
    基于 range 的 for 循环和 auto
    企业如何构建内部开发者平台?
    MySQL事务
    Part2_扩展MATSIM_Subpart4_除个人车外的其他模式_第19章 新的基于动态事件的公共交通路由器&第20章 基于矩阵的PT路由器
    c-index的计算
  • 原文地址:https://blog.csdn.net/qiuchangyong/article/details/128151259