Link to home
Start Free TrialLog in
Avatar of Doug Foster
Doug FosterFlag for United States of America

asked on

Help with Redmine installation on Ubuntu 14.04

Hello and thanks in advance for your help.

I am trying to install redmine on an ubuntu server. I am on the step where I am trying to call:

bundler update

And it errors out on installing rmagick. When I try:

sudo gem install rmagick

I get Error installing rmagick. Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb

I am not even sure why its using 1.9.1 ruby because when I do ruby -v I get ruby2.2.2p95 etc...

After looking around on line, I found that I need to install imagemagick, so I tried:

apt-get install libmagickwand-dev

and this gives me an error as well:
error: template infile /usr/share/redmine/templates/database.yml.template does not exist
dpkg: error processing package redmine (--configure):
 subprocesses installed post-installation script returned error exit status 1
Errors were encountered while processing: redmine.

I am not sure what I can do at this point, and I am new to Ubuntu and the terminal so I apologize ahead of time.

Any help would be much appreciated.
Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Doug Foster

ASKER

Well I tried:

sudo apt-get install libmagickwand-dev

Open in new window


Which seems to be the one thing I need to install rmmagick, but it errors out and gives me:

error: template infile /usr/share/redmine/template/database.yml.template does not exist
dpkg: error processing package redmine (--configure):
  subprocess installed post-instalation script returned error exit status 1

I was previously able to remove the first "template" error by creating a database.yml.template file in that directory, which made the error go away but not sure what affects would happen in the future because the second error still prevents the install it seems like.

Thank you for your reply.
I was able to get

sudo apt-get install libmagickwand-dev

Open in new window


Installed by doing:

sudo apt-get remove redmine

Open in new window


first, but I am still getting an error when trying to install rmagick:

sugo gem install rmagick

Open in new window


Gives me:

Error installing rmagick:
ERROR: Failed to build gem native extension

/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby1.9.1/rubygems/custom_require.rb:36:in 'require': cannot load such file -- mkmf (LoadError)
Regarding the database error, did you perform steps like these during your installation:

Create the database for redmine:
$ mysql -u root -p
CREATE DATABASE redmine CHARACTER SET utf8;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY '<password>';
GRANT ALL privileges ON redmine.* TO 'redmine'@'localhost';

Configure the database settings:
$ cd /usr/share/redmine
$ sudo cp templates/database.yml.template config/database.yml
$ sudo vi config/database.yml

Sample config file using the default MySQL port (3306):
production:
  adapter: mysql
  database: redmine
  host: localhost
  username: redmine
  password: <password>
  encoding: utf8

Open in new window


That might explain the missing of the file?

What about this for rmagick, does this install work?

sudo apt-get install libmagick++-dev

Open in new window

or
sudo apt-get install libmagickcore-dev libcurl4-dev

Open in new window


Strange problem...
sudo apt-get install libmagick++-dev

is installed. I tried:

 sudo apt-get install libmagickcore-dev libcurl4-dev

and it said that  have to explicitly select either libcurl4-openssl-dev, libcurl4-nss-dev, or libcurl4-gnutls-dev. So I installed all 3.

Still getting the error when running:

sudo gem install rmagick

same error - cannot load such file -- mkmf
Maybe ruby requires dev?

"sudo apt-get install ruby-dev"