Content
Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile.
Added by Nathan Petralia about 8 years ago
Hi,
I am trying to install Openproject on Ubuntu 16.04 desktop using this tutorial: https://packager.io/gh/opf/openproject-ce/install?bid=167#ubuntu-16-04-openproject
The download is good, the config goes well until the last moment when I get following error:
[memcached] ./bin/postinstall [openproject] ./bin/postinstall rake aborted! LoadError: Could not load 'active_record/connection_adapters/mysql2_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:274:in `require' etc etc....
So then I did apt-get install ruby and that went well.
Now I tried to gem install mysql2 and nothing is happening. The system hangs…
Replies (2)
Hey Nathan,
are you installing the latest available package? Please use
apt-cache policy openproject
to show the actual version. At the time of writing, you should be installing 6.0.4-1472623908.dacb194.If you do have an older package, please try purging it before updating and installing a newer version.
The build link you show is referencing a build a few months ago where 16.04. support was botched.
Best,
Oliver
I have redone the installation on Debian Jessie and now it works thanks!