我尝试手动安装插件(如表情符号)。但它显示“Bundler找不到与gem'rails'兼容的版本”。我尝试了很多可以在互联网上找到的解决方案,例如删除Gemfile.lock和进行捆绑安装。但是,它仍然对我不起作用。然后我尝试通过包安装它。但是,还是会出现同样的问题。我不知道怎么解决。命令信息:[openproject]./bin/configure[legacy-installer]./bin/preinstall[mysql]./bin/preinstall[apache2]./bin/preinstall[repositories]./bin/preinstall[smtp]./
对Ruby和RubyonRails非常陌生,所以提前致歉。我发现了许多与此类似的帖子,但到目前为止这些建议对我没有用。当我尝试部署时,我发现我使用的Bundler版本与Heroku的版本不匹配,但无法使它们匹配。我试过了,看起来它可以工作,但没有成功。YoumustuseBundler2orgreaterwiththislockfile有没有人有任何想法,或者你能告诉我你需要什么信息来提供一些帮助吗?非常感谢! 最佳答案 删除您的Gemfile.lock例如安装旧版本的bundlergeminstallbundler-v1.17.3
我的Gemfile如下所示:group:development,:testdogem'capybara','0.4.0'gem'cucumber','0.10.0'gem'cucumber-rails','0.3.2'gem'rspec'gem'rspec-rails'gem'shoulda'gem'factory_girl'gem'factory_girl_rails'gem'autotest'gem'annotate-models'end但是当我执行bundleinstall时,我遇到了这样的问题Couldnotfindannotate-models-1.0.4inanyofthe
我像往常一样在Heroku上推送代码。但是这条消息出现了:Warning:therunningversionofBundler(1.15.2)isolderthantheversionthatcreatedthelockfile(1.16.1).WesuggestyouupgradetothelatestversionofBundlerbyrunninggeminstallbundler.所以我跑:herokurungeminstallbundlerRunninggeminstallbundleron⬢myapp...up,run.3401(Standard-1X)Fetching:b
...无需卸载最新版本。我正在开发一个使用Bundler1.10的项目,但我在所有其他项目中使用Bundler1.11。由于此项目是在1.10上运行的,因此每当我运行任何bundle命令时,我的Gemfile.lock都会因Bundler1.11引入的不同格式而发生变化。到目前为止我找到的唯一解决方案是像这样运行我的所有命令:bundle_1.10.6_[command](来自此处的答案:https://stackoverflow.com/a/4373478/1612744)有没有更好的方法?我使用的是rbenv,而不是rvm。 最佳答案
在我安装Spree站点时(根据本指南:http://guides.spreecommerce.com/getting_started.html),我遇到了这个问题:deploy@bothunter:~/rails$sudo-igeminstallrailsSuccessfullyinstalledrails-3.2.11geminstalleddeploy@bothunter:~/rails$sudo-igeminstallbundlerSuccessfullyinstalledbundler-1.0.221geminstalleddeploy@bothunter:~/rails$su
我似乎经常遇到将gem放在正确位置的问题(并且在安装它们时不需要使用sudo。)为了解决sudo问题,我安装了rbenv,然后用它来安装ruby2.1.0,这样我就有了一个独立于MacOSX系统的。然后我安装了bundler。但是当我使用bundler从Gemfile安装gems时,我找不到它们。在我采取的所有步骤之间,例如向我的.bash_profile中添加行等等,我有以下步骤,但实际上只是想要一种清晰、直接的方法来管理gem及其本地执行:gem环境:编辑:我删除了所有内容并重置了PATH——仍然没有修复任何问题,但是您可以看到gems安装在一个目录中,但是当我调用可执行文件时
如何更正我在运行“bundlerinstall”时收到的“i18n需要Ruby版本>=1.9.3”?背景:需要在dreamhost上使用ruby1.8.7,因此为此目标定位了Railsv3.2。命令行Gregs-MacBook-Pro:weekendsGreg$ruby-vruby1.8.7(2013-12-22patchlevel375)[i686-darwin14.1.0]Gregs-MacBook-Pro:weekendsGreg$bundler-vBundlerversion1.9.2Gregs-MacBook-Pro:weekendsGreg$bundlerinstall
我刚刚创建了一个新的gem(使用bundler)并想添加ActiveRecord支持。所以我将s.add_dependency"activerecord","~>3.0"添加到我的gemspec中。然后我使用Bundler.setup和Bundler.require并认为我现在可以访问ActiveRecord,但我没有。我必须明确使用require"active_record"。知道为什么Bundler.require在那种情况下对我不起作用吗? 最佳答案 首先,如果您要打包gem,donotuseBundler.require.B
所以,我敢肯定,我曾经出于绝望而执行了sudobundleinstall,现在我明白这是不行的。但是现在,当我尝试运行bundleinstall时,出现以下错误:Installingculerity(0.2.12)/Library/Ruby/Site/1.8/rubygems/installer.rb:294:in`generate_bin':Youdon'thavewritepermissionsintothe/Library/Ruby/Gems/1.8/bindirectory.(Gem::FilePermissionError)from/Library/Ruby/Site/1.8