草庐IT

re-install

全部标签

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

ruby-on-rails - gem install rails 不安装rails

当我尝试安装rails时:root@li44-48:/#geminstallrailsSuccessfullyinstalledrails-3.2.11geminstalledInstallingridocumentationforrails-3.2.1...InstallingRDocdocumentationforrails-3.2.1...但是当我这样做的时候:root@li44-48:/#rails-bash:rails:commandnotfound我检查了gemenv并显示:RubyGemsEnvironment:-RUBYGEMSVERSION:1.8.15-RUBYVE

ruby-on-rails - "bundle install"从 Rails 控制台系统命令发出时未创建 Gemfile.lock

我有一个奇怪的用例,我需要从一个Rails应用程序发出“bundleinstall”(作为system()命令)另一个没有Gemfile.lock的新制作的Rails应用程序.我知道这通常是从命令行完成的,但我需要在Rails中完成。作为引用,使用irb可以轻松实现这一点。它根据预期的Gemfile获取gem并生成一个Gemfile.lock。出于某种原因,当我在Rails控制台(从另一个应用程序)中发出相同系列的命令时,bundle命令实际上并没有获取或更新gems,也没有生成Gemfile.lock。正如tadman所指出的,我认为这是由于irb和railsconsole之间的环境

ruby-on-rails - 无法使用 capistrano 部署 rails4 项目。 rbenv : version `2.0.0' is not installed

我在将我的rails4应用程序部署到VPS时遇到错误。我得到的错误是rbenv:version`2.0.0'isnotinstalled但是使用“ruby-v”我得到了ruby2.0.0p0(2013-02-24revision39474)[i686-linux]在我的gemfile中有source'https://rubygems.org'ruby'2.0.0'gem'rails','4.0.0'这个错误出现在bundleinstallrecipe之后2013-08-0423:23:56executing`bundle:install'*executing"cd/home/yasin

ruby - undefined symbol : SSLv2_method when running bundle install

我在运行bundle程序安装我的gems时收到此错误。我环顾四周,除了在r​​vm上安装opensslpkg并重新安装所有rubies之外没有找到解决方案,这样做并没有解决问题,还有其他可能的解决方案吗?这是我运行bundleinstall的输出:Fetchinggemmetadatafromhttps://rubygems.org/.Unfortunately,afatalerrorhasoccurred.PleaseseetheBundlertroubleshootingdocumentationathttp://bit.ly/bundler-issues.Thanks!/home