运行npm install
所需的node-gyp
... 时看到以下错误,但可能由任何需要的东西触发xcode-select
.
xcode-select:错误:工具'xcodebuild'需要Xcode,但是活动的开发人员目录'/ Library/Developer/CommandLineTools'是一个命令行工具实例
问题是什么?
如何使用当前的Xcode/Mac OS X v10.8(Mountain Lion)或更高版本安装命令行构建工具?
与Xcode不同,没有安装程序(它只是一个包).
看起来所有命令行工具都在那里(在bundle中,在Contents/Developer下),但没有一个适当的环境变量设置为使用它们.
是否有一个我可以运行的脚本,它将设置我的环境以支持从命令行构建?
Python的http.server(或Python的SimpleHTTPServer)是从命令行提供当前目录内容的好方法:
python -m http.server
Run Code Online (Sandbox Code Playgroud)
但是,就网络服务器而言,它非常低调......
它表现得好像是单线程的,并且在使用RequireJS加载JavaScript AMD模块时偶尔会导致超时错误.加载一个没有图像的简单页面可能需要五到十秒钟.
什么是更快的替代方案,同样方便?
我发布了安装Xcode命令行工具xcode-select --install
; 现在我想卸载它(不卸载Xcode).
我试过了
sudo /Developer/Library/uninstall-devtools --mode=all
Run Code Online (Sandbox Code Playgroud)
但后来我得到了错误
sudo: /Developer/Library/uninstall-devtools: command not found
Run Code Online (Sandbox Code Playgroud) 命令行版SVN的Windows二进制文件在哪里?在我搜索的任何地方,它都必须是一些公司带有安装程序的花哨的客户端软件.
我正在一台我没有管理员帐户的机器上工作.请给我简单的命令行二进制文件,他们到底在哪里?
我无法在我的系统中安装任何pod.因此,我从我的Mac中删除了cocoapods然后重新安装它.该过程是成功的,但是当我运行命令pod init
后,错误显示在终端中:
`verify_minimum_git_version!': [!] You need at least git version 1.8.5 to use CocoaPods (Pod::Informative)
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:49:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.1/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'
Run Code Online (Sandbox Code Playgroud)
我还检查了我的Git版本是1.8.4,但我得到任何解决方案来更新相同的.
安装OSX Mavericks 10.9演示后,我在运行捆绑后得到这个
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/sandric/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
extconf.rb:17: Use RbConfig instead of obsolete and deprecated Config.
checking for socket() in -lsocket... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/sandric/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-zlib-dir
--without-zlib-dir …
Run Code Online (Sandbox Code Playgroud) 我想安装openCV来矢量化图像,但是有关于Xcode和Ruby的一系列错误消息.
首先,我使用终端安装openCV , brew install opencv
.
然后,我收到错误消息,表明系统不喜欢我的ruby版本.
/usr/local/Homebrew/Library/Homebrew/brew.rb:12:in `<main>':
Homebrew must be run under Ruby 2.3! You're running 2.0.0. (RuntimeError)
Run Code Online (Sandbox Code Playgroud)
所以,我想升级我的红宝石.我从这篇文章中了解了几个更新策略.第一次ruby升级试用:brew link --overwrite ruby
&brew unlink ruby && brew link ruby
得到
Error: No such keg: /usr/local/Cellar/ruby
Run Code Online (Sandbox Code Playgroud)
然后第二次ruby升级试用:brew upgrade ruby
并看到以下错误消息.
Error: Xcode alone is not sufficient on Sierra.
Install the Command Line Tools:
xcode-select --install
Run Code Online (Sandbox Code Playgroud)
此错误消息表示我需要安装已安装的Xcode.所以,我检查我的Xcode状态,code-select -p
并获得/Applications/Xcode.app/Contents/Developer
哪些意味着我没事.
我看到一个关于你在哪里安装python 的评论可能是个大问题.从来源引用:
如果你看到
/usr/local/bin/python3
你正在使用Homebrew版本的Python.如果是输出,/usr/bin/python3
那么您错误地使用了Python的系统版本.
我检查which python3 …
我从source forge 页面下载了gnuplot 5.0.1(gnuplot-5.0.1.tar.gz)的源文件.我还在我的OS X 10.7.5上安装了命令行工具,以便我拥有gcc
并make
在/usr/bin
文件夹中.
我遵循的安装说明INSTALL.gnu
的压缩包文件:我跑的configure
文件和类型make
,make check
,make install
,和make clean
.使用这些命令,gnuplot
位于/usr/local/bin/
.
make check
在测试许多gnuplot脚本之前,该命令会在shell中输出很多行.我实际上可以想象这些情节,我认为"很好,它有效".所以我打开了一个新的终端shell并键入gnuplot
以开始使用它(终端自动设置为qt).一个简单的plot sin(x)
失败.Gnuplot返回以下消息:
Could not start gnuplot_qt with path "/usr/local/libexec/gnuplot/5.0/gnuplot_qt"
Could not start gnuplot_qt with path "/usr/local/libexec/gnuplot/5.0/gnuplot_qt"
Could not connect to gnuplot_qt "" . Starting a new one
Could not start gnuplot_qt with path "/usr/local/libexec/gnuplot/5.0/gnuplot_qt"
Warning: slow font initialization . . …
Run Code Online (Sandbox Code Playgroud) 自Mavericks以来,OS X已经能够在Finder中标记和着色文件.
有没有办法通过Cocoa API或shell命令向文件添加标签?
xcode ×6
macos ×5
ruby ×2
binaries ×1
cocoa ×1
cocoapods ×1
command-line ×1
download ×1
gnuplot ×1
homebrew ×1
httpserver ×1
ios ×1
metadata ×1
npm ×1
npm-install ×1
python-3.x ×1
svn ×1