如果能在电脑上找到 uninstallMono.sh 这个文件 直接执行这个文件。
如果找不到,自己创建一个名位uninstallMono.sh的文件 复制下面的代码
#!/bin/sh -x
#This script removes Mono from an OS X System. It must be run as root
rm -r /Library/Frameworks/Mono.framework
rm -r /Library/Receipts/MonoFramework-*
for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do
(cd ${dir};
for i in `ls -al | grep /Library/Frameworks/Mono.framework/ | awk '{print $9}'`; do
rm ${i}
done);
done
打开终端输入命令
sudo sh uninstallMono.sh