草庐IT

kafka安装

全部标签

ruby - 如何在 OS X 10.8 Mountain Lion 上安装 Ruby 1.8.7

很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visitthehelpcenter.关闭10年前。我一直在寻找最好的方法来做到这一点,并找到了一种比同时安装tcl和tk更简单的方法。

ruby - 在 Ubuntu/Debian Linux 上安装 nokogiri

我正在尝试在DebianLinux上安装nokogiri1.6.2.1。我正在运行Ruby-2.1.1。我已经安装了libxml2、libxml2-dev、libxslt和libxslt-dev。输出:Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./home/xxx/.rvm/rubies/ruby-2.1.1/bin/rubyextconf.rbBuildingnokogiriusingpackagedlibraries.checkingforiconv.h...***extconf.rbfailed***Cou

ruby-on-rails - 如何在 Ubuntu 10.10 上安装 Ruby on Rails 3.0?

安装Ruby和RubyGems后:$sudoapt-getinstallrubyrubygems...$ruby-vruby1.8.7(2010-06-23patchlevel299)[i686-linux]$gem-v1.3.7如果我尝试安装Rails,我会收到一个错误,即使看起来只是文档,rails也没有安装:$sudogeminstallrails...Successfullyinstalledrails-3.0.124gemsinstalled...Installingridocumentationforbuilder-2.1.2...ERROR:Whilegenerating

ruby-on-rails - 全新安装 Rails 并出现 OpenSSL 错误 : "already initialized constant OpenSSL"

我一直在尝试使用RoR。我参加了RubyInstallfest,但遇到了我认为是openssl.bundle的问题。我正在使用RVM,并且正在运行Rails5.0.1和Ruby2.4.0我尝试使用rvmimplode进行完全删除/重新启动,并重新安装了RailsAppsGuide之后的所有内容但我仍然看到相同的错误。我正在运行最新版本的macOSSierra。这是我在my_app中运行$Rake-T时得到的输出。richsmith@Richs-MacBook-Pro:~/workspace/myapp$rake-T/Users/richsmith/.rvm/rubies/ruby-2.

ruby-on-rails - rvm 安装 : ruby installation error

我想在我的LinuxMint12上安装ruby​​。我正在关注thistutorial和thisone.当我运行rvminstall1.9.3时,我看到了这个错误:InstallingRubyfromsourceto:/usr/share/ruby-rvm/rubies/ruby-1.9.3,thismaytakeawhiledependingonyourcpu(s)...ruby-1.9.3-#fetchingruby-1.9.3-#extractingruby-1.9.3-to/usr/share/ruby-rvm/src/ruby-1.9.3ERROR:Errorrunning'

ruby - 如何在 Windows 7 上正确安装 Compass?

当我从Ruby的bin文件夹以外的任何地方运行compass时,它返回错误:'compass'isnotrecognizedasaninternalorexternalcommand,operableprogramorbatchfile.这件事发生在其他人身上吗?我在某处读到,在Windows32中可能需要一个文件,也许是compass.exe,我不确定,因为那里没有任何东西说compass。知道为什么安装无法完成吗?另外我应该注意,我通过Parallels在Mac上使用Windows7。 最佳答案 确保你有rubyinstalle

ruby - 使用 RVM 和 ruby​​ 1.8.6 在 Lion 上安装 rspec-1.3.2 时出现问题

我正在尝试使用RVM和Ruby1.8.6在OSXLion上安装rspec版本1.3.2当我安装时,我得到以下信息:$geminstallrspec-v=1.3.2Aborttrap:6我能够使用系统ruby​​成功安装相同的rspec版本。我试图对这个问题进行一些研究,但看起来没有人遇到过同样的事情。类似的问题建议在安装ruby之前exportCC=gcc-4.2。我试过了(在完全清除RVM并重新安装最新版本1.6.31之后)但它没有效果。有没有其他人遇到过这个?您找到解决方案了吗? 最佳答案 我安装了1.8.6fresh没有gem

ruby - Bundler 可以配置为安装 gems rdoc 吗?

我使用bdoc(使用hanna进行格式化)作为查看我系统上安装的gem的rdoc文档的快速方法。但是,因为bundler在安装gem时不会安装rdoc,所以每当我开始使用新gem或更新现有gem时,我都必须不断地手动生成它们。有谁知道在安装gems时是否有配置bundler让它安装rdoc的方法,以避免我必须手动进行?我在bundler源代码中和configmanual中都看不到任何提及。. 最佳答案 如果你使用rvm,试试“rvmrdocsgenerate...” 关于ruby-Bun

ruby - 无法安装metric_fu,如何切换到simplecov?

我尝试在我的Ruby1.9环境中安装metric_fu,但由于以下问题而失败:$geminstallmetric_fu...Fetching:rcov-1.0.0.gem(100%)Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingmetric_fu:ERROR:Failedtobuildgemnativeextension./Users/xxx/.rvm/rubies/ruby-1.9.2-p290/bin/rubyextconf.rb****Ruby1.9isnotsupported.Please

ruby-on-rails - 使用基于已安装引擎的 url_for 获取基于约束的 url

有什么方法可以让url_for在Action调度路由期间根据request.host返回url吗?mountCollaborate::Engine=>'/apps/collaborate',:constraints=>{:host=>'example.com'}mountCollaborate::Engine=>'/apps/worktogether'示例:当用户在example.com主机上时collaborate_path=>/apps/collaborate当用户在任何其他主机上时collaborate_path=>/apps/worktogether经过大量研究,我意识到Rou