草庐IT

Windows安装Flink

全部标签

ruby - 如何在 OSX Mavericks 上安装命令行工具

我正在运行OSXMavericks(10.9),在尝试更新Rails中的bundle时,我收到以下错误消息:"Youhavetoinstalldevelopmenttoolsfirst."我已经安装了Xcode,似乎没有从Xcode4.6中安装工具的选项。如何通过终端下载和安装命令行工具? 最佳答案 Incase,在尝试更新bundle时,您会收到错误消息“您必须先安装开发工具。”在OSXMavericks(OSX10.9)上,但是你已经安装了Xcode,你仍然可以通过终端手动安装开发工具:xcode-select--install

ruby - 安装 RVM : getting error "There was an error(23)."

我尝试安装RubyVersionManager(RVM)但没有成功。如何解决我遇到的这个错误?ubuntu@ip-172-31-0-20:/tmp$rvminstallruby-1.9.3-p484Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:ubuntu/14.04/x86_64/ruby-1.9.3-p484.Continuingwithcompilation.Pleaseread'rvmhelpmount'togetmoreinformationonbinaryrubies.Ch

ruby - 安装 RVM : "Requirements installation failed with status: 1."

这是我在命令提示符之前看到的最后一件事:Searchingforbinaryrubies,thismighttakesometime.Foundremotefilehttps://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.1.tar.bz2Checkingrequirementsforosx.AbouttoinstallHomebrew,press`Enter`fordefaultinstallationin`/usr/local`,typenewpathifyouwishcustomHomebrewinstallation(thepathnee

ruby-on-rails - Elastic Beanstalk Ruby/Rails 需要安装 git 所以 bundle install 可以工作..但不是

我在部署我们的Rails应用程序时遇到问题。我创建了一个类似于AWS博客howto上示例的Hookhttp://ruby.awsblog.com/post/Tx2AK2MFX0QHRIO/Deploying-Ruby-Applications-to-AWS-Elastic-Beanstalk-with-Git喜欢:packages:yum:git:[]甚至我运行一个bundle来创建vendor/cache以将所有gems都放在那里......并且仍然得到:git://github.com/refinery/refinerycms-search.git(在2-0-stable)未che

ruby - Windows 上的 Jekyll : Pygments not working

在我一直使用RC之前,我已经更新到最新的JekyllBuild(1.0.3)。更新代码解析后(使用Pygments)不再起作用。我总是收到以下错误:C:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:162:warning:cannotclosefdbeforespawn←[31mLiquidException:Nosuchfileordirectory-/bin/shin2012-01-17-test-post.md←[0m有没有人也遇到过这个问题?我对ruby一无所知,所以我不能自己调试:

ruby - 在现有的 Jekyll 安装中切换主题

Jekyll有很多主题,例如https://github.com/jekyll/jekyll/wiki/Themes.在现有的Jekyll安装中切换到新主题的最简单方法是什么? 最佳答案 这是我为更改现有Jekyll安装的主题所做的。调整这些说明以满足您的需要。拉新主题我们创建一个新的孤立分支newtheme并确保它是空的。gitcheckout--orphannewthemegitrm-rf.gitclean-dfx然后我们通过将主题添加为上游远程来将主题文件拉入其中。在此示例中,我拉取了JohnOtander的Pixyll主题的

ruby-on-rails - ruby 2.0 rails gem 安装错误 "cannot load such file -- openssl"

我正在使用osx10.8.2安装了ruby2.0并且....尝试运行"sudogeminstallrails"时得到这个$sudogeminstallrailsERROR:Loadingcommand:install(LoadError)cannotloadsuchfile--opensslERROR:Whileexecutinggem...(NoMethodError)undefinedmethod`invoke_with_build_args'fornil:NilClass我之前使用ruby​​1.9.x和rails3.2.x工作正常 最佳答案

ruby-on-rails - Gem.source_index 已弃用,请使用 Specification。我应该重新安装 Gem 还是 Rails?

我正在Ubuntu11上学习RoR。当我尝试生成应用程序时收到以下消息。我是不是安装错了什么?$railsgeneratecontrollerPageshomecontactNOTE:Gem.source_indexisdeprecated,useSpecification.Itwillberemovedonorafter2011-11-01.Gem.source_indexcalledfrom/usr/lib/ruby/gems/1.8/gems/bundler-1.0.12/lib/bundler/shared_helpers.rb:3.NOTE:Gem.source_indexi

ruby - 无法在 OSX Lion 上使用 RVM 安装 Ruby Enterprise Edition

这是我到目前为止所做的。全新安装OSXLion已从AppStore下载并安装最新版本的Xcode。已安装Git已安装自制软件已安装RVM我现在尝试使用rvminstallree为项目安装RubyEnterpriseEdition并收到以下错误:$rvminstallreeree-1.8.7-2011.03-#installingERROR:Errorrunning'./installer-a/Users/FaraazKhan/.rvm/rubies/ree-1.8.7-2011.03--no-tcmalloc--dont-install-useful-gems',pleaseread/

ruby - 如何找到安装 Ruby Gem 的路径(即 Gem.lib_path c.f. Gem.bin_path)

Gem.bin_path('cucumber','cucumber')将返回二进制文件/可执行文件的路径。似乎没有这样的函数来返回库路径。在这种情况下,理想情况下会返回:/home/hedge/.rvm/gems/ruby-1.9.2-p136@bbb-bdd-meta-bdd/gems/cucumber-0.10.0/lib我是否遗漏了什么或者是否有一种简单/单一的方法来获取此信息?更新:请不要提供CLI或非标准库建议。 最佳答案 已检查答案的问题是您必须“要求”rubygem否则它将无法工作。这通常是不受欢迎的,因为如果您正在使