ivaldi / brimir

Email helpdesk built using Ruby on Rails and Zurb Foundation
http://getbrimir.com
GNU Affero General Public License v3.0
1.38k stars 299 forks source link

More precise installation instruction #409

Closed windware-ono closed 6 years ago

windware-ono commented 6 years ago

I'm running Ubuntu 16.04 but it would be more helpful, if required packages were listed for latest LTS.

The packages I had to install before the bundle command were,

apt-get install build-essential ruby ruby-dev libxml2-dev zlib1g-dev libmysqld-dev

This works up to the point of,

rake db:schema:load

where I get hit by,

Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add gem 'mysql2' to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

Can you please give more precise instruction on how to proceed from there?

It's probably something to do with this. https://stackoverflow.com/questions/32470853/gem-mysql2-gem-is-not-loaded

It would be far easier if you can prepare a docker image as rails app is one of the hardest to set up and just expose a unix socket or a http port which can be reversed proxied by nginx/apache easily.

frenkel commented 6 years ago

The steps you need are more like the basic steps to install any Rails app. It's almost impossible for us to cover all possible distributions and their required dependencies.

For your current problem: You're missing libmysqlclient-dev for the mysql2 gem.

windware-ono commented 6 years ago

OK. Thanks. Giving instructions on latest LTS for Ubuntu/Debian and Redhat/CentOS doesn't look too hard but that's where docker comes in. Deploy and run, can't be easier when I used to install Discourse (another rails app.)

frenkel commented 6 years ago

Yes, except we aren't running either of them. If you can create a MR for these instructions and keep them up-to-date I'm happy to merge them.

This discussion has been brought up more than once, but everybody prefers different things: