MAC OS X升级安装webrat

本文记录了作者在MAC OS X 10.6.5上安装webrat/nokogiri过程中遇到的依赖错误,并详细描述了解决过程,包括重新安装Xcode、MacPorts以及配置相关设置。
部署运行你感兴趣的模型镜像
折腾了一周的环境问题,终于搞定:)

安装webrat/nokogiri的时候一直报错

Error: Cannot install *** for the arch(s) 'x86_64' because
Error: its dependency gettext is only installed for the archs 'i386 ppc'.
Error: Unable to execute port: architecture mismatch

前不久系统刚升级到MAC OS X 10.6.5,xcode 也是最新版本3.2.5
https://trac.macports.org/wiki/Migration,正如第一段话所说我真的很不幸。。。
“If you upgrade to a new OS version (e.g. from Leopard to Snow Leopard) or migrate to a new machine with a different type of CPU (e.g. PowerPC to Intel), you may get lucky and have your ports keep working, but in general, things will break.”

没办法,重装xcode跟macports吧

1. XCODE 卸载与安装

sudo /Developer/Library/uninstall-devtools -mode=all

sudo rm -rf /Developer/Library/Xcode/

之后去http://developer.apple.com/technologies/xcode.html下载最新版本,3.6G。。
安装

2. Ports重装

先导出已安装的sudo port installed >installed_ports.txt
卸载:sudo port -f uninstall installed
安装,按之前txt中的列表安装, sudo port install x1 x2 x3

3. 保险起见按照官方文档里的说法注释掉了macports.conf文件中下面一行
universal_archs i386 ppc

4. 收工,安装webrat跟nokogiri,成功!

您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值