Project

General

Profile

Actions

Defect #12024

closed

Unable to complete install - v.2.x

Defect #12024: Unable to complete install - v.2.x

Added by Jakes vdM about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Gems support
Target version:
-
Resolution:
Invalid
Affected version:

Description

Hi guys,

Very new to RedMine, an in no way a Ruby/RoR dev, so I could be mistaken here.

Fired up a new Ubuntu 12.04 53 VM for a fresh installation.

I followed the excellent guide here (so will just rehash my post there).

When I get to this point:

$ sudo RAILS_ENV=production rake db:migrate

I get hit up with this error:
Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.)
Tasks: TOP => db:migrate => environment
(See full trace by running task with –trace)

I’m following this up with:

$ sudo gem install activerecord-mysql2-adapter mysql2
Successfully installed activerecord-mysql2-adapter-0.0.3
Building native extensions. This could take a while…
Successfully installed mysql2-0.3.11
2 gems installed
Installing ri documentation for activerecord-mysql2-adapter-0.0.3…
Installing ri documentation for mysql2-0.3.11…
Installing RDoc documentation for activerecord-mysql2-adapter-0.0.3…
Installing RDoc documentation for mysql2-0.3.11…

& try running again the initial command, but the problem remains.

I then try to check the [setup] (? sorry – I’m not a ruby dev):

$ sudo bundle install | grep -i sql
Using mysql (2.8.1)

After a bit of digging, I think I found a bug & a solution to said bug – I can be wrong, but this allowed be to sake a step forther.
In the Gemfile, I searched for references to “mysql” & commented out & replaced (based on the next portion of same file)

# gem “mysql”
gem “mysql2″, “~> 0.3.11″

Ran `sudo bundle update` & then the buggy command again & managed to proceed.

This could be some sort of dependency issue or a typo in the Gemfile - i.e. ruby 1.8.x vs 1.9.x - not sure.

Updated by Toshi MARUYAMA about 14 years ago Actions #1

  • Tracker changed from Patch to Defect
  • Status changed from New to Closed
  • Priority changed from High to Low
  • % Done changed from 10 to 0
  • Resolution set to Invalid

Please ask your questions which depends on OS in forum, the tracker is for bugs and feature requests only.

Updated by Jakes vdM about 14 years ago Actions #2

Thanks for the update, Toshi

Actions

Also available in: PDF Atom