grepping /Library and "Too many levels of symbolic links" I'm trying to clean up remnants of an application that was removed:

$ sudo grep -R "iNet Network" /Library
...
grep: /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Libraries/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Libraries/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Versions/3.2.1/lib/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Versions/3.2.1/lib/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Versions/Current/lib/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM: Too many levels of symbolic links
grep: /Library//Frameworks/Mono.framework/Versions/Current/lib/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM: Too many levels of symbolic links


It's an unrelated issue to what I am trying to do, but I'd like to clean it up. I believe libmonoboehm is an Apple framework.

From Too many levels of symbolic links, its likely that soft links point to one another.

Question: How do I clear this error?



A quick ls -l on the first directory reveals the following. It almost appears the softlink refers to itself; or its parent directory, which appears to be named the same.

$ ls -l /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM
lrwxr-xr-x  1 root  admin  29 Aug 14  2013 /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.1.dylib.dSYM/libmonoboehm-2.0.1.dylib.dSYM -&gt; libmonoboehm-2.0.1.dylib.dSYM
$ ls -l /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM
lrwxr-xr-x  1 root  admin  27 Aug 14  2013 /Library//Frameworks/Mono.framework/Home/lib/libmono-2.0.dylib.dSYM/libmonoboehm-2.0.dylib.dSYM -&gt; libmonoboehm-2.0.dylib.dSYM




Related information.


OS X 10.8.5 fully patched (and still defective)
Xcode Version 5.1.1 (5B1008)
The Mono.framework neither belongs to Apple nor is it installed as a part of Xcode. I've cross-checked that with a VM (10.8.5/Xcode 5.1.1) 

Checking your profile i'd suspect it was installed with Xamarin (or another cross-platform dev environment).

IMHO your Mono installation is hosed/got corrupted. A proper install looks like this (/Library/Frameworks):



Your path to Mono looks like this: /Library//Frameworks/Mono.framework/... (Please notice the double slash in the path).

So check your disk with Disk Utility first, then delete Mono.framework and the superior no name folder (or whatever it is), download the latest Mono.framework installer and reinstall Mono.