Too many levels of symbolic links osx Lion

橙三吉。 提交于 2019-12-21 06:03:21

问题


i'm try to install a libraries but when the make file try to attempt to Developer folder it appear message

Too many levels of symbolic links.

So i try:

Go home folder (cd /)

then i try:

bash-3.2# cd Developer

and this is the output:

bash: cd: Developer: Too many levels of symbolic links

what could be the problem? can you help me?

ls -l

says me

lrwxr-xr-x 1 root wheel 10 14 Mar 09:13 Developer -> /Developer 

回答1:


If go to:

cd /

and ls -la outputs:

lrwxr-xr-x 1 root wheel 10 14 Mar 09:13 Developer -> /Developer 

That's a problem. /Developer should be a folder, not a symlink pointing to itself.

Find out where the original /Developer directory is and delete the symlink, so you can create one pointing to it. If you can't find it, consider reinstalling XCode.




回答2:


Use absolute paths when making symlinks:

Doesn't (always) work:

ln -s file ../new/path

Works (more often):

ln -s /full/path/to/old/place/ /full/path/to/new/place/


来源:https://stackoverflow.com/questions/9770658/too-many-levels-of-symbolic-links-osx-lion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!