Error after running this command on ubuntu "sudo apt-get install redmine redmine-mysql"

Added by mohamed habib over 6 years ago

I run this command one time but some problems happened so i deleted redmine using "sudo apt-get autoremove redmine",
so i tried to install it again using "sudo apt-get install redmine redmine-mysql" but this error occured

@Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
ruby-rmagick bzr cvs darcs git
The following NEW packages will be installed:
redmine redmine-mysql
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 5,211 kB of archives.
After this operation, 12.6 MB of additional disk space will be used.
Get:1 http://eg.archive.ubuntu.com/ubuntu/ saucy/universe redmine-mysql all 2.3.1-1 [4,214 B]
Get:2 http://eg.archive.ubuntu.com/ubuntu/ saucy/universe redmine all 2.3.1-1 [5,207 kB]
Fetched 5,211 kB in 1min 49s (47.5 kB/s)
Preconfiguring packages ...
Selecting previously unselected package redmine-mysql.
(Reading database ... 203841 files and directories currently installed.)
Unpacking redmine-mysql (from .../redmine-mysql_2.3.1-1_all.deb) ...
Selecting previously unselected package redmine.
Unpacking redmine (from .../redmine_2.3.1-1_all.deb) ...
Setting up redmine-mysql (2.3.1-1) ...
Setting up redmine (2.3.1-1) ...
Replacing config file /etc/redmine/default/session.yml with new version
A new secret session key has been generated in /etc/redmine/default/session.yml
Populating database for redmine instance "default".
This may take a while.
rake aborted!
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (cannot load such file -- mysql)

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Error when running rake db:migrate, check database configuration.
dpkg: error processing redmine (--configure):
subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
mohamed@Dell:~$ sudo apt-get install activerecord-mysql-adapter
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package activerecord-mysql-adapter
mohamed@Dell:~$ sudo apt-get install mysql-adapter
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-adapter
@
i walked throw this guide www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Ubuntu_step_by_step
Thanks in advance :D

Replies (7)

RE: Error after running this command on ubuntu "sudo apt-get install redmine redmine-mysql" - Added by Alex Wilhelmy over 6 years ago

Mohamed,

you should NOT install redmine from repos (just ruby). I did this also last year and got into the mess. The ubuntu-repos do only provide stone age versions of redmine.
You could follow this guide: http://grandslam90.wordpress.com/2012/05/22/howto-redmine-2-0-0-passenger-subversion-repositories-in-ubuntu-12-04/

(or google for a guide more suited for you).

Hope this helps!

Alex

RE: Error after running this command on ubuntu "sudo apt-get install redmine redmine-mysql" - Added by mohamed habib over 6 years ago

Alex Wilhelmy wrote:

Mohamed,

you should NOT install redmine from repos (just ruby). I did this also last year and got into the mess. The ubuntu-repos do only provide stone age versions of redmine.
You could follow this guide: http://grandslam90.wordpress.com/2012/05/22/howto-redmine-2-0-0-passenger-subversion-repositories-in-ubuntu-12-04/

(or google for a guide more suited for you).

Hope this helps!

Alex

Ok, I'll try to reinstall it from another guide, Thanks Alex.

RE: Error after running this command on ubuntu "sudo apt-get install redmine redmine-mysql" - Added by Jan Niggemann (redmine.org team member) over 6 years ago

Alex Wilhelmy wrote:

@Jan Niggemann: would you please remove http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Ubuntu_step_by_step from wiki?

I don't use ubuntu and can't tell if the provided information is correct. Nevertheless, the wiki is open for everyone (except some pages), you can correct the information yourself.

(1-7/7)