jjzjj

bundle-install

全部标签

ruby-on-rails - 运行 "bundle install"失败,让我运行 "bundle install"

事实上,当从我从git存储库克隆的现有Rails应用程序中运行时,所有与gem相关的命令都会产生相同的错误消息。$bundleinstallCouldnotfindtzinfo-0.3.27inanyofthesourcesRun`bundleinstall`toinstallmissinggems.$gemlistCouldnotfindtzinfo-0.3.27inanyofthesourcesRun`bundleinstall`toinstallmissinggems.$bundleupdateCouldnotfindtzinfo-0.3.27inanyofthesourcesR

ruby - 为什么 "bundle exec"会吃掉我传入的参数?

当我使用bundleexec调用命令时,它接受我传入的参数。一个例子是:bundleexecmy_commandrun--verbose在这种情况下,--verbose用作bundler参数,因为它应该用于my_command。我知道以下方法可行:bundleexec'my_commandrun--verbose'是否可以避免引号?我使用的命令已经有很多引号。我预计这样的事情会奏效,但它没有:bundleexec--my_commandrun--verbose我没有看到太多关于bundler的文档。任何想法将不胜感激。 最佳答案 这

ruby-on-rails - 安装/bundle gem unf_ext -v '0.0.6' 时出错

我正在尝试bundleintallunf_ext-v'0.0.6'但我一直收到此错误:Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension.checkingformain()in-lstdc++...yescheckingforruby/encoding.h...yescreatingMakefilemake"DESTDIR="cleanmake"DESTDIR="compilingunf.ccInfileincludedfromunf.cc:1:Infileincludedfrom./unf/normalizer.hh:

ruby-on-rails - 找不到 'devise_install' 生成器 - Rails 2.3.8,Devise 1.0.8

我正在尝试使用新生成的Rails启动并运行Devise2.3.8应用。这是我遇到的错误:devise>script/generatedevise_installCouldn'tfind'devise_install'generator我确实在我的配置文件中指定了Devise和Wardengem:config.gem'warden',:version=>'0.10.7'config.gem'devise',:version=>'1.0.8'gems已安装:devise>rakegems-[I]warden=0.10.7-[R]rack>=1.0.0-[I]devise=1.0.8-[I]

ruby-on-rails - gem install pg for ruby​​ on rails

Postgresql不会安装在OSX上下面是我的数据n安装pg(0.18.4)时出现错误,Bundler无法继续。确保geminstallpg-v'0.18.4'在捆绑之前成功。chriss-MacBook-Pro:shinechriswilson$bundleexec安装用法:安装[-bCcpSsv][-B后缀][-f标志][-g组][-m模式][-o所有者]文件1文件2安装[-bCcpSsv][-B后缀][-f标志][-g组][-m模式][-oowner]file1...fileN目录install-d[-v][-ggroup][-mmode][-oowner]目录...chris

ruby-on-rails - Hartl 教程中的 bundle exec rspec spec/requests/static_pages_spec.rb 不起作用

我正在按照MichaelHartl的ruby​​onrails教程测试示例应用程序(3.2.1测试驱动开发),但在键入bundleexecrspecspec/requests/static_pages_spec.rb后出现以下错误/home/rahul/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver/common/zipper.rb:1:in`require':cannotloadsuchfile--zip/zip(LoadErr

ruby - 运行错误 '__rvm_make install'

我是编程新手,尝试使用RVM添加Ruby2.2并收到以下错误。我已经运行rvmgetstable并尝试重新安装,但出现了同样的错误。$rvmreinstallruby-2.2.0Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:osx/10.10/x86_64/ruby-2.2.0.Continuingwithcompilation.Pleaseread'rvmhelpmount'togetmoreinformationonbinaryrubies.Checkingrequirements

ruby - 如何让我的 AWS Lambda 访问存储在 vendor/bundle 中的 gem?

我正在用Ruby编写一个Lambda函数,它最终会通过Webhook在Slack中向我发送一些通知。所以我的lambda_function文件是require'json'require'webhook'deflambda_handler(event:,context:)#TODOimplement{statusCode:200,body:JSON.generate('HellofromLambda!')}Webhook.post('https://mywebhookurl',{message:'test'})end我的内联代码编辑器中的目录结构如下所示:GemfileGemfile.l

ruby - 更新到 cocoapods 0.32.1 后无法运行 sudo pod install,错误为 "You cannot run CocoaPods as root. (CLAide::Help)"

我在更新到最新版本0.32.1后运行sudopodinstall命令时发现了一个问题。早些时候它工作得很好。当我尝试使用旧的cocoapods安装pod时,它要求我更新到最新的cocoapods版本,即0.32.1。在我通过cocoapodsgem更新后,我无法在我的Xcode项目中执行sudopodinstall。它给了我以下错误。±sudopodinstallruby-1.9.3-p0Password:/Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/gems/1.9.1/gems/claide-0.5.0/lib/claide/

ruby-on-rails - 无法运行 `bundle install`

所以前几天我遇到了严重的硬盘问题,不得不手动删除我的.gem文件夹。我试图通过进入我的项目文件夹运行bundleinstall来为我的应用程序重建gem...不幸的是我遇到了这个错误:/home/xxx/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in`require':cannotloadsuchfile--bundler(LoadError)from/home/xxx/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2