【问题标题】:Error : Port gnuplot not found错误:找不到端口 gnuplot
【发布时间】:2015-02-01 05:50:40
【问题描述】:

我刚刚按照他们网站上的说明安装了 macports。但是当我输入时

sudo port install gnuplot

我得到一个错误

Error: Port gnuplot not found

我也得到了自我更新

Error: Error synchronizing MacPorts sources: command execution failed
Please run `port -v selfupdate' for details.
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing
MacPorts sources: command execution failed

对于我尝试使用 macport 下载的任何软件都是一样的。如何解决这个问题?

是因为我的大学防火墙阻止了使用 macport 的下载吗? macport 使用哪个端口下载?

如果他们阻止了它,Linux 用户如何使用 yum、apt-get 等进行下载

【问题讨论】:

    标签: macports


    【解决方案1】:

    您可以运行sudo port -d selfupdate 来查看更新失败的原因。我假设这是因为您的本地网络阻止了对端口 873 (rsync) 的出站访问,MacPorts 使用该端口进行更新。你真的应该要求你的网络管理员允许出站 rsync - 真的没有任何危险。

    据我所知,MacPorts 是唯一使用 rsync 协议的包管理器,这就解释了为什么 yumapt-get 和其他的都可以正常工作。

    同步失败也解释了为什么 gnuplot 端口不存在。 MacPorts 需要一个文件来告诉它如何获取和构建 gnuplot,它使用 rsync 下载它。如果这对您不起作用,则说明您没有该文件,因此 MacPorts 假定没有 gnuplot 端口。

    如果您的网络管理员拒绝打开 rsync 端口(无论出于何种原因),还有一个常见问题解答条目可以解决这个问题:http://trac.macports.org/wiki/FAQ#selfupdatefails

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-24
      • 1970-01-01
      • 2010-10-18
      • 2015-07-05
      • 1970-01-01
      • 2016-07-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多