Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 无法在OSX 10.9.2上安装Xcode_Ruby_Xcode_Macos_Github_Installation - Fatal编程技术网

Ruby 无法在OSX 10.9.2上安装Xcode

Ruby 无法在OSX 10.9.2上安装Xcode,ruby,xcode,macos,github,installation,Ruby,Xcode,Macos,Github,Installation,使用OSX10.9.2小牛 我在安装github页面时遇到问题。我需要先安装Xcode,但这会导致一个错误。 我尝试使用命令安装Xcode:Xcode选择--install。该对话框显示三个选项:下载Xcode、不立即下载、安装 当我选择“安装”并在选择“接受”后,该过程开始并在一段时间后停止。显示软件在更新服务器上不可用。 当我选择“下载Xcode”时,应用商店启动,我可以安装Xcode。 尽管如此,似乎还没有安装Xcode,请参见以下步骤 安装Xcode后,我启动终端并按照上的说明进行操作

使用OSX10.9.2小牛

我在安装github页面时遇到问题。我需要先安装Xcode,但这会导致一个错误。 我尝试使用命令安装Xcode:
Xcode选择--install
。该对话框显示三个选项:下载Xcode、不立即下载、安装 当我选择“安装”并在选择“接受”后,该过程开始并在一段时间后停止。显示软件在更新服务器上不可用。 当我选择“下载Xcode”时,应用商店启动,我可以安装Xcode。 尽管如此,似乎还没有安装Xcode,请参见以下步骤

安装Xcode后,我启动终端并按照上的说明进行操作

当我在我的根文件夹中运行
sudo bundle install--verbose
时,编译器生成一个
错误:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/Ruby/2.0.0/mkmf.rb:430:“try\u-do”:编译器无法生成可执行文件。(运行时错误)

您必须首先安装开发工具

Below the output of the `sudo bundle install` command:

Fetching from: https://rubygems.org/api/v1/dependencies
HTTP Redirection
Fetching from: https://bundler.rubygems.org/api/v1/dependencies
HTTP Success
Fetching gem metadata from https://rubygems.org/
Query List: ["RedCloth", "blankslate", "fast-stemmer", "classifier", "colorator", "highline", "commander", "ffi", "liquid", "rb-fsevent", "rb-inotify", "rb-kqueue", "listen", "maruku", "posix-spawn", "yajl-ruby", "pygments.rb", "redcarpet", "safe_yaml", "parslet", "toml", "jekyll", "kramdown", "rdiscount", "github-pages"]
Query Gemcutter Dependency Endpoint API: RedCloth,blankslate,fast-stemmer,classifier,colorator,highline,commander,ffi,liquid,rb-fsevent,rb-inotify,rb-kqueue,listen,maruku,posix-spawn,yajl-ruby,pygments.rb,redcarpet,safe_yaml,parslet,toml,jekyll,kramdown,rdiscount,github-pages
Fetching from: https://rubygems.org/api/v1/dep...ramdown,rdiscount,github-pages
HTTP Redirection
Fetching from: https://bundler.rubygems.org/ap...ramdown,rdiscount,github-pages
HTTP Success
Query List: ["stemmer", "rake", "bones", "jekyll-redirect-from", "jekyll-mentions", "jemoji", "termios", "jekyll-coffeescript", "sass", "mercenary", "directory_watcher", "open4", "hoe", "albino", "celluloid-io", "celluloid", "rb-fchange", "syntax", "rubypython", "echoe", "psych"]
Query Gemcutter Dependency Endpoint API: stemmer,rake,bones,jekyll-redirect-from,jekyll-mentions,jemoji,termios,jekyll-coffeescript,sass,mercenary,directory_watcher,open4,hoe,albino,celluloid-io,celluloid,rb-fchange,syntax,rubypython,echoe,psych
Fetching from: https://rubygems.org/api/v1/dep...,syntax,rubypython,echoe,psych
HTTP Redirection
Fetching from: https://bundler.rubygems.org/ap...,syntax,rubypython,echoe,psych
HTTP Success
Query List: ["loquacious", "little-plugger", "rdoc", "rspec", "bones-git", "bones-extras", "timers", "facter", "nio4r", "allison", "rubyforge", "gemcutter", "rcov", "RubyInline", "coffee-script", "html-pipeline", "gemoji", "win32-api"]
Query Gemcutter Dependency Endpoint API: loquacious,little-plugger,rdoc,rspec,bones-git,bones-extras,timers,facter,nio4r,allison,rubyforge,gemcutter,rcov,RubyInline,coffee-script,html-pipeline,gemoji,win32-api
Fetching from: https://rubygems.org/api/v1/dep...html-pipeline,gemoji,win32-api
HTTP Redirection
Fetching from: https://bundler.rubygems.org/ap...html-pipeline,gemoji,win32-api
HTTP Success
Query List: ["bones-rcov", "bones-rubyforge", "bones-rspec", "bones-zentest", "git", "coffee-script-source", "execjs", "win32console", "windows-pr", "windows-api", "win32-dir", "sys-admin", "CFPropertyList", "json", "json_pure", "net-scp", "activesupport", "nokogiri", "escape_utils", "rinku", "sanitize", "github-markdown", "github-linguist", "minitest", "rspec-mocks", "rspec-expectations", "rspec-core", "cucumber", "diff-lcs", "spicycode-rcov", "ZenTest", "hitimes", "test-unit"]
Query Gemcutter Dependency Endpoint API: bones-rcov,bones-rubyforge,bones-rspec,bones-zentest,git,coffee-script-source,execjs,win32console,windows-pr,windows-api,win32-dir,sys-admin,CFPropertyList,json,json_pure,net-scp,activesupport,nokogiri,escape_utils,rinku,sanitize,github-markdown,github-linguist,minitest,rspec-mocks,rspec-expectations,rspec-core,cucumber,diff-lcs,spicycode-rcov,ZenTest,hitimes,test-unit
Fetching from: https://rubygems.org/api/v1/dep...rcov,ZenTest,hitimes,test-unit
HTTP Redirection
Fetching from: https://bundler.rubygems.org/ap...rcov,ZenTest,hitimes,test-unit
HTTP Success
Query List: ["thread_safe", "tzinfo", "multi_json", "i18n", "builder", "memcache-client", "libxml-ruby", "multi_test", "gherkin", "term-ansicolor", "treetop", "polyglot", "mime-types", "charlock_holmes", "configuration", "mkrf", "rake-compiler", "spruz", "net-ssh", "mini_portile", "racc", "tenderlove-frex", "rexical", "weakling", "rspec-support", "hpricot", "htmlentities", "win32-security"]
Query Gemcutter Dependency Endpoint API: thread_safe,tzinfo,multi_json,i18n,builder,memcache-client,libxml-ruby,multi_test,gherkin,term-ansicolor,treetop,polyglot,mime-types,charlock_holmes,configuration,mkrf,rake-compiler,spruz,net-ssh,mini_portile,racc,tenderlove-frex,rexical,weakling,rspec-support,hpricot,htmlentities,win32-security
Fetching from: https://rubygems.org/api/v1/dep...ot,htmlentities,win32-security
HTTP Redirection
Fetching from: https://bundler.rubygems.org/ap...ot,htmlentities,win32-security
HTTP Success
Query List: ["trollop", "archive-tar-minitar", "needle", "jruby-pageant", "tins", "atomic", "facets"]
Query Gemcutter Dependency Endpoint API: trollop,archive-tar-minitar,needle,jruby-pageant,tins,atomic,facets
Fetching from: https://rubygems.org/api/v1/dep...uby-pageant,tins,atomic,facets
HTTP Redirection
Fetching from: https://bundler.rubygems.org/ap...uby-pageant,tins,atomic,facets
HTTP Success
Query List: []
Fetching additional metadata from https://rubygems.org/
Query List: ["tenderlove-frex", "spicycode-rcov"]
Query Gemcutter Dependency Endpoint API: tenderlove-frex,spicycode-rcov
Fetching from: https://rubygems.org/api/v1/dep...tenderlove-frex,spicycode-rcov
HTTP Redirection
Fetching from: https://bundler.rubygems.org/ap...tenderlove-frex,spicycode-rcov
HTTP Success
Query List: []

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --with-cflags=-w
checking for main() in -lc... *** 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=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
--with-redcloth_scan-dir
--without-redcloth_scan-dir
--with-redcloth_scan-include
--without-redcloth_scan-include=${redcloth_scan-dir}/include
--with-redcloth_scan-lib
--without-redcloth_scan-lib=${redcloth_scan-dir}/
--with-clib
--without-clib
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:430:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:509:in `block in try_link0'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tmpdir.rb:88:in `mktmpdir'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:506:in `try_link0'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:530:in `try_link'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:716:in `try_func'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:946:in `block in have_library'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:891:in `block in checking_for'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:336:in `block (2 levels) in postpone'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:306:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:336:in `block in postpone'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:306:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:332:in `postpone'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:890:in `checking_for'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:941:in `have_library'
from extconf.rb:5:in `<main>'

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/RedCloth-4.2.9 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/RedCloth-4.2.9/ext/redcloth_scan/gem_make.out
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/ext/builder.rb:60:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:37:in `block in build'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tempfile.rb:324:in `open'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:18:in `build'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/installer.rb:678:in `block (2 levels) in build_extensions'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/installer.rb:677:in `chdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/installer.rb:677:in `block in build_extensions'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/installer.rb:652:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/installer.rb:652:in `build_extensions'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/installer.rb:218:in `install'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/source/rubygems.rb:100:in `block in install'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/rubygems_integration.rb:118:in `preserve_paths'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/source/rubygems.rb:93:in `install'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/installer.rb:111:in `block in install_gem_from_spec'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/rubygems_integration.rb:150:in `with_build_args'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/installer.rb:110:in `install_gem_from_spec'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/installer.rb:265:in `block in install_sequentially'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/forwardable.rb:171:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/forwardable.rb:171:in `each'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/installer.rb:264:in `install_sequentially'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/installer.rb:97:in `run'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/installer.rb:15:in `install'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/cli.rb:255:in `install'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/vendor/thor/command.rb:27:in `run'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/vendor/thor.rb:363:in `dispatch'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/vendor/thor/base.rb:440:in `start'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/cli.rb:10:in `start'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/bin/bundle:20:in `block in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.5.3/bin/bundle:20:in `<top (required)>'
/usr/bin/bundle:23:in `load'
/usr/bin/bundle:23:in `<main>'
An error occurred while installing RedCloth (4.2.9), and Bundler cannot continue.
Make sure that `gem install RedCloth -v '4.2.9'` succeeds before bundling.
“sudo bundle install”命令输出下面的
:
正在从以下位置获取:https://rubygems.org/api/v1/dependencies
HTTP重定向
正在从以下位置获取:https://bundler.rubygems.org/api/v1/dependencies
HTTP成功
从中获取gem元数据https://rubygems.org/
查询列表:[“红布”、“空白板岩”、“快速词干分析器”、“分类器”、“着色剂”、“高线”、“指挥官”、“ffi”、“液体”、“rb fsevent”、“rb inotify”、“rb kqueue”、“listen”、“maruku”、“posix spawn”、“yajl ruby”、“Pyments.rb”、“红地毯”、“safe_yaml”、“欧芹”、“toml”、“jekyll”、“kramdown”、“rdiscount”、“github pages”]
查询Gemcutter依赖端点API:RedCloth、blankslate、fast stemmer、分类器、着色剂、highline、commander、ffi、liquid、rb fsevent、rb inotify、rb kqueue、listen、maruku、posix spawn、yajl ruby、pygments.rb、Red地毯、safe_yaml、欧芹、toml、jekyll、kramdown、rdiscount、github页面
正在从以下位置获取:https://rubygems.org/api/v1/dep...ramdown,rdisont,github页面
HTTP重定向
正在从以下位置获取:https://bundler.rubygems.org/ap...ramdown,rdisont,github页面
HTTP成功
查询列表:[“词干分析器”、“rake”、“bones”、“jekyll重定向自”、“jekyll提及”、“jemoji”、“termios”、“jekyll咖啡脚本”、“sass”、“雇佣军”、“目录观察者”、“open4”、“hoe”、“白化病”、“赛璐珞io”、“赛璐珞”、“rb fchange”、“语法”、“rubypython”、“回声”、“心理”]
查询Gemcutter依赖端点API:词干分析器、rake、bones、jekyll重定向自、jekyll提及、jemoji、termios、jekyll coffeescript、sass、雇佣军、目录观察者、open4、hoe、白化病、赛璐珞io、赛璐珞、rb fchange、语法、rubypython、回声、心理学
正在从以下位置获取:https://rubygems.org/api/v1/dep...,语法,rubypython,回声,心理
HTTP重定向
正在从以下位置获取:https://bundler.rubygems.org/ap...,语法,rubypython,回声,心理
HTTP成功
查询列表:[“饶舌”、“小插件”、“rdoc”、“rspec”、“bones git”、“bones extras”、“timers”、“facter”、“nio4r”、“allison”、“rubyforge”、“gemcutter”、“rcov”、“RubyLine”、“咖啡脚本”、“html管道”、“gemoji”、“win32 api”]
查询Gemcutter依赖端点API:饶舌、小插件、rdoc、rspec、bones git、bones extras、计时器、facter、nio4r、allison、rubyforge、Gemcutter、rcov、RubyLine、咖啡脚本、html管道、gemoji、win32 API
正在从以下位置获取:https://rubygems.org/api/v1/dep...html-pipeline,gemoji,win32 api
HTTP重定向
正在从以下位置获取:https://bundler.rubygems.org/ap...html-pipeline,gemoji,win32 api
HTTP成功
查询列表:[“bones rcov”、“bones rubyforge”、“bones rspec”、“bones zentest”、“git”、“coffee script source”、“execjs”、“win32console”、“windows pr”、“windows api”、“win32 dir”、“sys admin”、“CFPropertyList”、“json”、“json_pure”、“net scp”、“activesupport”、“nokogiri”、“escape_utils”、“rinku”、“sanitize”、“github markdown”、“github语言学家”,“小型测试”、“rspec模拟”、“rspec预期”、“rspec核心”、“Cumber”、“diff lcs”、“spicycode rcov”、“ZenTest”、“hitimes”、“测试单元”]
查询Gemcutter依赖端点API:bones rcov、bones rubyforge、bones rspec、bones zentest、git、coffee脚本源、execjs、win32 Console、windows pr、windows API、win32 dir、sys admin、CFPropertyList、json、json、json pure、net scp、activesupport、nokogiri、escape_utils、rinku、sanitize、github markdown、github语言学家、minitest、rspec mocks、rspec期望值、rspec-core、Cumber、diff lcs、spicycode rcov、ZenTest、hitimes、测试单元
正在从以下位置获取:https://rubygems.org/api/v1/dep...rcov,ZenTest,hitimes,测试单元
HTTP重定向
正在从以下位置获取:https://bundler.rubygems.org/ap...rcov,ZenTest,hitimes,测试单元
HTTP成功
查询列表:[“线程安全”、“tzinfo”、“multi_json”、“i18n”、“builder”、“memcache客户端”、“libxml ruby”、“multi_测试”、“小黄瓜”、“术语ansicolor”、“treetop”、“polyglot”、“mime类型”、“charlock_holmes”、“configuration”、“mkrf”、“rake编译器”、“spruz”、“net ssh”、“mini_portile”、“racc”、“tenderlove frex”、“rexical”、“weakling”、“rspec支持”hpricot、htmlentities、win32安全性“]
查询Gemcutter依赖端点API:thread_-safe、tzinfo、multi_-json、i18n、builder、memcache客户端、libxml ruby、multi_-test、gherkin、term ansicolor、treetop、polyglot、mime类型、charlock_-holmes、配置、mkrf、rake编译器、spruz、net ssh、mini_-portile、racc、tenderlove-frex、rexical、weakling、rspec支持、hpricot、htmlentities、win32安全
正在从以下位置获取:https://rubygems.org/api/v1/dep...ot、htmlentities、win32安全性
HTTP重定向
正在从以下位置获取:https://bundler.rubygems.org/ap...ot、htmlentities、win32安全性
HTTP成功
查询列表:[“trollop”、“archive tar minitar”、“Pinele”、“jruby pageant”、“tins”、“atomic”、“facets”]
查询Gemcutter依赖端点API:trollop、归档tar minitar、针头、jruby pageant、TIN、原子、facets
正在从以下位置获取:https://rubygems.org/api/v1/dep...uby-pageant,锡,原子,刻面
HTTP重定向
正在从以下位置获取:https://bundler.rubygems.org/ap...uby-pageant,锡,原子,刻面
HTTP成功
查询列表:[]
从中获取附加元数据https://rubygems.org/
查询列表:[“tenderlove frex”,“spicycode”
export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
gem install <your-desired-gem>
sudo bash -c "export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future; gem install <your-desired-gem>;";