草庐IT

nodeJS安装(超详细小白教程)

全部标签

ruby-on-rails - 如何在 OSX 上安装 Ruby on Rails 3?

我有一台白色Macbook,我必须在10小时后去参加一个session,但我遇到了很多问题。首先,我想要Rails3,所以我使用MacPorts安装Ruby1.8.7。它运作良好;)然后我想我应该安装Rails3,但是不,不!它说:$sudogeminstallrails--preERROR:Errorinstallingrails:activesupportrequiresRubyversion>=1.8.7.我该怎么办?我已经有1.8.7了! 最佳答案 首先您需要安装RVM,然后是最新版本的Ruby。接下来,您将将该版本的Rub

ruby-on-rails - 无法在 Windows 7 上安装 MySQL2 gem

我在安装时收到以下错误消息,如果我需要发布更多详细信息,请告诉我。我按照以下位置的说明操作:https://github.com/oneclick/rubyinstaller/wiki/Development-Kit我正在使用ruby​​1.9.2p136(2010-12-25)[i386-mingw32]。这是我得到的:E:\work_desk\trunk>geminstallmysql2-v0.2.4TemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...ERR

ruby - 在 Windows 上的 Ruby 1.9.1 上安装 Hpricot

我正在尝试使用以下命令安装hpricot:>geminstallhpricot-v0.8.2Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallinghpricot:ERROR:Failedtobuildgemnativeextension.C:/Ruby19/bin/ruby.exeextconf.rbcheckingforstdio.h...*extconf.rbfailed*CouldnotcreateMakefileduetosomereason,probablylackofnecessarylibr

ruby-on-rails - MySQL2 gem 无法安装

长期以来,我一直在尝试在我的Ubuntu12.04服务器上安装Gitlab,在我运行bundleinstall之前一切顺利。它说它无法安装MySQL2,但没有给出原因或纠正措施。home/gitlab/gitlab$sudo-ugitlab-Hbundleinstall--deployment--withoutdevelopmenttestpostgresFetchinggemmetadatafromhttp://rubygems.org/.......Fetchinggemmetadatafromhttp://rubygems.org/..Usingrake(10.0.1)Using

ruby-on-rails - 为什么我不能在我的 Mac 上安装任何 gem?

我尝试为几乎任何gem执行geminstall,但我一直遇到错误。我想我需要重置和/或更新计算机上的某些内容,但不确定是什么。以下是一些命令行代码错误:ERROR:Couldnotfindavalidgem'multi_json'(>=0),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-SSL_connectreturned=1errno=0state=SSLv3readservercertificateB:certificateverifyfailed(https://s3.amazonaws.com/producti

ruby - 无法从 ruby​​gems.org 安装 'cocoapods' gem(不良响应后端读取错误)

当我在OSXMavericks上运行“geminstallcocoapods”时出现错误。$geminstallcocoapodsERROR:Couldnotfindavalidgem'cocoapods'(>=0),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-badresponsebackendreaderror503(https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/cocoapods-0.27.1.gemspec.rz)ERROR:Possiblea

ruby - 无法安装 Nokogiri gem,找不到 "libxml/parser.h",但它在那里,为什么?

我尝试安装Nokogiri,但我总是遇到编译错误:checkingforlibxml/parser.h...***extconf.rbfailed***但是,我已经安装了它和所有其他依赖项。我尝试像这样给安装程序提示:%>geminstallnokogiri----with-xml2-lib=/usr/lib/--with-xml2-include=/usr/include/libxml2/...checkingforlibxml/parser.h...***extconf.rbfailed***...但它仍然没有安装:%>find/usr/include/-name"parser.h

ruby - 为什么 gems 安装在与我运行的 Ruby 版本不同的目录中?

当我安装gem时,它会安装在名为1.9.1的目录中,尽管这不是我安装的Ruby版本:$ruby-vruby1.9.3p327(2012-11-10revision37606)[x86_64-darwin12.2.0]$gemwhichrails.../ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails.rb为什么会这样?我没有安装其他Ruby版本(当然也没有安装v1.9.1)。 最佳答案 请注意,以下内容也适用于撰写本文时所有后来的Ruby版本,而不仅仅是1.9.2。根据1.9.2releas

ruby-on-rails - 无法在 Rails 上安装 pg gem

我正在尝试捆绑安装,但是由于某些奇怪的原因,pggem在安装时返回了以下错误:$geminstallpg-v'0.18.4'Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingpg:ERROR:Failedtobuildgemnativeextension./Users/username/.rvm/rubies/ruby-2.2.1/bin/ruby-r./siteconf20151221-23315-1tkv3fd.rbextconf.rbcheckingforpg_config...noNopg_c

ruby-on-rails - bundle 安装 : ERROR: Failed to build gem native extension. nio4r gem

我目前正在使用以下项目进行项目:rvm1.26.11ruby2.2.1p85我尝试运行bundleinstall但不断收到以下错误:Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension.并且,以下:Anerroroccurredwhileinstallingnio4r(1.0.0),andBundlercannotcontinue.Makesurethat`geminstallnio4r-v'1.0.0'`succeedsbeforebundling.当我尝试运行geminstallnio4r-v'1.0.0'时:Buil