“无法解析主机名"在Octave中安装软件包时 [英] "Couldn't resolve hostname" while installing package in Octave

查看:343
本文介绍了“无法解析主机名"在Octave中安装软件包时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用以下命令在Octave中安装软件包:

I have tried installing a package in Octave using this command:

pkg install signal-1.4.0.taz.gz

但我收到以下错误:

error: pkg: failed to read package 'signal-1.4.0.taz.gz': Couldn't resolve host name
error: called from
  pkg at line 429 column 17

有人知道这意味着什么吗?

Does somebody know what that means?

推荐答案

您拼错了程序包压缩包的名称.可能是signal-1.4.0.tar.gz而不是signal-1.4.0.taz.gz(请注意,其中一个扩展名为TAR,另一个扩展名为TAZ)

You have mis-spelled the name of the package's tarball. It is likely signal-1.4.0.tar.gz rather than signal-1.4.0.taz.gz (Note that one has TAR and the other has TAZ in the extension)

pkg install signal-1.4.0.tar.gz

基本上,正在发生的事情是Octave无法在文件系统上找到文件signal-1.4.0.taz.gz(由于拼写错误),因此它尝试从Internet下载文件.当它尝试将signal-1.4.0.taz.gz解析为URL时,DNS名称解析失败,给您遇到的错误.

Essentially what is happening, is that Octave is unable to find the file signal-1.4.0.taz.gz on the file system (due to the mis-spelling) so then it attempts to download the file from the internet. When it tries to resolve signal-1.4.0.taz.gz as a URL, DNS name resolution fails giving you the error that you're encountering.

这篇关于“无法解析主机名"在Octave中安装软件包时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆