惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - 浪端之渡鸟

老鼠跑猫叫主人惊醒c++观察者模式实现 讨论exe获取dll提供的单例,并获取单例所提供的带有vector<class A>& STL容器的返回值的情况-提供1种解决方法 vs2010 mfc dll 调试编译的问题 std::stringstream 模版实现,类型转换,遇到空格不跳出 字节对齐,对opencv的影响 跨平台,c语言创建多级路径代码分享 吐槽VS2010,卡死后,一直不能点,强制关机后代码丢失 IOS App资源路径 opencv在MFC下使用的问题 fopen的打开方式 坑爹啊,新手一个这问题折腾2天,xcode4.5拖上去控件真机调试就崩 静态页面转化 删除_svn文件夹 开发相关日志 WebClient.cs封装 symbian 输入控件不显示输入法解决: V3 V5宏定义 coco2d-x 重置z轴 htmlcontrol-for-symbian 源码解析
解决安装macports,不能更新的问题
浪端之渡鸟 · 2012-12-02 · via 博客园 - 浪端之渡鸟

执行命令 sudo port -v selfupdate,出现超时

68-245-171-115:var fanshulin$ sudo port -v selfupdate

Password:

--->  Updating MacPorts base sources using rsync

rsync: failed to connect to rsync.macports.org: Operation timed out (60)

rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]

Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs

Exit code: 10

Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

解决方法如下:

1.搜索到了官网的连接,http://trac.macports.org/ticket/36256,根据指引到达了

http://trac.macports.org/wiki/howto/PortTreeTarball

2.看到如下说明:

Configuration

Edit $prefix/etc/macports/sources.conf, comment out the rsync entry, and add a new entry as follows:

#rsync://rsync.macports.org/release/ports/ [default]
http://www.macports.org/files/ports.tar.gz [default]

直接编辑source.conf 是不行的,拷贝到桌面记事本打开

添加上上去,如下:

//rsync://rsync.macports.org/release/tarballs/ports.tar [default]

#rsync://rsync.macports.org/release/ports/ [default]

http://www.macports.org/files/ports.tar.gz [default]

3.把这个文件拷贝覆盖

4. sudo port -v selfupdate

5.正常更新,21M的包,如下:

68-245-171-115:var fanshulin$ sudo port -d sync

Password:

Warning: /opt/local/etc/macports/sources.conf specifies invalid source '//rsync://rsync.macports.org/release/tarballs/ports.tar [default]', ignored.

DEBUG: Copying /Users/fanshulin/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences

--->  Updating the ports tree

Synchronizing local ports tree from http://www.macports.org/files/ports.tar.gz

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 21.5M  100 21.5M    0     0  32451      0  0:11:36  0:11:36 --:--:-- 81848

问题解决,xxoo,路还很长啊,我本是要装opencv的。