xcode 太多级别的符号链接 osx Lion

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9770658/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:42:19  来源:igfitidea点击:

Too many levels of symbolic links osx Lion

xcodeterminalosx-lion

提问by HymanTurky

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

我正在尝试安装一个库,但是当 make 文件尝试尝试Developer文件夹时,它会出现消息

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 

回答by dantiston

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/

回答by karlphillip

If go to:

如果去:

cd /

and ls -laoutputs:

ls -la输出:

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

That's a problem. /Developershould be a folder, not a symlinkpointing to itself.

这是个问题。/Developer应该是一个文件夹而不是指向自身的符号链接

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

找出原始/Developer目录在哪里并删除符号链接,这样您就可以创建一个指向它的符号链接。如果找不到,请考虑重新安装 XCode。