作者haua (无名haua不是我)
看板MacDev
标题[问题] Xcode3.0的移除障碍
时间Tue Jan 3 20:19:13 2012
大家好,我是最近才开始接触开发的新手(其实才刚开始学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