`load_missing_constant': uninitialized constant MysqlCompat::MysqlRes (NameError) on CentOS 5.4

Added by Caio Cunha almost 10 years ago

Hi, there!

I'm at CentOS 5.4 x86 here:

# uname -a
Linux xxx 2.6.18-274.17.1.el5 #1 SMP Tue Jan 10 17:26:03 EST 2012 i686 i686 i386 GNU/Linux

I was using Redmine 1.2 on a CentOS 5.4 x86_64, using mod_cgi with Apache 2.2. Now I needed to migrate to the machine stated above. I've followed the upgrade wiki (http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade) to upgrade to Redmine 1.3.1 while migrating to the new server.

I'm getting `load_missing_constant': uninitialized constant MysqlCompat::MysqlRes (NameError) when executing public/dispatch.cgi from the redmine root folder.

The complete error log is attached. I've googled for an answer but none of the solutions worked for me, and they were mostly aimed at OS X and x86_64.

What could it be?

Cheers,
CaioToOn!

Some more info:


# gem list

*** LOCAL GEMS ***

actionmailer (2.3.14, 2.3.11)
actionpack (2.3.14, 2.3.11)
activerecord (2.3.14, 2.3.11)
activeresource (2.3.14, 2.3.11)
activesupport (2.3.14, 2.3.11)
fcgi (0.8.8)
i18n (0.4.2)
mysql (2.8.1)
rack (1.1.1, 1.1.0)
rails (2.3.14, 2.3.11)
rake (0.9.2)

# ruby -v
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]
# mysql -V
mysql  Ver 14.14 Distrib 5.1.46, for pc-linux-gnu (i686) using  EditLine wrapper
# apachectl -v
Server version: Apache/2.2.15 (Unix)
Server built:   Feb  8 2012 12:51:27

redmine.log - Redmine complete error log (11.9 KB)