mysql2 mariadb
Added by Ascalon Nerra over 9 years ago
I have debian 8 with Apache 2.4, MariaDB 10.1 and PHP 5.6.
I try install Redmine by command:
# aptitude install redmine redmine-mysql
I follow all commands, but now when I want set up DB, it still set this error:
root@vmsrv-www1:~# aptitude install redmine redmine-mysql The following partially installed packages will be configured: redmine No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. Setting up redmine (3.0~20140825-5) ... dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/default.conf Creating config file /etc/redmine/default/database.yml.new with new version granting access to database redmine_default for redmine_default@localhost: already exists. creating database redmine_default: already exists. dbconfig-common: flushing administrative password Could not find gem 'mysql2 (~> 0.3.11) ruby' in the gems available on this machine. Run `bundle install` to install missing gems. dpkg: error processing package redmine (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: redmine E: Sub-process /usr/bin/dpkg returned an error code (1) Failed to perform requested operation on package. Trying to recover: Setting up redmine (3.0~20140825-5) ... dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/default.conf Creating config file /etc/redmine/default/database.yml.new with new version granting access to database redmine_default for redmine_default@localhost: already exists. creating database redmine_default: already exists. dbconfig-common: flushing administrative password Could not find gem 'mysql2 (~> 0.3.11) ruby' in the gems available on this machine. Run `bundle install` to install missing gems. dpkg: error processing package redmine (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: redmine
If I try install mysql2 gem by commnad:
gem install mysql2
I get this error:
root@vmsrv-www1:~# gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /usr/bin/ruby2.1 extconf.rb checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... yes checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for rb_hash_dup()... yes checking for rb_intern3()... yes ----- Using mysql_config at /usr/bin/mysql_config ----- checking for mysql.h... yes checking for errmsg.h... yes checking for mysqld_error.h... yes ----- Don't know how to set rpath on your system, if MySQL libraries are not in path mysql2 may not load ----- ----- Setting libpath to /usr/lib ----- creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling mysql2_ext.c compiling client.c compiling result.c compiling infile.c compiling statement.c linking shared-object mysql2/mysql2.so /usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status Makefile:232: recipe for target 'mysql2.so' failed make: *** [mysql2.so] Error 1 make failed, exit code 2 Gem files will remain installed in /var/lib/gems/2.1.0/gems/mysql2-0.4.2 for inspection. Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/mysql2-0.4.2/gem_make.out
Can anybody help what now?