`
nnnnon
  • 浏览: 150295 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Rails 2.3.5 gem update (dependency errors fixed)

阅读更多
I recently updated my rails gem and realised i was getting errors trying to create new rails projects in 2.3.5, below is the error i was getting.

    /Library/Ruby/Site/1.8/rubygems.rb:827:in `report_activate_error’: RubyGem version error: rack(1.0.0 not ~> 1.0.1) (Gem::LoadError)
    from /Library/Ruby/Site/1.8/rubygems.rb:261:in `activate’
    from /Library/Ruby/Site/1.8/rubygems.rb:68:in `gem’
    from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller.rb:34
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require’
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’
    from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require’
    from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in’
    from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require’
    from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:2
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require’
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’
    from ./script/server:3

    /Library/Ruby/Site/1.8/rubygems.rb:827:in `report_activate_error’: RubyGem version error: rack(1.0.0 not ~> 1.0.1) (Gem::LoadError) from /Library/Ruby/Site/1.8/rubygems.rb:261:in `activate’ from /Library/Ruby/Site/1.8/rubygems.rb:68:in `gem’ from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller.rb:34 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require’ from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’ from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require’ from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in’ from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require’ from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:2 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require’ from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’ from ./script/server:3

I went through a few debug modes checked but came up with no lasting solution. I finally checked for my installed gems “sudo gem list” and realised i had “Rack 1.0.0″ installed and I upgraded my rack version with the command “sudo gem update rack” I rechecked my gem list and realised i now i had Rack 1.0.0 and Rack 1.1.0 installed. Great! right? tried to launch my project again and I saw the same errors again, Uhh! Took another closer look again a realised somehow it depended more or less on Rack 1.0.1 which has been skipped by the update to the lastest version of Rack. So this meant we have to install that particular version of rack. I used the following command

    sudo gem install -v=1.0.1 rack

Rechecked my rack verisons and now I had all three verisons, tried my project again and behold Rails was booting nicely
分享到:
评论

相关推荐

    rails-2.3.5.gem

    rails-2.3.5.gem redmine必须gem

    ruby on rails 2.3.5 api html版

    10. **插件和Gem**:Rails的生态系统中,Gem是第三方库的主要形式,它们提供了额外的功能,如Devise用于身份验证,CanCanCan用于授权,Paperclip或Carrierwave处理文件上传等。 11. **部署**:了解如何将Rails应用...

    ruby on rails与MySql的环境配置——支持rails 2.3.5以上版本

    如果提示需要更新GEM,运行`gem update --system`,或者手动下载最新版的RubyGems ZIP文件,解压后执行`setup.rb`,然后再安装Rails。 安装MySQL驱动是配置中的关键步骤。推荐使用mysql-2.7.3-mswin32.gem版本,...

    rails 2.3.5开发就业指导中心网站部分记录

    标题 "rails 2.3.5开发就业指导中心网站部分记录" 暗示了我们将会探讨使用Rails 2.3.5版本进行Web开发的相关技术。Rails是Ruby的一个框架,用于构建动态、数据驱动的Web应用。在这个特定的项目中,它被用来创建一个...

    rails2.3.2gem本地安装包及使用说明

    Gem 是 Ruby 的包管理器,用于安装和管理各种库和框架,包括 Rails。如果你无法通过网络升级或安装 Rails,可以采用本地安装包的方式。以下是对 Rails 2.3.2 Gem 本地安装包及其使用说明的详细解读。 1. **Rails ...

    awesome-rails-gem-zh_CN, Rails 常用 Gem 列表 - Awesome Rails Gem 中文版.zip

    Awesome Rails Gem 是一个广泛收录了Rails开发中常用、实用、有趣的Gem的列表,旨在帮助开发者提高开发效率和代码质量。这个中文版的Awesome Rails Gem列表,为国内开发者提供了一个方便的参考资源,使他们能够更好...

    activesupport-2.3.5.gem

    activesupport-2.3.5.gem

    rails飞信 gem plugin api 插件的问题解决方案

    标题中的“rails飞信 gem plugin api 插件的问题解决方案”涉及到的是在Ruby on Rails框架下,使用特定的gem(一种Ruby的库或插件)来集成飞信API时遇到的问题及解决方法。飞信是中国移动推出的一种即时通讯服务,...

    adminlte-rails, AdminLTE Rails gem 将AdminLTE主题与 Rails 资产管道集成.zip

    adminlte-rails, AdminLTE Rails gem 将AdminLTE主题与 Rails 资产管道集成 AdminLTE Rails gem AdminLTE 是后端的高级 Bootstrap 主题。英镑 AdminLTE Rails gem 与 Rails 资产管道集成了英镑AdminLTE主题。安装将...

    ruby on rails使用的gem

    ROR安装的最版本的GEM,ruby on rails即ROR

    用于过滤英文脏话的 Rails 插件 gem_Ruby_代码_相关文件_下载

    标题提到的"用于过滤英文脏话的 Rails 插件 gem"正是为了解决这个问题。这个插件允许开发者通过简单的配置,对输入的文本进行检查和替换,确保网站内容的清洁度和专业性。 这个插件名为`profanity_filter`,它是一...

    rails-2.3.8.gem

    版本为:rails-2.3.8.gem 可使用指令安装:gem install rails-2.3.8.gem

    rails4常用gem3

    rails4gems.part3.rar rails4常用gem3

    rails-2.1.0-gem

    "rails-2.1.0-gem"是Rails框架的一个特定版本,即2.1.0的gem包,用于在Ruby环境中安装和管理Rails框架。 Rails的核心理念是“约定优于配置”(Convention over Configuration),这意味着开发者可以遵循一套预设的...

    rails-2.1.0-gem包

    这个gem包是Rails 2.1.0版本的源代码和相关库的集合,允许开发者在他们的项目中引入这个特定版本的Rails。下面将详细讨论Rails 2.1.0中的关键特性、改进和对开发者的重要意义。 首先,Rails 2.1.0 引入了Action...

    rails-2.3.11.gem

    是我搭建redmine过程中所使用到的资源,因为感到很多东西不太好找,所以给上传上来,供自己和大家使用。

    framework7-rails:Gem for Framework7 这是一个用于构建 iOS 应用程序的全功能 HTML 框架

    $ gem install framework7rails $ gem install git@github.com:kevincobain2000/framework7-rails.git 将 framework7rails 与 rails 集成 宝石档案 gem 'framework7rails' , :git => '...

    jquery-colorpicker-rails:Gem 为您的 Rails 3 应用程序提供 jquery.colorpicker 驱动程序

    用于Gem,用于在 Rails 应用程序中使用 安装 将此行添加到应用程序的 Gemfile 中: gem 'jquery-colorpicker-rails' 然后执行: $ bundle 或者自己安装: $ gem install jquery-colorpicker-rails 用法 添加...

    rubygems-update-1.3.1.gem

    4. **命令行工具**:RubyGems提供了一系列的命令行工具,如`gem install`用于安装gem,`gem update`用于更新gem,`gem list`用于列出已安装的gem等。 `rubygems-update-1.3.1.gem` 这个特定的文件是RubyGems的更新...

    jquery-rails, 一个 gem,用于自动使用jQuery和 Rails 3.zip

    jquery-rails, 一个 gem,用于自动使用jQuery和 Rails 3 railsjQuery 面向 Rails 如此伟大。这里 gem 提供:jQuery 1.7.2jQuery UI 1.8.18 ( 仅适用于 javascript )jQuery UJS适配器assert_select_j

Global site tag (gtag.js) - Google Analytics