手动安装Xcode命令行工具不起作用 [英] Manual Install of Xcode command line tools not working

查看:256
本文介绍了手动安装Xcode命令行工具不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从Apple网站手动安装了Xcode命令行工具,并且经历了安装过程,但似乎没有工作。我从终端上运行了这个程序,看它是否安装了:

  Zach-Boyette-MacBook-Pro-2:〜zachboyette $ pkgutil --pkg-info = com.apple.pkg.CLTools_Executables 
package-id:com.apple.pkg.CLTools_Executables
version:5.1.0.0.1.1396320587
volume:/
位置:/
install-time:1398301024
groups:com.apple.FindSystemFiles.pkg-group com.apple.DevToolsBoth.pkg-group com.apple.DevToolsNonRelocatableShared.pkg-group

所以它看起来像命令行工具已经安装,但是当我运行这个时:



Zach-Boyette-MacBook-Pro-2:〜zachboyette $ xcode-select --install



一个弹出窗口显示:xcode-select命令需要命令行开发者工具。您是否想现在安装这些工具?



我点击安装,然后它说:无法安装该软件,因为它目前不能从软件更新服务器获得。

我读过其他答案,解决方案是手动安装,但我只是这样做,所以我不明白为什么它不起作用。另外,在Xcode下载中,它没有显示命令行工具。



我试过多次手动安装它,所以我不知道它为什么不起作用。 / p>

安装Jekyll仍然无法运行:

  Zach-Boyette- MacBook-Pro-2:〜zachboyette $ sudo gem install jekyll 
密码:
构建原生扩展。这可能需要一段时间...
错误:安装jekyll时出错:
错误:无法构建gem本机扩展。
编辑:echo $ PATH返回:

Zach-Boyette-MacBook-Pro-2:〜zachboyette $ echo $ PATH / usr / bin:/ bin:/ usr / sbin:/ sbin:/ usr / local / bin:/Users/zachboyette/.rvm/bin


解决方案

命令行工具不包含在XCode 5.1.1
中您必须手动安装,但不要使用xcode-select --install。这是行不通的。
$ b


  1. 打开Xcode应用程序。

  2. 点击Xcode> Open Developer Tools> More Developers Tools。
    这会将您带到Apple Developers网站的下载。
    使用您的AppStore ID登录。

  3. 下载适用于Mac OS X版本的命令行工具。


I've manually installed the Xcode command line tools from the Apple website, and I went through the install process but it doesn't seem to be working. I ran this from the terminal to see if it installed:

Zach-Boyette-MacBook-Pro-2:~ zachboyette$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 5.1.0.0.1.1396320587
volume: /
location: /
install-time: 1398301024
groups: com.apple.FindSystemFiles.pkg-group com.apple.DevToolsBoth.pkg-group  com.apple.DevToolsNonRelocatableShared.pkg-group 

So it looks like the command line tools have installed, but when I run this:

Zach-Boyette-MacBook-Pro-2:~ zachboyette$ xcode-select --install

A popup says: The "xcode-select" command requires the command line developer tools. Would you like to install the tools now?

I clicked install and then it said: Can't install the software because it is not currently available from the Software Update server.

I've read on other answers that the solution is to do a manual install, but I just did that so I don't understand why it's not working. Also, in Xcode downloads, it's not showing the Command Line Tools.

I've tried installing it manually many times so I don't know why it's not working.

Installing Jekyll still won't work:

Zach-Boyette-MacBook-Pro-2:~ zachboyette$ sudo gem install jekyll
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
ERROR: Failed to build gem native extension.
EDIT: echo $PATH returns this:

Zach-Boyette-MacBook-Pro-2:~ zachboyette$ echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/zachboyette/.rvm/bin

解决方案

Command Line Tools are not included in XCode 5.1.1 You have to install it manually, BUT DON'T USE "xcode-select --install". It does not work.

  1. Open Xcode app.
  2. Click on Xcode > Open Developer Tools > More Developers Tools. That will take you to Downloads for Apple Developers web site. Use your AppStore Id to login.
  3. Download Command Line Tools for your Mac OS X version.

这篇关于手动安装Xcode命令行工具不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆