Tag: 捆绑

使用“omniauth-oauth2”捆绑安装错误

运行bundle install我收到以下错误(完整跟踪: http : //pastebin.com/Vp4nHc2p ): Bundler could not find compatible versions for gem “omniauth-oauth2”: In Gemfile: omniauth-facebook (~> 1.2.0) ruby depends on omniauth-oauth2 (~> 1.0.0) ruby omniauth-github (~> 1.0.1) ruby depends on omniauth-oauth2 (1.1.1) 要查看我的Gemfile: http ://pastebin.com/vMcHDHa8 知道怎么解决吗?

rails new – 捆绑安装

我刚刚尝试在新的ubuntu 12.10上安装rvm / ruby​​ / gems / rails,经过多次错误和谷歌搜索后我想创建我的第一个应用程序,但是我收到了这个错误。 我怎样才能让它发挥作用? root@filip-Ideapad-Z570:/rails_projects# rails new my_fisrt_app create create README.rdoc create Rakefile create config.ru create .gitignore create Gemfile create app create app/assets/images/rails.png create app/assets/javascripts/application.js create app/assets/stylesheets/application.css create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/views/layouts/application.html.erb create app/mailers/.gitkeep create app/models/.gitkeep create config create config/routes.rb create config/application.rb create config/environment.rb create config/environments create config/environments/development.rb create […]

资产管道在rails生产环境中不起作用

我在使用Rails部署到VPS时遇到问题。 我的应用程序在开发环境中运行良好,但是当我使用Capistrano进行生产时,我遇到了问题。 我使用的是独角兽,rails 3.2.13和ruby 1.9.3 我遇到的问题是当我访问我的生产网站时,我收到了“模板丢失”错误: Template is missing Missing template site/index with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :haml]}. Searched in: * “/home/deployer/apps/my-app/releases/20130417030832/app/views” * “/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views” * “/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/bundler/gems/piggybak_paypal-b892954868c7/app/views” * “/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/gems/piggybak_variants-0.0.15/app/views” * “/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/gems/piggybak-0.6.28/app/views” * “/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/bundler/gems/rails_admin-b8465f738261/app/views” * “/home/deployer/apps/my-app/shared/bundle/ruby/1.9.1/gems/kaminari-0.14.1/app/views” 所以,我认为这可能是资产预编译问题。 当我运行rake资产:在我的本地开发环境中进行预编译时,我遇到了问题: /Users/ac/.rvm/rubies/ruby-1.9.3-p392/bin/ruby /Users/ac/.rvm/gems/ruby-1.9.3-p392/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets [RailsAdmin] RailsAdmin initialization disabled by default. Pass SKIP_RAILS_ADMIN_INITIALIZER=false if you need it. rake aborted! […]

缺少一个恒定的负载..我怎么能绕过这个?

我刚刚为rails 2.3.5 Spree项目安装了bundler。 在这样做之后,我意识到当我去script/console时我收到了这个错误: Loading development environment (Rails 2.3.5) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing’:NameError: uninitialized constant Rails::Plugin::OpenID 我的Gemfile: gem ‘ruby-openid’, ‘2.1.8’ 我运行bundle install没有错误。 >> gem list -d ruby​​-openid *** LOCAL GEMS *** ruby-openid (2.1.8, 2.1.2) Author: JanRain, Inc Homepage: http://github.com/openid/ruby-openid Installed at (2.1.8): /Library/Ruby/Gems/1.8 (2.1.2): /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 完整的Backtrace /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing’: uninitialized constant Rails::Plugin::OpenID (NameError) from /Users/macuser/Sites/test/spree/vendor/plugins/open_id_authentication/init.rb:16:in `evaluate_init_rb’ from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:182:in […]

为什么我在capistrano生成的文件部署中获得Permission denied错误?

我遇到了failed: “sh -c ‘cd /var/www -c’cd failed: “sh -c ‘cd /var/www错误。然后通过在deploy.rb中添加以下内容来修复它… set :default_environment, { ‘PATH’ => “/var/lib/gems/1.9.1/bin:$PATH” } 现在我收到了这个新错误。 ** [out :: ip.address] Rails Error: Unable to access log file. Please ensure that /var/www/releases/20111208152807/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the […]

rake资产预编译失败

当我运行bundle exec rake assets:precompile –trace ,我的预编译失败但我看不到任何特定的原因。 请参阅此pastebin以获取我的输出: http : //pastebin.com/zggZyPyM

由于缺少make命令,bundle install失败

我正在尝试运行“捆绑安装”。 我已经安装了Ruby devkit并将它添加到我的路径中。 它抱怨说不是一个公认的命令。 这不是devkit应该添加的吗? 在搜索此问题的答案时,每个答案似乎都是“安装devkit”。 我在Windows 7上,配置环境以允许它构建gem的最简单方法是什么? 我收到以下输出: $ bundle install Fetching source index for http://rubygems.org/ Using rake (0.8.7) Using activesupport (2.3.11) Using rack (1.1.0) Using actionpack (2.3.11) Using actionmailer (2.3.11) Using activerecord (2.3.11) Using activeresource (2.3.11) Using annotate (2.4.0) Using authlogic (2.1.6) Using columnize (0.3.2) Using haml (3.0.25) Using compass (0.10.6) Using configuration […]

bundler错误地尝试在生产中安装“开发”和“测试”组gem

我有一个小型的网络应用程序,它使用了一堆gem。 其中一些仅用于test和development环境。 现在,当我尝试使用以下命令在生产服务器上启动独角兽时,它会失败。 unicorn_rails -E production -D -c config/unicorn.rb 我在日志文件中看到的错误是: Refreshing Gem list Could not find gem ‘spork (>= 0.9.0.rc2, runtime)’ in any of the gem sources listed in your Gemfile. Try running `bundle install`. 我在下面粘贴了我的gemfile: source ‘http://rubygems.org’ gem ‘rails’, ‘3.0.1’ gem ‘unicorn’ gem ‘mongoid’, ‘>= 2.0.0.beta.19’ gem ‘devise’ gem ‘cancan’ gem ‘haml’, ‘>= 3.0.0’ […]

RAILS,bundle install返回 – 未定义的符号:SSLv2_method

可能重复: 未定义的符号:运行bundle install时的SSLv2_method 我尝试“捆绑安装”我的Rails项目,但我有这个错误: Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! /home/vekozlov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: /home/vekozlov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-linux/openssl.so: undefined symbol: SSLv2_method – /home/vekozlov/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-linux/openssl.so (LoadError) 我找到了这种情况( Ubuntu和SSLv2_method的未定义符号 ),但我不明白如何在Ubuntu 12.04 x64中修复它 谢谢你的帮助。 UPD:它对我有用(俄语) http://awolf.ru/rails-on-ubuntu-with-rvm/

Rails:运行’bundle’命令时出错

我正在运行bundle install –local并收到以下错误: Your bundle is locked to rake (11.2.2), but that version could not be found in any of the sources listed in your Gemfile. If you haven’t changed sources, that means the author of rake (11.2.2) has removed it. You’ll need to update your bundle to a different version of rake (11.2.2) that […]