Project

General

Profile

updating redmine 0.8.2 to 0.9.3 FAILED

Added by Nicolas P about 14 years ago

Hi,

On solaris 5.10
I try to upgrade redmine version but the db migration is failed

% rake db:migrate RAILS_ENV=production --trace
(in /DATA/redmine-0.9.3_dev)
  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
    !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
    rake aborted!
    ld.so.1: ruby: fatal : libmysqlclient.so.16 : échec de l'ouverture : Ce fichier ou ce répertoire n'existe pas - /opt/coolstack/lib/ruby/site_ruby/1.8/sparc-solaris2.10/mysql.so
    /opt/coolstack/lib/ruby/site_ruby/1.8/sparc-solaris2.10/mysql.so

The different product installed are:
ruby 1.8.6 (2008-03-03 patchlevel 114) [sparc-solaris2.10]
rubygems-1.3.5

% gem list --local

  • LOCAL GEMS ***

actionmailer (2.0.2)
actionpack (2.1.0, 2.0.2)
activerecord (2.0.2)
activerecord-oracle_enhanced-adapter (1.1.0)
activeresource (2.0.2)
activesupport (2.1.0, 2.0.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.9)
fastercsv (1.5.0, 1.4.0)
fastthread (1.0.1)
gem_plugin (0.2.3)
mongrel (1.1.3)
mysql (2.8.1)
rack (1.0.1)
rails (2.0.2)
rake (0.8.1)

Have you any idea about this? The required version of rail is Rails 2.3.5 but this version doesnt exist on http://rubyforge.org.

Thanks


Replies (1)

RE: updating redmine 0.8.2 to 0.9.3 FAILED - Added by Eric Voisard about 14 years ago

Hi Nicolas,

!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
ld.so.1: ruby: fatal : libmysqlclient.so.16 : échec de l'ouverture : Ce fichier ou ce répertoire n'existe pas - /opt/coolstack/lib/ruby/site_ruby/1.8/sparc-solaris2.10/mysql.so
/opt/coolstack/lib/ruby/site_ruby/1.8/sparc-solaris2.10/mysql.so

I had the same issue.
Since Rails 2.2, the Rails package doesn't include the mysql.rb driver anymore. When I tried to install mysql.gem, the latter needed to compile a native mysql extension (libmysqlclient.so.16) for my system but it was missing some resources.

The solution I found was to install a development package for mysql and iirc, a development package for Ruby 1.8.7 too. Then I reinstalled mysql.gem which properly built the new library...

This is not Redmine specific and you should find more detailed information about that in the web. There might be alternative solutions...

Eric

    (1-1/1)