精华内容
下载资源
问答
  • 2022-03-04 11:18:47

    windows10+opencv+cmake
    cmake编译opencv遇见下列错误的解决方法

    CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
      IPPICV: Download failed: 6;"Couldn't resolve host name"
    
      For details please refer to the download log file:
    
      C:/Users/freeyu/Desktop/opencv/opencv-4.1.0/cudabuild/CMakeDownloadLog.txt
    
    Call Stack (most recent call first):
      3rdparty/ippicv/ippicv.cmake:42 (ocv_download)
      cmake/OpenCVFindIPP.cmake:243 (download_ippicv)
      cmake/OpenCVFindLibsPerf.cmake:12 (include)
      CMakeLists.txt:773 (include)
    
    
    CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
      ADE: Download failed: 35;"SSL connect error"
    
      For details please refer to the download log file:
    
      C:/Users/freeyu/Desktop/opencv/opencv-4.1.0/cudabuild/CMakeDownloadLog.txt
    
    Call Stack (most recent call first):
      modules/gapi/cmake/DownloadADE.cmake:10 (ocv_download)
      modules/gapi/cmake/init.cmake:16 (include)
      cmake/OpenCVModule.cmake:312 (include)
      cmake/OpenCVModule.cmake:375 (_add_modules_1)
      modules/CMakeLists.txt:7 (ocv_glob_modules)
    
    
    CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
      FFMPEG: Download failed: 6;"Couldn't resolve host name"
    
      For details please refer to the download log file:
    
      C:/Users/freeyu/Desktop/opencv/opencv-4.1.0/cudabuild/CMakeDownloadLog.txt
    
    Call Stack (most recent call first):
      3rdparty/ffmpeg/ffmpeg.cmake:20 (ocv_download)
      modules/videoio/cmake/detect_ffmpeg.cmake:14 (download_win_ffmpeg)
      modules/videoio/cmake/init.cmake:3 (include)
      modules/videoio/cmake/init.cmake:24 (add_backend)
      cmake/OpenCVModule.cmake:312 (include)
      cmake/OpenCVModule.cmake:375 (_add_modules_1)
      modules/CMakeLists.txt:7 (ocv_glob_modules)
    
    CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
      FFMPEG: Download failed: 6;"Couldn't resolve host name"
    
      For details please refer to the download log file:
    
      C:/Users/freeyu/Desktop/opencv/opencv-4.1.0/cudabuild/CMakeDownloadLog.txt
    
    Call Stack (most recent call first):
      3rdparty/ffmpeg/ffmpeg.cmake:20 (ocv_download)
      modules/videoio/cmake/detect_ffmpeg.cmake:14 (download_win_ffmpeg)
      modules/videoio/cmake/init.cmake:3 (include)
      modules/videoio/cmake/init.cmake:24 (add_backend)
      cmake/OpenCVModule.cmake:312 (include)
      cmake/OpenCVModule.cmake:375 (_add_modules_1)
      modules/CMakeLists.txt:7 (ocv_glob_modules)
    
    CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
      FFMPEG: Download failed: 6;"Couldn't resolve host name"
    
      For details please refer to the download log file:
    
      C:/Users/freeyu/Desktop/opencv/opencv-4.1.0/cudabuild/CMakeDownloadLog.txt
    
    Call Stack (most recent call first):
      3rdparty/ffmpeg/ffmpeg.cmake:20 (ocv_download)
      modules/videoio/cmake/detect_ffmpeg.cmake:14 (download_win_ffmpeg)
      modules/videoio/cmake/init.cmake:3 (include)
      modules/videoio/cmake/init.cmake:24 (add_backend)
      cmake/OpenCVModule.cmake:312 (include)
      cmake/OpenCVModule.cmake:375 (_add_modules_1)
      modules/CMakeLists.txt:7 (ocv_glob_modules)
    

    解决方法

    在使用cmake编译时会在opencv下新建一个文件夹,我的是cudabuild
    在cudabuild文件夹下找到CMakeDownloadLog.txt

    以 **IPPICV: Download failed: 6;“Couldn’t resolve host name”**错误为例
    在CMakeDownloadLog.txt找到对应IPPICV信息

    IPPICV信息

    #do_unpack "ippicv_2019_win_intel64_20180723_general.zip" "1d222685246896fe089f88b8858e4b2f" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/32e315a5b106a7b89dbed51c28f8120a48b368b4/ippicv/ippicv_2019_win_intel64_20180723_general.zip" "C:/Users/freeyu/Desktop/opencv/opencv-4.1.0/cudabuild/3rdparty/ippicv"
    #cmake_download "C:/Users/freeyu/Desktop/opencv/opencv-4.1.0/sources/.cache/ippicv/1d222685246896fe089f88b8858e4b2f-ippicv_2019_win_intel64_20180723_general.zip" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/32e315a5b106a7b89dbed51c28f8120a48b368b4/ippicv/ippicv_2019_win_intel64_20180723_general.zip"
    
    • 在IPPCV信息里找到下载路径https://raw.githubusercontent.com/opencv/opencv_3rdparty/32e315a5b106a7b89dbed51c28f8120a48b368b4/ippicv/ippicv_2019_win_intel64_20180723_general.zip
    • 打开https://ghproxy.com/,复制路径,就会下载ippicv_2019_win_intel64_20180723_general.zip
    • 在IPPCV信息里找到C:/Users/freeyu/Desktop/opencv/opencv-4.1.0/sources/.cache/ippicv/1d222685246896fe089f88b8858e4b2f-ippicv_2019_win_intel64_20180723_general.zip
    • 把下载的文件重命名为1d222685246896fe089f88b8858e4b2f-ippicv_2019_win_intel64_20180723_general.zip
    • 把重命名的文件放入C:/Users/freeyu/Desktop/opencv/opencv-4.1.0/sources/.cache/ippicv中,原来的文件直接可以查看一下是0kb,直接删掉就行

    其他问题的解决方法同理

    更多相关内容
  • fatal: unable to access 'https://ip_or_domain/xx/xx.git/': SSL: no alternative certificate subject name matches target host name 'ip_or_domain' 解决办法: disable ssl verify git config --global ...

    git clone 时的常见错误:

    1. fatal: unable to access 'https://ip_or_domain/xx/xx.git/': SSL: no alternative certificate subject name matches target host name 'ip_or_domain'

     

    解决办法: disable ssl verify

    git config --global http.sslVerify false

    2. remote: HTTP Basic: Access denied
    remote: You must use a personal access token with 'read_repository' or 'write_repository' scope for Git over HTTP.
    remote: You can generate one at https://ip_or_domain/profile/personal_access_tokens
    fatal: Authentication failed for 'https://ip_or_domain/xxx/xxx.git/'

     

    解决办法:生成access token

    按提示进入 https://ip_or_domain/profile/personal_access_tokens  ip_or_domain 是你具体项目的地址 

     

    git clone 时,需要输入密码的地方, 输入你生成的 access token

    展开全文
  • 使用 nightly 版本时,Crates 源可能会出现 Couldn't resolve host name (Could not resolve host: crates) 错误(见 https://github.com/ustclug/discussions/issues/294)。一个临时的解决方法是在运行 cargo 的...

    在编译Rust源程序时,可能会出现如下 Couldn't resolve host name (Could not resolve host: crates) 错误(见 https://github.com/ustclug/discussions/issues/294)。

    root $ cargo check
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
      Downloaded actix-http v1.0.1 (registry `git://mirrors.ustc.edu.cn/crates.io-index`)
    warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
      Downloaded async-trait v0.1.30 (registry `git://mirrors.ustc.edu.cn/crates.io-index`)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
      Downloaded chrono v0.4.11 (registry `git://mirrors.ustc.edu.cn/crates.io-index`)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: crates)
    error: failed to download from `https://crates-io.proxy.ustclug.org/api/v1/crates/futures-macro/0.3.4/download`
    
    Caused by:
      [6] Couldn't resolve host name (Could not resolve host: crates)
    

    一个临时的解决方法是在运行 cargo 的时候加入环境变量 CARGO_HTTP_MULTIPLEXING=false。作用是取消并行下载。具体原因可参考用了镜像之后构建rustc报错

    展开全文
  • 搭建rocketmq单机环境时踩坑,找不到自己的主机名对应的ip地址

    搭建rocketmq单机环境时踩坑。

    遇到问题:在使用命令

    nohup sh mqnamesrv &

    出现如下错误

    java.net.UnknownHostException: hadoop03: hadoop03: unknown error
            at java.net.InetAddress.getLocalHost(InetAddress.java:1505) 
            at org.apache.rocketmq.common.BrokerConfig.localHostName(BrokerConfig.java:201) 
            at org.apache.rocketmq.common.BrokerConfig.<init>(BrokerConfig.java:39) 
            at org.apache.rocketmq.broker.BrokerStartup.createBrokerController(BrokerStartup.java:101) 
            at org.apache.rocketmq.broker.BrokerStartup.main(BrokerStartup.java:56)
    Caused by: java.net.UnknownHostException: hadoop03: unknown error
            at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
            at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) 
            at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) 
            at java.net.InetAddress.getLocalHost(InetAddress.java:1500) 
            ... 4 common frames omitted

    这是由于启动的时候找不到自己的主机名对应的ip地址而造成的,只需要让在/etc/hosts中添加如上配置,就可以了

    解决方案:

    按如下命令进行操作

    在文件中加入标红的映射。注意:在编辑过程中可能会出现权限问题,需要切换root账户

    :wq! 保存退出

    使用jps命令查看进程,看是NamesrvStartup是否启动过,如果有关闭它

    sh mqshutdown namesrv

    再次启动mqnamesrv

    nohup sh mqnamesrv &

      

     查看日志,问题解决

    展开全文
  • zabbix发送邮件时报错:Couldn’t resolve host name: Could not resolve host: smtp.sina.com; Unknown error ...124579:20220110:201032.525 failed to send email: Couldn't resolve host name: Could not r
  • “Couldn’t resolve host name””错误 打开build(cmake设定的文件夹)文件下的CMakeDownloadLog.txt,找到跟ffmpeg相关的三个链接 打开ghproxy.com ,输入下面三个链接,会下载三个文件,分别是fmp
  • Addr=127.0.0.1, Name=MTA O DaemonPortOptions=Port=smtp,Addr=192.168.1.95, Name=MTA 5、vim /etc/mail.rc #添加 set from="******@qq.com" set smtp="smtp.qq.com" set smtp-auth-user="********@qq....
  • SSL certificate subject name does not match target host name 双向验证的时候验证host出现问题。 解决方法 在验证书配置忽略host验证。 以下是PHP中设置curl连接选项,其他语言类似。 $ch = curl_init(); ... ...
  • Android studio 编译报错 出现 Host name may not contain blanks 1、关闭as的代理(setting ->Http Proxy -> No proxy) 2、删除 C:\Users\pc.gradle 路径下面的 gradle.properties文件(C:\Users\...
  • 在使用gazebo是出现这个错误:libcurl: (51) SSL: no alternative certificate subject name matches target host name ‘api.ignitionfuel.org’ 我比较直接,方法如下: sudo gedit ~/.ignition/fuel/config.yaml...
  • oracle 24454 client host name is not set

    千次阅读 2020-02-07 14:50:21
    vi /etc/hosts 添加: 127.0.0.1 $本机用户名
  • tail -f /var/log/messages大量报错: May 5 13:56:20 mgmt avahi-daemon[8691]: Registering HINFO record with values 'X86_64'/'LINUX'. May 5 13:56:40 mgmt avahi-daemon[8691]: Server startup ... Host n...
  • curl报错:Couldn't resolve host name

    万次阅读 2020-01-04 00:02:57
    curl 报错:Couldn’t resolve host name 原因 分析: 1、半小时前正常运行,回到宿舍突然不行了,期间没改动任何东西,所以代码没问题 2、之前正常运行、正常上网,所以网络配置(DNS)没问题 找到以下两篇文章,...
  • O DaemonPortOptions=Port=smtp,Addr=192.168.1.95, Name=MTA 5、vim /etc/mail.rc #添加 set from="******@qq.com" set smtp="smtp.qq.com" set smtp-auth-user="********@qq.com" set smtp-auth-...
  • URI does not specify a valid host name org.apache.http.client.ClientProtocolException:URI does not specify a valid host name 代码: String jsonStr =JsonUtils.toJsonStr(entity); String parmas = "'...
  • 解决SSL: no alternative certificate subject name matches target host name '127.0.0.1’的问题 执行命令:git config --global http.sslVerify false
  • May 21 09:40:01 xxx sm-msp-queue[11655]: My unqualified host name (xxx) unknown; sleeping for r May 21 09:41:03 xxx sm-msp-queue[11655]: unable to qualify my own domain name (xxx) -- using sh May 21 ...
  • ## 问题描述 !...如上图所示,通过`curl`发起 POST 请求,...> curl: (51) SSL: no alternative certificate subject name matches target host name 通过异常描述,我们知道,该错误为:没有与目标主机名匹配的证书。
  • clone代码出现 SSL: no alternative certificate subject name matches target host name ‘xxx’ 解决方法:git config --global http.sslVerify false (让git忽略ssl证书错误) 报错原因 SSL证书 ...
  • 用jmeter做接口测试填写好信息头和地址等信息后,总是报错:Host name may not contain blanks 这个报错说明我们上传的信息头里面有空格,大部分情况下我们是复制黏贴,这个时候就会有空格,所以我们需要去信息头...
  • mysql 启动报错信息...[root@xxx ~]# 2018-01-26 17:06:35 33 [Warning] Host name 'bogon' could not be resolved: Name or service not known 2018-01-26 17:06:36 33 [Warning] Host name 'bogon' could not ...
  • certificate common name “sourceforge.net” doesn’t match requested host name “downloads.sourceforge.net”. 解决方案 在使用wget命令时可能会遇到这样的问题,我们可以使用 corl -O -L “你想下载路径” ...
  • hadoop集群的namenode安装在centos65上,主机名为CentOS65App,同时在CentOS65App上也安装了eclipse,在eclipse中运行hadoop的Job... java.net.UnknownHostException: Invalid host name: local host is: (unknown)...
  • 使用wget命令 wget http://www.monkey.org/~provos/libevent-... 报如下错 error:certificate common name "monkey.org" doesn't match requested host name "www.monkey.org" 可使用curl命令 curl -O -L ht...
  • 发现一个jmeter的bug,当http取样器选择DELETE方法时,你脚本中配置使用了“DNS缓存管理器”,执行的时候会报如图错误,把“DNS缓存管理器”禁掉后,就不报这个问题了。...
  • zabbix设置好邮件告警,当有触发时邮件未发送  查看zabbix server日志,提示不能连接邮件发送服务器,但是ping是可以通的 转载于:https://www.cnblogs.com/minseo/p/9025362.html...
  • Couldn't get host name

    千次阅读 2017-07-27 15:42:47
    [ERROR][2017-07-27 15:37:14] org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1202) Couldn't generate instance Id! org.quartz.SchedulerException: ... Couldn't get host name! [See
  • SSL: no alternative certificate subject name matches target host name 'xxxx.baidu.com' git config --global http.sslVerify false
  • 错误: 代理抛出异常 : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: 你的主机名: 你的主机名 不能启动:  解决办法: vi /etc/sysconfig/network  追加一行: ...
  • local host name unkown导致tomcat无法启动 故障描述: 最近在处理用户的一次故障时,意外的发现平时正常的Tomcat,无法启动,一直报错日下截图:local host name unkown 原因排查: 使用hostname命令查看...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,171,717
精华内容 468,686
关键字:

host name