Redmines dependency on ruby-dev

Added by Matteo S over 1 year ago

Hey guys,

I have an issue when installing redmine, and I'd really like to use this software. The problem is essentially the one described in Redmine Dependencies installation issue, basically I'm doing bundle install --path ~/.gem --without development test and the error message is

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1

Now the solution suggested everywhere is to do

sudo apt-get install ruby-dev

But this seems very weird to me. Why would I need development packages on a production installation? I don't have root access on my managed server, so I can't sudo and would rather not install dev packages on this machine. Is there any way to install Redmine without ruby-dev?