更新你的xcode错误,以便在mac上安装gnuplot

时间:2016-12-14 16:28:08

标签: xcode gnuplot homebrew

尝试在终端上使用此命令安装gnuplot

Mac:~ Amar$ brew install gnuplot --with-xll
Error: Your Xcode (7.3.1) is too outdated.
Please update to Xcode 8.2 (or delete it).
Xcode can be updated from the App Store

但是,当检查xcode是否需要更新时,我得到了

Mac:~ Amar$ softwareupdate --install xcode
Software Update Tool
Copyright 2002-2015 Apple Inc.

xcode: No such update
No updates are available.

请让我知道如何解决这个问题。

2 个答案:

答案 0 :(得分:1)

通过卸载Xcode并从Apple的开发者帐户重新安装它来解决此错误。

答案 1 :(得分:0)

xcode不是softwareupdate的有效参数。您需要先使用softwareupdate --list获取可用更新列表;然后使用softwareupdate --install,后跟更新名称。