MacDev 板


LINE

大家好,我是最近才开始接触开发的新手(其实才刚开始学c语言), 我在系统还是Leopard的时候装了Xcode3.0, 今天升级至Snow Leopard後想装Xcode4来用, 爬文後知道要先移除Xcode3,於是我按照网路上移除Xcode的说明,至终端机输入: 「sudo /Developer/Library/uninstall-devtools --mode=all」 然後也按照要求输入密码, 输入後却出现以下讯息: 「ERROR: Can't locate uninstaller script /Library/Developer/3.0/uninstall-devtools」 直接去目录找/Developer/Library/uninstall-devtools 点击後却是出现这个「ERROR: Must be run with root permissions -- prefix command with 'sudo'.」 後来有人建议我重新再安装3.0一次, 重新安装後执行sudo /Developer/Library/uninstall-devtools --mode=all 换成出现 Can't determine system version. Can't determine system version. Can't determine system version. 上网孤狗後,国外有人提出解决方案,但是我看不懂,查了单字还是不懂阿, 以下是原文: Solution This thread about Uninstalling XCode 3.0 in Snow Leopard helped. In summary: Edit the script "/Library/Developer/3.0/uninstall-devtools". Using the # symbol, comment out the lines that check for system version. Or better yet, change "if" clause (that queries the system version) from "if it's system 10.5" to "if it's system 10.6" and leave the "then" clause (that sets the system version inside the script) as-is. Thus, you'll have: if 10.6 -> then 10.5. Then run: sudo /Library/Developer/3.0/uninstall-devtools Rinse and repeat inside the /Library/Developer/Shared/uninstall-devtools script. Then re-run: sudo /Developer/Library/uninstall-devtools --mode=all Finally, drag the folder /Developer to the trash and take out that trash! Reboot. 只知道好像是要用#来编辑什麽东西,让电脑能确定版本... 但不知道如何操作QQ 想请问有人有遇过这个问题吗?能告知解决方法吗? 感激不尽!谢谢! --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.171.119.27
1F:→ forever215:在指令前面加上 sudo...就算你是管理者也要... 01/03 21:34
2F:→ forever215:管理者权限还是低於Super User... 01/03 21:35
3F:→ haua:有加呀@@ 01/03 21:36
※ 编辑: haua 来自: 118.171.119.27 (01/03 21:44)
4F:→ atst2:uninstall-devtools 是一个script, 01/03 22:53
5F:→ atst2:你可以用TextEdit打开看看 01/03 22:53
6F:→ atst2:英文描写的内容就是教你怎麽样去改script,让他能找到要执行 01/03 22:53
7F:→ atst2:的命令。 01/03 22:54
8F:→ atst2:建议你打开後,照里面所描述的路径去找一下对应的档案在不在 01/03 22:54
9F:→ atst2:现在手边没有3.0的版本,也没办法帮忙看是什麽问题. 01/03 22:56
10F:→ atst2:只好请你先照着上面网站的做做看了... 01/03 22:56
11F:→ haua:唔,先谢谢两位,我知道他要我改script,但我完全看不懂他的 01/03 23:31
12F:→ haua:教学,比如说如何使用#去注释....QQ 01/03 23:32







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Tech_Job站内搜寻

TOP