加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – RoR中的第二天,运行服务器时出现问题

发布时间:2020-12-17 02:01:33 所属栏目:百科 来源:网络整理
导读:我正在运行Lion,10.7.3,Ruby版本1.9.3-p125和最新版本的Xcode. 当我尝试启动服务器时,出现以下错误: Could not find gem ‘rails (= 3.1.0) ruby’ in the gems available on this machine. Run bundle install to install missing gems. 所以我尝试运行bun
我正在运行Lion,10.7.3,Ruby版本1.9.3-p125和最新版本的Xcode.

当我尝试启动服务器时,出现以下错误:

Could not find gem ‘rails (= 3.1.0) ruby’ in the gems available on
this machine. Run bundle install to install missing gems.

所以我尝试运行bundle install并收到以下错误:

Bundler could not find compatible versions for gem "actionpack":   In
snapshot (Gemfile.lock):
    actionpack (3.1.0.rc4)   In Gemfile:
    meta_search (= 1.1.0) ruby depends on
      actionpack (~> 3.1.0) ruby

Running `bundle update` will rebuild your snapshot from scratch,using
only the gems in your Gemfile,which may resolve the conflict.

然后我尝试运行bundle update,但收到以下错误:

An error occured while installing mysql2 (0.3.11),and Bundler cannot
continue. Make sure that gem install mysql2 -v '0.3.11' succeeds
before bundling.

我已经完全被困了几个小时……有谁知道如何解决这个问题?

解决方法

问题解决了:brew安装mysql.更新并重新安装的捆绑包和服务器现在正在运行.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读