installation fails because of activerecord-mysql-adapter missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
redmine (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
* config of redmine fails:
$ apt-get install redmine
...
Setting up redmine (2.3.1-1) ...
dbconfig-common: writing config to /etc/dbconfig-
Creating config file /etc/redmine/
granting access to database redmine_default for redmine@localhost: already exists.
creating database redmine_default: already exists.
dbconfig-common: flushing administrative password
Replacing config file /etc/redmine/
A new secret session key has been generated in /etc/redmine/
Populating database for redmine instance "default".
This may take a while.
rake aborted!
Please install the mysql adapter: `gem install activerecord-
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
...
* installing the mysql adapter fails, too:
$ gem install activerecord-
Building native extensions. This could take a while...
ERROR: Error installing activerecord-
ERROR: Failed to build gem native extension.
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
...
Gem files will remain installed in /var/lib/
Results logged to /var/lib/
* btw, installing mysql2-adapter works:
$gem install activerecord-
Fetching: activerecord-
Successfully installed activerecord-
1 gem installed
Installing ri documentation for activerecord-
Installing RDoc documentation for activerecord-
* installing libmysqlclient-dev solves the problem with "gem install activerecord-
Distri: Ubuntu-Server 13.10 armhf
Hardware: Netgear ReadyNAS 104 (ARMv7l cpu)