码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 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。

  • 相关阅读:
    Github 自动化部署到github pages
    MySQL调优之show profile 应用
    数据科学家的编程语言
    再见,区块链 Rio会议和以太坊Sao Paolo活动。 你好,闪光时刻
    百度ERNIE系列预训练语言模型浅析(2)-ERNIE2.0
    Mybatis 下划线_英文 _test 与 下划线_数字 _1 等特殊字段无法映射为实体类的字段问题
    AI工程化—— 如何让AI在企业多快好省的落地?
    「Verilog学习笔记」根据状态转移表实现时序电路
    软件测试之概念篇(需求,测试用例,BUG描述,产品的生命周期)
    蓝蓝设计提供地理信息系统GIS界面设计
  • 原文地址:https://blog.csdn.net/qiuchangyong/article/details/128151259
  • 最新文章
  • 沪漂五周年了:我越来越迷茫了
    Agentic Skill Routing 实战:别再把所有 Skill 塞进 AI Agent 上下文
    MySQL-Seconds_behind_master的精度误差
    [MAF预定义ChatClient中间件-03]CachingChatClient——利用缓存省钱省时间
    AI的至暗历史:从万众期待到被政府撤资,AI的两次死亡徘徊
    Agent OS :五种驯服不确定性的范式
    PortSwigger SQL注入LAB11
    数据库即时编译JIT
    [Begin]AI Learn Data Day 0
    深度学习进阶(二十七)现代 LLM 的核心架构设计其二:SwiGLU
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号