草庐IT

installment

全部标签

ruby-on-rails - Gem install ffi 无法构建 gem native 扩展

我在使用Rails4.2.10进行的一个项目中进行捆绑安装时遇到了麻烦。当我捆绑时,我收到下一个错误:安装ffi(1.9.25)时出错,Bundler无法继续。确保geminstallffi-v'1.9.25'在捆绑之前成功。InGemfile:s3_direct_uploadwasresolvedto0.1.6,whichdependsonsass-railswasresolvedto5.0.7,whichdependsonsasswasresolvedto3.6.0,whichdependsonsass-listenwasresolvedto4.0.0,whichdependson

ruby - 使用 rvm install ruby​​ 2.0.0 时权限被拒绝的问题

我找了很多内容,还是没找到是什么原因,我确定rvm文件夹权限应该是对的。$rvmgetstableARVMversion1.20.13(master)isinstalledyet1.20.13()isloaded.Pleasedooneofthefollowing:*'rvmreload'*openanewshell*'echorvm_auto_reload_flag=1>>~/.rvmrc'#forautoreloadwithmsg.*'echorvm_auto_reload_flag=2>>~/.rvmrc'#forsilentautoreload.并检查rvm版本:$rvm--v

ruby - 运行 rvm install ruby​​-2.0.0-p247 时运行错误 'make -j2'

这是在尝试安装Ruby2.0时出现的错误Errorrunning'make-j2',pleaseread/usr/local/rvm/log/ruby-2.0.0-p247/1372532765_make.logTherehasbeenanerrorwhilerunningmake.Haltingtheinstallation.我尝试按照这些步骤操作但没有成功:Can'tinstallRuby2.0.0-p0withRVM.Errorrunning'make-j8'如有任何帮助,我们将不胜感激。我不知道该怎么办...这是日志:[2013-06-2915:06:05]makeCC=cla

ruby-on-rails - 英雄库/rails : How to install the GNU Scientific Library (GSL) on Heroku?

我需要在运行Rails(4.0.2)应用程序的Heroku上安装GSL库,以使用依赖它的一些gem。目标:安装GSL库以使用GSL和SimilarityHeroku中的gem。尝试过的方法:InstallingRuby/GSLinHerokuApplication:Heroku在部署后崩溃。GSLgem找不到库。跟踪:http://pastebin.com/CPcMUdCaTomwolfe'sHeroku'sRubybuildpackadaptedforusingcouchbase:同样的问题。BuildingDependencyBinariesforHerokuApplication

ruby-on-rails - rbenv bundle install 尝试将 gems 安装到错误的路径中

我收到以下错误消息:Youruseraccountisn'tallowedtoinstalltothesystemRubygems.Youcancancelthisinstallationandrun:bundleinstall--pathvendor/bundletoinstallthegemsinto./vendor/bundle/,oryoucanenteryourpasswordandinstallthebundledgemstoRubygemsusingsudo.下面是我做过的一些检查:meatme-ui-MacBook-Proin~$rbenvversionssystem2

ruby-on-rails - 如何撤消 bundle install --deployment?

我一直在开发Rails应用程序,并使用本地git存储库定期部署到heroku。我不小心运行了命令:bundleinstall--deployment它似乎将所有gems下载到本地文件夹,现在当我想上传到heroku时,它正在尝试上传许多兆字节的gems...如何撤消我运行的命令并删除本地gems?如何防止bundleinstall再次下载所有gem? 最佳答案 想把这个作为答案,因为jrochkind的评论很有帮助rm-rfvendor/bundle-rf中的f忽略询问您是否真的要删除此文件的问题。bundleinstall--no

ruby - 我不想将 "rake install"发布到 Rubygems

我在运行:rakeinstall在使用bundlegem构建的项目上我已将gem发布到Rubygems。但是,有时我在使用VPN时不想rakeinstall尝试将gem也发布到Rubygems。我只想在本地安装它。我怎样才能做到这一点? 最佳答案 当您运行rakeinstall时,由bundler创建的rakefile不会发布您的gem。您正在考虑rakerelease不要忘记您可以执行rake-T来查看所有描述任务的列表。$bundle--versionBundlerversion1.0.21$bundlegemsomegemcr

ruby-on-rails - 尝试生成设计时出错 :install in Ruby on Rails

我是RubyonRails的新手,我试着从Internet上做一些例子。但是当我尝试生成设计安装时出现错误。我通过添加gemdevise修改了Gemfile。然后运行:bundleinstall但是当我运行的时候。railsgeneratedevise:install我有下一个错误:/usr/local/lib/ruby/gems/0.9.1/gems/devise-1.1.3/lib/devise.rb:193:in`mailer=':undefinedmethod`ref'forActiveSupport::Dependencies:Module(NoMethodError)fro

ruby-on-rails - gem install therubyracer -v 0.11.4 在 OS X 10.10 上失败

按照此处的步骤操作"geminstalltherubyracer-v'0.10.2'"onosxmavericksnotinstalling,我能够让therubyracer-v0.10.2和0.12.0安装正常,但不能安装0.11.4。geminstalltherubyracer-v0.11.4返回:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingtherubyracer:ERROR:Failedtobuildgemnativeextension./Users/thooper/.rbenv/ver

ruby-on-rails - rails : Bundler could not find compatible versions for gem "actionpack" on installing ActiveAdmin

我在我的gemfile中添加了gem'activeadmin',github:'activeadmin'并进行了捆绑安装。然后它向我抛出以下错误。Bundlercouldnotfindcompatibleversionsforgem"actionpack":Insnapshot(Gemfile.lock):actionpack(=5.0.0.1)InGemfile:activeadmin(~>1.0.0.pre4)wasresolvedto1.0.0.pre4,whichdependsonformtastic(~>3.1)wasresolvedto3.1.4,whichdependso