Project

General

Profile

problem in installing redmine on centos

Added by Ahmed Khairy about 11 years ago

hello guys;

i just follow this link to install redmine on centos 6.4
(http://www.redmine.org/projects/redmine/wiki/Redmine_203_with_Subversion_and_LDAP_Authentication_%28for_Redmine_and_Subversion_through_Redmine%29_on_Centos_6_i386_-_detailed)

and i successfully install it but when i reach to this command and need to run it. it gives me an error:

command: RAILS_ENV=production rake db:migrate

Error: rake aborted!
undefined local variable or method `generate_session_srotre' for main:Object
/var/www/Redmine/config/environment.rb:5
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

also when i run this command (RAILS_ENV=production rake redmine:load_default_data)

it gives me the same error.

i just need help to fix that or i need to know what is the problem

os: centos 6.4

redmine: 2.0.3
ruby: 1.9

thanks for help


Replies (5)

RE: problem in installing redmine on centos - Added by Ahmed Khairy about 11 years ago

still have this problem guys and tis is the error that comes to me:

rake aborted!
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (can't activate mysql (~> 2.8.1, runtime), already activated mysql-2.9.1. Make sure all dependencies are added to Gemfile.)
/var/www/redmine/lib/plugins/acts_as_activity_provider/init.rb:2
/var/www/redmine/config/initializers/00-core_plugins.rb:12
/var/www/redmine/config/initializers/00-core_plugins.rb:2:in `each'
/var/www/redmine/config/initializers/00-core_plugins.rb:2
/var/www/redmine/config/environment.rb:14
Tasks: TOP => redmine:load_default_data => environment
(See full trace by running task with --trace)
-------------
when i run this command "gem install activerecord-mysql-adapter" it gives me this result:

Successfully installed i18n-0.6.1
Successfully installed activesupport-3.2.13
Successfully installed activemodel-3.2.13
Successfully installed activerecord-3.2.13
Successfully installed activerecord-mysql-adapter-0.0.1
5 gems installed
Installing ri documentation for i18n-0.6.1...
Installing ri documentation for activesupport-3.2.13...
Installing ri documentation for activemodel-3.2.13...
Installing ri documentation for activerecord-3.2.13...
Installing ri documentation for activerecord-mysql-adapter-0.0.1...
Installing RDoc documentation for i18n-0.6.1...
Installing RDoc documentation for activesupport-3.2.13...
Installing RDoc documentation for activemodel-3.2.13...
Installing RDoc documentation for activerecord-3.2.13...
Installing RDoc documentation for activerecord-mysql-adapter-0.0.1...


so how can i fix this problem???????

RE: problem in installing redmine on centos - Added by Teguh Ambar Setyawan almost 11 years ago

i have same problem on this tutorial

i try to edit on Gemfile : gem "mysql", "~> 2.9.1"

but still get error

Please install the mysql adapter: `gem install activerecord-mysql-adapter` (can't activate mysql (~> 2.8.1, runtime), already activated mysql-2.9.1. Make sure all dependencies are added to Gemfile.)
/var/www/redmine/lib/plugins/acts_as_activity_provider/init.rb:2
/var/www/redmine/config/initializers/00-core_plugins.rb:12
/var/www/redmine/config/initializers/00-core_plugins.rb:2:in `each'
/var/www/redmine/config/initializers/00-core_plugins.rb:2
/var/www/redmine/config/environment.rb:14
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

please help this problem

RE: problem in installing redmine on centos - Added by Steve S almost 11 years ago

I had the same problem. To resolve I edited Gemfile but with the following:

gem "mysql", "~>2.8.1"

and then re-ran:

bundle install --without development test rmagick postgresql sqlite

Hope it helps.

RE: problem in installing redmine on centos - Added by Teguh Ambar Setyawan almost 11 years ago

done, my problem is solve. thank u Steve

RE: problem in installing redmine on centos - Added by Laurent Richelle over 10 years ago

Hello Steve and Teguh,

encountering same problem as you !
Having problem to understand : "edited GemFile"
as I'm executing

 gem "mysql", "~>2.8.1" 

I'm encountering an error message saying mysql is not a command.
How to achieve it ?

Kind Regards,

Laurent R.


Please, disregards !!!
For newbee like me , GemFile is a file situated into /var/www/redmine folder.
Edit (vi) this file and add "~>2.8.1" next by

gem "mysql"

and follow instruction !

    (1-5/5)